more ntfs fixes

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen
2022-04-25 10:45:46 -06:00
parent 1af37106c0
commit 7fe916c916
2 changed files with 65 additions and 7 deletions
+3 -7
View File
@@ -1001,8 +1001,8 @@ class CsiBaseDriver {
if (fs_type == "ntfs") {
if (partition_count < 1) {
// dos is what csi-proxy uses by default
let ntfs_partition_label = "dos";
// gpt is what csi-proxy uses by default
let ntfs_partition_label = "gpt";
switch (ntfs_partition_label.toLowerCase()) {
case "dos":
// partion dos
@@ -1010,11 +1010,7 @@ class CsiBaseDriver {
break;
case "gpt":
// partion gpt
await filesystem.partitionDevice(
device,
"gpt",
"EBD0A0A2-B9E5-4433-87C0-68B6B72699C7"
);
await filesystem.partitionDeviceWindows(device);
break;
default:
throw new GrpcError(