RemovableVolume.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. using Utilities;
  11. using DiskAccessLibrary.FileSystems.NTFS;
  12. namespace DiskAccessLibrary
  13. {
  14. /// <summary>
  15. /// A single volume that takes up all of the disk (there is no MBR),
  16. /// The disk has no partition table and the first sector contains the filesystem boot record.
  17. ///
  18. /// MSDN definition:
  19. /// A super floppy layout is one in which there is no MBR, so there is no partition table. The entire disk (from start to end) is one giant partition.
  20. /// </summary>
  21. public class RemovableVolume : Partition
  22. {
  23. public RemovableVolume(DiskExtent extent) : base(extent)
  24. {
  25. }
  26. public RemovableVolume(Disk disk) : base(disk, 0, disk.Size)
  27. {
  28. }
  29. }
  30. }