/// <summary> /// Initializes a new instance of the <see cref="GenericFileSystem"/> class. /// </summary> /// <param name="partition">The partition.</param> public GenericFileSystem(IPartitionDevice partition) { this.partition = partition; BlockSize = partition.BlockSize; IsValid = false; VolumeLabel = string.Empty; SerialNumber = new byte[0]; }
/// <summary> /// Initializes a new instance of the <see cref="GenericFileSystem"/> class. /// </summary> /// <param name="partition">The partition.</param> public GenericFileSystem(IPartitionDevice partition) { this.partition = partition; this.blockSize = partition.BlockSize; this.valid = false; this.volumeLabel = string.Empty; this.serialNbr = new byte[0]; }
/// <summary> /// Initializes a new instance of the <see cref="FatFileSystem"/> class. /// </summary> /// <param name="partition">The partition.</param> public FatFileSystem(IPartitionDevice partition) : base(partition) { ReadBootSector(); }
/// <summary> /// Initializes a new instance of the <see cref="FatFileSystemDevice"/> class. /// </summary> private FatFileSystemDevice(IPartitionDevice partition) { base.Parent = partition as Device; base.Name = base.Parent.Name + "/FS/Fat"; // need to give it a unique name base.DeviceStatus = DeviceStatus.Online; }
/// <summary> /// Creates the specified file system. /// </summary> /// <param name="partition">The partition.</param> /// <returns></returns> public GenericFileSystem Create(IPartitionDevice partition) { return new FatFileSystem(partition); }
/// <summary> /// Creates the specified file system. /// </summary> /// <param name="partition">The partition.</param> /// <returns></returns> public GenericFileSystem Create(IPartitionDevice partition) { return(new FatFileSystem(partition)); }
public FAT (IPartitionDevice partition) : base (partition) { ReadBootSector (); }
/// <summary> /// Initializes a new instance of the <see cref="FatFileSystemDevice"/> class. /// </summary> private FatFileSystemDevice(IPartitionDevice partition) { base.parent = partition as Device; base.name = base.parent.Name + "/FS/Fat"; // need to give it a unique name base.deviceStatus = DeviceStatus.Online; }
public FAT(IPartitionDevice partition) : base(partition) { ReadBootSector(); }