diff options
author | rmh <rmh@FreeBSD.org> | 2013-07-15 21:57:21 +0000 |
---|---|---|
committer | rmh <rmh@FreeBSD.org> | 2013-07-15 21:57:21 +0000 |
commit | 80fcd6f6829e197908c788c8acc29c253765035f (patch) | |
tree | b0b763cc3b33dd36549b7d6a45c3570b3221ad2e /sbin/mount | |
parent | 1f49e221e7839234da418c5e13c0af79dddc4c41 (diff) | |
download | FreeBSD-src-80fcd6f6829e197908c788c8acc29c253765035f.zip FreeBSD-src-80fcd6f6829e197908c788c8acc29c253765035f.tar.gz |
Add -n flag for compatibility with Linux version of mount(8).
Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
Diffstat (limited to 'sbin/mount')
-rw-r--r-- | sbin/mount/mount.8 | 3 | ||||
-rw-r--r-- | sbin/mount/mount.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 5b670ee..50c5a8b 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -118,6 +118,9 @@ When used in conjunction with the .Fl a option, also mount those file systems which are marked as .Dq Li late . +.It Fl n +For compatibility with some other implementations, this flag is +currently a no-op. .It Fl o Options are specified with a .Fl o diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index 6284822..91c7d7c 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -253,7 +253,7 @@ main(int argc, char *argv[]) options = NULL; vfslist = NULL; vfstype = "ufs"; - while ((ch = getopt(argc, argv, "adF:fLlo:prt:uvw")) != -1) + while ((ch = getopt(argc, argv, "adF:fLlno:prt:uvw")) != -1) switch (ch) { case 'a': all = 1; @@ -274,6 +274,9 @@ main(int argc, char *argv[]) case 'l': late = 1; break; + case 'n': + /* For compatibility with the Linux version of mount. */ + break; case 'o': if (*optarg) { options = catopt(options, optarg); |