diff options
| author | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2008-02-18 10:24:47 +0000 |
|---|---|---|
| committer | Yaroslav Tykhiy <ytykhiy@gmail.com> | 2008-02-18 10:24:47 +0000 |
| commit | bd20049d27b99edbca7367329785f204f0a4cb5a (patch) | |
| tree | 15503aa2c4877bfca81028b2736c63b9b360d098 /sbin | |
| parent | 37ed722f7879d0c1ff919e81bc9ff423878d28bd (diff) | |
Notes
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/mount_nfs/mount_nfs.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c index 48c0a1fb63d1..51f4e434c53f 100644 --- a/sbin/mount_nfs/mount_nfs.c +++ b/sbin/mount_nfs/mount_nfs.c @@ -516,6 +516,15 @@ main(int argc, char *argv[]) /* resolve the mountpoint with realpath(3) */ (void)checkpath(name, mntpath); + /* + * XXX This should go away when this NFS implementation + * is fully converted to nmount(2) semantics. + */ + if (mntflags & MNT_RDONLY) + build_iovec(&iov, &iovlen, "ro", NULL, 0); + else if (mntflags & MNT_UPDATE) + build_iovec(&iov, &iovlen, "noro", NULL, 0); + build_iovec(&iov, &iovlen, "nfs_args", nfsargsp, sizeof(*nfsargsp)); build_iovec(&iov, &iovlen, "fstype", fstype, (size_t)-1); build_iovec(&iov, &iovlen, "fspath", mntpath, (size_t)-1); |
