diff --git a/sbin/mdmfs/mdmfs.c b/sbin/mdmfs/mdmfs.c --- a/sbin/mdmfs/mdmfs.c +++ b/sbin/mdmfs/mdmfs.c @@ -104,7 +104,7 @@ bool detach, softdep, autounit, newfs; const char *mtpoint, *size_arg, *skel, *unitstr; char *p; - int ch, idx, rv; + int ch, idx; void *set; unsigned long ul; @@ -343,8 +343,7 @@ if (!have_mdtype) mdtype = MD_SWAP; - if (softdep) - argappend(&newfs_arg, "-U"); + argappend(&newfs_arg, softdep ? "-U" : "-u"); if (mdtype != MD_VNODE && !newfs) errx(1, "-P requires a vnode-backed disk"); @@ -357,13 +356,6 @@ do_mdconfig_attach(mdconfig_arg, mdtype); if (newfs) do_newfs(newfs_arg); - if (!softdep) { - rv = run(NULL, "%s %s /dev/%s%d", _PATH_TUNEFS, - "-n disable", mdname, unit); - if (rv) - errx(1, "tunefs exited %s %d", run_exitstr(rv), - run_exitnumber(rv)); - } do_mount_md(mount_arg, mtpoint); }