Exemplo n.º 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");
        }
Exemplo n.º 2
0
 protected bool Equals(PartitionType other)
 {
     return(Guid.Equals(other.Guid));
 }
Exemplo n.º 3
0
 public Task SetGptType(PartitionType basic)
 {
     return(DiskApi.SetGptType(this, basic));
 }
Exemplo n.º 4
0
 public static Task <IPartition> CreatePartition(this IDisk self, PartitionType partitionType, string label = "")
 {
     return(self.CreatePartition(ByteSize.MaxValue, partitionType, label));
 }