예제 #1
0
        public async Task SetGptType(PartitionType partitionType)
        {
            Log.Verbose("Setting partition type to {Partition} from {OldType} to {NewType}", this, PartitionType, partitionType);
            await LowLevelApi.SetPartitionType(this, partitionType);

            Log.Verbose("Partition type set");
        }
예제 #2
0
 protected bool Equals(PartitionType other)
 {
     return(Guid.Equals(other.Guid));
 }
예제 #3
0
 public Task SetGptType(PartitionType basic)
 {
     return(DiskApi.SetGptType(this, basic));
 }
예제 #4
0
 public static Task <IPartition> CreatePartition(this IDisk self, PartitionType partitionType, string label = "")
 {
     return(self.CreatePartition(ByteSize.MaxValue, partitionType, label));
 }