/// <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];
 }
Example #2
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="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="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];
 }
Example #5
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();
 }
Example #6
0
 /// <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;
 }
Example #7
0
 /// <summary>
 /// Creates the specified file system.
 /// </summary>
 /// <param name="partition">The partition.</param>
 /// <returns></returns>
 public GenericFileSystem Create(IPartitionDevice partition)
 {
     return new FatFileSystem(partition);
 }
Example #8
0
 /// <summary>
 /// Creates the specified file system.
 /// </summary>
 /// <param name="partition">The partition.</param>
 /// <returns></returns>
 public GenericFileSystem Create(IPartitionDevice partition)
 {
     return(new FatFileSystem(partition));
 }
Example #9
0
		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;
 }
Example #11
0
 public FAT(IPartitionDevice partition)
     : base(partition)
 {
     ReadBootSector();
 }