Пример #1
0
        public async Task Execute(string partitionDescriptor, string gptTypeString)
        {
            var partition = await fileSystem.GetPartitionFromDescriptor(partitionDescriptor);

            var gptType = PartitionType.FromString(gptTypeString);
            await partition.SetGptType(gptType);
        }
        public async Task <string> Execute(int diskNumber, string partitionType, string label = "")
        {
            var disk = await fileSystem.GetDisk(diskNumber);

            var partition = await disk.CreatePartition(PartitionType.FromString(partitionType), label);

            var descriptor = FileSystemMixin.GetDescriptor(partition);

            return(await descriptor);
        }