diff -up ./src/mondorestore/mondo-prep.c.mkntfs ./mondo-2.2.8/src/mondorestore/mondo-prep.c
old
|
new
|
int which_format_command_do_i_need(char
|
2405 | 2405 | strcpy(program, "mkfs.minix"); |
2406 | 2406 | } else if (strcmp(format, "vmfs") == 0) { |
2407 | 2407 | strcpy(program, "mkfs -t vmfs"); |
| 2408 | } else if (strcmp(format, "ntfs") == 0) { |
| 2409 | /* |
| 2410 | * mkfs.ntfs treats the '-c' switch as 'specify cluster size' so the default "mkfs -t %s -c" command structure fails |
| 2411 | * |
| 2412 | */ |
| 2413 | strcpy(program, "mkfs -t ntfs"); |
2408 | 2414 | } else if (strcmp(format, "ocfs2") == 0) { |
2409 | 2415 | /* |
2410 | 2416 | * For existing OCFS2 volumes, mkfs.ocfs2 ensures the volume is not mounted on any node in the cluster before formatting. For that to work, mkfs.ocfs2 expects the O2CB cluster service to be running. Specify this option to disable this check. |