* fstatat() AT_NO_AUTOMOUNT man page documentation @ 2011-09-19 5:56 Michael Kerrisk [not found] ` <CAKgNAkgOvrNtz+JjXTqzOsH6wQBpQ2AAAG2kBGcCVzObYK=btg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Michael Kerrisk @ 2011-09-19 5:56 UTC (permalink / raw) To: David Howells; +Cc: Ian Kent, npiggin, linux-man, autofs, linux-fsdevel Hi David, I've written the following patch for AT__NO_AUTOMOUNT, which you added to the kernel a while back. Could you please review and ACK/NAK? Thanks, Michael diff --git a/man2/fstatat.2 b/man2/fstatat.2 index 2868bfb..c0d97dd 100644 --- a/man2/fstatat.2 +++ b/man2/fstatat.2 @@ -91,7 +89,16 @@ is absolute, then is ignored. .I flags -can either be 0, or include the following flag: +can either be 0, or include one or more of the following flags ORed: +.TP +.BR AT_NO_AUTOMOUNT " (since Linux 2.6.38)" +Don't automount the terminal ("basename") component of +.I pathname +if it is a directory that is an automount point. +This allows the caller to gather attributes of an automount point +(rather than the location it would mount). +This flag can be used in tools that scan directories +to prevent mass-automounting of a directory of automount points. .TP .B AT_SYMLINK_NOFOLLOW If -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ ^ permalink raw reply related [flat|nested] 4+ messages in thread
[parent not found: <CAKgNAkgOvrNtz+JjXTqzOsH6wQBpQ2AAAG2kBGcCVzObYK=btg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: fstatat() AT_NO_AUTOMOUNT man page documentation [not found] ` <CAKgNAkgOvrNtz+JjXTqzOsH6wQBpQ2AAAG2kBGcCVzObYK=btg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2011-09-19 22:19 ` David Howells [not found] ` <19937.1316470788-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2011-09-20 8:52 ` David Howells 0 siblings, 2 replies; 4+ messages in thread From: David Howells @ 2011-09-19 22:19 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA, Ian Kent, npiggin-tSWWG44O7X1aa/9Udqfwiw, linux-man, autofs-CPWUtch7KCBzeIdxy0IIJw, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > I've written the following patch for AT__NO_AUTOMOUNT, which you added > to the kernel a while back. Could you please review and ACK/NAK? It may be worth mentioning that if a mountpoint is already mounted over, then this flag has no effect. It merely prevents further automounting. David -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <19937.1316470788-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>]
* Re: fstatat() AT_NO_AUTOMOUNT man page documentation [not found] ` <19937.1316470788-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2011-09-20 5:06 ` Michael Kerrisk 0 siblings, 0 replies; 4+ messages in thread From: Michael Kerrisk @ 2011-09-20 5:06 UTC (permalink / raw) To: David Howells Cc: Ian Kent, npiggin-tSWWG44O7X1aa/9Udqfwiw, linux-man, autofs-CPWUtch7KCBzeIdxy0IIJw, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA Hi David, On Tue, Sep 20, 2011 at 12:19 AM, David Howells <dhowells-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote: > Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> I've written the following patch for AT__NO_AUTOMOUNT, which you added >> to the kernel a while back. Could you please review and ACK/NAK? > > It may be worth mentioning that if a mountpoint is already mounted over, then > this flag has no effect. It merely prevents further automounting. Thanks. I added a sentence to say that. Otherwise the text looks okay? Cheers, Michael diff --git a/man2/fstatat.2 b/man2/fstatat.2 index 2868bfb..23c39dc 100644 --- a/man2/fstatat.2 +++ b/man2/fstatat.2 @@ -22,9 +22,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.\" FIXME: Linux 2.6.38 added AT_NO_AUTOMOUNT -.\" -.TH FSTATAT 2 2010-11-21 "Linux" "Linux Programmer's Manual" +.TH FSTATAT 2 2011-09-19 "Linux" "Linux Programmer's Manual" .SH NAME fstatat \- get file status relative to a directory file descriptor .SH SYNOPSIS @@ -91,7 +89,19 @@ is absolute, then is ignored. .I flags -can either be 0, or include the following flag: +can either be 0, or include one or more of the following flags ORed: +.TP +.BR AT_NO_AUTOMOUNT " (since Linux 2.6.38)" +Don't automount the terminal ("basename") component of +.I pathname +if it is a directory that is an automount point. +This allows the caller to gather attributes of an automount point +(rather than the location it would mount). +This flag can be used in tools that scan directories +to prevent mass-automounting of a directory of automount points. +The +.B AT_NO_AUTOMOUNT +flag has no effect if the mount point has already been mounted over. .TP .B AT_SYMLINK_NOFOLLOW If -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Author of "The Linux Programming Interface"; http://man7.org/tlpi/ -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: fstatat() AT_NO_AUTOMOUNT man page documentation 2011-09-19 22:19 ` David Howells [not found] ` <19937.1316470788-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> @ 2011-09-20 8:52 ` David Howells 1 sibling, 0 replies; 4+ messages in thread From: David Howells @ 2011-09-20 8:52 UTC (permalink / raw) To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w Cc: dhowells-H+wXaHxf7aLQT0dZR+AlfA, Ian Kent, npiggin-tSWWG44O7X1aa/9Udqfwiw, linux-man, autofs-CPWUtch7KCBzeIdxy0IIJw, linux-fsdevel-u79uwXL29TY76Z2rM5mHXA Michael Kerrisk <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Thanks. I added a sentence to say that. > > Otherwise the text looks okay? Yep. Feel free to add my Ack to it, or whatever you do. David -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-09-20 8:52 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-09-19 5:56 fstatat() AT_NO_AUTOMOUNT man page documentation Michael Kerrisk [not found] ` <CAKgNAkgOvrNtz+JjXTqzOsH6wQBpQ2AAAG2kBGcCVzObYK=btg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2011-09-19 22:19 ` David Howells [not found] ` <19937.1316470788-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> 2011-09-20 5:06 ` Michael Kerrisk 2011-09-20 8:52 ` David Howells
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).