DynamicDiskExtent.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. namespace DiskAccessLibrary.LogicalDiskManager
  11. {
  12. public class DynamicDiskExtent : DiskExtent
  13. {
  14. private ulong m_extentID;
  15. public string Name;
  16. public Guid DiskGuid;
  17. public DynamicDiskExtent(Disk disk, long firstSector, long size, ulong extentID) : base(disk, firstSector, size)
  18. {
  19. m_extentID = extentID;
  20. }
  21. public DynamicDiskExtent(DiskExtent diskExtent, ulong extentID) : base(diskExtent.Disk, diskExtent.FirstSector, diskExtent.Size)
  22. {
  23. m_extentID = extentID;
  24. }
  25. public ulong ExtentID
  26. {
  27. get
  28. {
  29. return m_extentID;
  30. }
  31. }
  32. }
  33. }