logversion = 2;
logagno = logblocks = rtblocks = rtextblocks = 0;
Nflag = nlflag = nsflag = nvflag = nci = 0;
- nftype = dirftype = 0; /* inode type information in the dir */
+ dirftype = 1; /* inode type information in the dir */
+ nftype = 0;
dirblocklog = dirblocksize = 0;
dirversion = XFS_DFL_DIR_VERSION;
qflag = 0;
if (c < 0 || c > 1)
illegal(value, "m crc");
crcs_enabled = c;
- if (nftype && crcs_enabled) {
- fprintf(stderr,
-_("cannot specify both crc and ftype\n"));
- usage();
- }
break;
case M_FINOBT:
if (!value || *value == '\0')
if (nftype)
respec('n', nopts, N_FTYPE);
dirftype = atoi(value);
- if (crcs_enabled) {
- fprintf(stderr,
-_("cannot specify both crc and ftype\n"));
- usage();
- }
nftype = 1;
break;
default:
XFS_MIN_CRC_BLOCKSIZE);
usage();
}
+ if (crcs_enabled && !dirftype) {
+ fprintf(stderr, _("cannot disable ftype with crcs enabled\n"));
+ usage();
+ }
memset(&ft, 0, sizeof(ft));
get_topology(&xi, &ft, force_overwrite);