Changeset 2017

Show
Ignore:
Timestamp:
09/19/08 12:18:22 (2 years ago)
Author:
bruno
Message:

Adds support for OCFS2 file system when formating using the right command in which_format_command_do_i_need.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2.7/mondo/src/mondorestore/mondo-prep.c

    r1930 r2017  
    25372537    } else if (strcmp(format, "vmfs") == 0) { 
    25382538        strcpy(program, "mkfs -t vmfs"); 
     2539    } else if (strcmp(format, "ocfs2") == 0) { 
     2540        /* 
     2541         * 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. 
     2542         * 
     2543         */ 
     2544        strcpy(program, "mkfs -t ocfs2 -F"); 
    25392545#endif 
    25402546    } else if (strcmp(format, "ext2") == 0) {