args->notvolmsg = _("you should never get this message - %s");
args->notvolok = 1;
- args->setblksize = 1;
+ args->setblksize = !dangerously;
if (no_modify)
args->isreadonly = (LIBXFS_ISREADONLY | LIBXFS_ISINACTIVE);
-
- if(dangerously)
+ else if (dangerously)
args->isreadonly = (LIBXFS_ISINACTIVE | LIBXFS_DANGEROUSLY);
-
if (!libxfs_init(args))
do_error(_("couldn't initialize XFS library\n"));
case 'n':
no_modify = 1;
break;
+ case 'd':
+ dangerously = 1;
+ break;
case 'v':
verbose = 1;
break;
case 'V':
printf(_("%s version %s\n"), progname, VERSION);
exit(0);
- case 'd': /* dangerously */
- dangerously = 1;
- break;
case '?':
usage();
}