]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: rename "quiet" to "silent" (MS_SILENT)
authorKarel Zak <kzak@redhat.com>
Fri, 11 Mar 2011 15:58:27 +0000 (16:58 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 11 Mar 2011 15:58:27 +0000 (16:58 +0100)
The quiet mount option was in collision with vfat and hfs mount
options. The option was also undocumented -- so it's probably safe to
rename the option than add some ugly hacks or exceptions for vfat/hfs
to the mount(8) code.

Reported-by: https://bugzilla.redhat.com/show_bug.cgi?id=622089
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/mount.8
mount/mount.c
mount/mount_constants.h

index d47104652113e19a051916ddefa643f459de72da..e8f831882b128026082e89bbaea2700763845edf 100644 (file)
@@ -963,6 +963,12 @@ Do not allow set-user-identifier or set-group-identifier bits to take
 effect. (This seems safe, but is in fact rather unsafe if you have
 suidperl(1) installed.)
 .TP
+.B silent
+Turn on the silent flag.
+.TP
+.B loud
+Turn off the silent flag.
+.TP
 .B owner
 Allow an ordinary (i.e., non-root) user to mount the filesystem if he
 is the owner of the device.
index 1c5fe5a3a4aaa02ece6f827775f7260c67eeb4a3..d9739897f39c5d452f1766367a804c92bd23aaff 100644 (file)
@@ -172,7 +172,7 @@ static const struct opt_map opt_map[] = {
   { "nosub",   0, 0, MS_NOSUB  },      /* don't allow submounts */
 #endif
 #ifdef MS_SILENT
-  { "quiet",   0, 0, MS_SILENT    },   /* be quiet  */
+  { "silent",  0, 0, MS_SILENT    },   /* be quiet  */
   { "loud",    0, 1, MS_SILENT    },   /* print out messages. */
 #endif
 #ifdef MS_MANDLOCK
index 81686f1dfa119ac69bc48e6db08598b242cdb2cb..ce51887dd1ab024ec4957df2dd225c6f53a01339 100644 (file)
@@ -37,8 +37,8 @@
 #ifndef MS_REC
 #define MS_REC         0x4000  /* 16384: Recursive loopback */
 #endif
-#ifndef MS_VERBOSE
-#define MS_VERBOSE     0x8000  /* 32768 */
+#ifndef MS_SILENT
+#define MS_SILENT      0x8000  /* 32768 (was MS_VERBOSE) */
 #endif
 #ifndef MS_RELATIME
 #define MS_RELATIME    0x200000 /* 200000: Update access times relative