Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142724103
D54783.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
904 B
Referenced Files
None
Subscribers
None
D54783.diff
View Options
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);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 23, 5:25 PM (2 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27783645
Default Alt Text
D54783.diff (904 B)
Attached To
Mode
D54783: mdmfs: Fix soft updates logic
Attached
Detach File
Event Timeline
Log In to Comment