svn commit: r253372 - head/sbin/mount
Robert Millan
rmh at FreeBSD.org
Mon Jul 15 21:57:22 UTC 2013
Author: rmh
Date: Mon Jul 15 21:57:21 2013
New Revision: 253372
URL: http://svnweb.freebsd.org/changeset/base/253372
Log:
Add -n flag for compatibility with Linux version of mount(8).
Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
Modified:
head/sbin/mount/mount.8
head/sbin/mount/mount.c
Modified: head/sbin/mount/mount.8
==============================================================================
--- head/sbin/mount/mount.8 Mon Jul 15 20:33:54 2013 (r253371)
+++ head/sbin/mount/mount.8 Mon Jul 15 21:57:21 2013 (r253372)
@@ -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
Modified: head/sbin/mount/mount.c
==============================================================================
--- head/sbin/mount/mount.c Mon Jul 15 20:33:54 2013 (r253371)
+++ head/sbin/mount/mount.c Mon Jul 15 21:57:21 2013 (r253372)
@@ -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);
More information about the svn-src-head
mailing list