Add -n flag for compatibility with Linux version of mount(8).
Reviewed by: freebsd-fs, eadler, mckusick, jh, wblock
This commit is contained in:
parent
e5736ac88c
commit
fc98db27df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253372
@ -118,6 +118,9 @@ When used in conjunction with the
|
|||||||
.Fl a
|
.Fl a
|
||||||
option, also mount those file systems which are marked as
|
option, also mount those file systems which are marked as
|
||||||
.Dq Li late .
|
.Dq Li late .
|
||||||
|
.It Fl n
|
||||||
|
For compatibility with some other implementations, this flag is
|
||||||
|
currently a no-op.
|
||||||
.It Fl o
|
.It Fl o
|
||||||
Options are specified with a
|
Options are specified with a
|
||||||
.Fl o
|
.Fl o
|
||||||
|
@ -253,7 +253,7 @@ main(int argc, char *argv[])
|
|||||||
options = NULL;
|
options = NULL;
|
||||||
vfslist = NULL;
|
vfslist = NULL;
|
||||||
vfstype = "ufs";
|
vfstype = "ufs";
|
||||||
while ((ch = getopt(argc, argv, "adF:fLlo:prt:uvw")) != -1)
|
while ((ch = getopt(argc, argv, "adF:fLlno:prt:uvw")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'a':
|
case 'a':
|
||||||
all = 1;
|
all = 1;
|
||||||
@ -274,6 +274,9 @@ main(int argc, char *argv[])
|
|||||||
case 'l':
|
case 'l':
|
||||||
late = 1;
|
late = 1;
|
||||||
break;
|
break;
|
||||||
|
case 'n':
|
||||||
|
/* For compatibility with the Linux version of mount. */
|
||||||
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
if (*optarg) {
|
if (*optarg) {
|
||||||
options = catopt(options, optarg);
|
options = catopt(options, optarg);
|
||||||
|
Loading…
Reference in New Issue
Block a user