search for: parse_fs_featur

Displaying 1 result from an estimated 1 matches for "parse_fs_featur".

Did you mean: parse_fs_features
2013 May 16
0
[PATCH] btrfs-progs: mkfs: add -O option to specify fs features
...ag) { + fprintf(stderr, + "Turning ON incompat feature ''%s'': %s\n", + mkfs_features[i].name, + mkfs_features[i].desc); + } + } +} + + +/* + * Return NULL if all features were parsed fine, otherwise return the name of + * the first unparsed. + */ +static char* parse_fs_features(char *namelist, u64 *flags) +{ + char *this_char; + char *save_ptr = NULL; /* Satisfy static checkers */ + + for (this_char = strtok_r(namelist, ",", &save_ptr); + this_char != NULL; + this_char = strtok_r(NULL, ",", &save_ptr)) { + if (parse_one_fs_feature(...