atom feed4 messages in org.kernel.vger.linux-man[PATCH] mount.2 : Add MS_SILENT mount...
FromSent OnAttachments
Maxin JohnSep 30, 2008 4:53 am 
Michael KerriskOct 1, 2008 6:21 am 
Maxin JohnOct 2, 2008 3:56 am 
Theodore TsoOct 3, 2008 2:22 pm 
Subject:[PATCH] mount.2 : Add MS_SILENT mountflag
From:Maxin John (maxi@gmail.com)
Date:Sep 30, 2008 4:53:21 am
List:org.kernel.vger.linux-man

Dear Michael,

The MS_VERBOSE in mountflags option of mount system call was replaced by MS_SILENT in Kernel version 2.6.17 (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9b04c997b1120feefa1e6ee8e2902270bc055cd2 ).

The LKML thread regarding this commit: http://linux.derkeiler.com/Mailing-Lists/Kernel/2006-03/msg08081.html

eg: mount("/dev/sda1", "/mnt/test", "ext3", MS_SILENT, "");

The patch also includes some miscellaneous cleanups of the mount.2 man page.

Kindly let me know if there are any issues with respect to this patch.

Cheers,

Maxin B. John Sony India Software Center Bangalore, India

diff -uNr man-pages-3.10/man2/mount.2 man-pages-3.10_mount/man2/mount.2 --- man-pages-3.10/man2/mount.2 2008-09-23 19:22:25.000000000 +0530 +++ man-pages-3.10_mount/man2/mount.2 2008-09-30 17:15:29.087697160 +0530 @@ -128,7 +128,6 @@ Since Linux 2.6.26, the .B MS_RDONLY flag is honored when making a bind mount. -Since Linux 2.6.2 .TP .BR MS_DIRSYNC " (since Linux 2.5.19)" Make directory changes on this file system synchronous. @@ -228,6 +227,9 @@ .BR MS_NODEV , .BR MS_NOEXEC . .TP +.B MS_SILENT " (Linux 2.6.17 onwards)" +This flag suppresses the display of verbose messages. +.TP .B MS_SYNCHRONOUS Make writes on this file system synchronous (as though the