summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs/mount_nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r--sbin/mount_nfs/mount_nfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 5386723..9da3137 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -612,6 +612,13 @@ fallback_mount(struct iovec *iov, int iovlen, int mntflags)
}
args.flags |= NFSMNT_ACDIRMAX;
}
+ if (findopt(iov, iovlen, "wcommitsize", &opt, NULL) == 0) {
+ ret = sscanf(opt, "%d", &args.wcommitsize);
+ if (ret != 1 || args.wcommitsize < 0) {
+ errx(1, "illegal wcommitsize: %s", opt);
+ }
+ args.flags |= NFSMNT_WCOMMITSIZE;
+ }
if (findopt(iov, iovlen, "deadthresh", &opt, NULL) == 0) {
ret = sscanf(opt, "%d", &args.deadthresh);
if (ret != 1 || args.deadthresh <= 0) {
OpenPOWER on IntegriCloud