linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] fanotify.7: clarify effects of file moves
@ 2015-08-06 20:49 Heinrich Schuchardt
       [not found] ` <1438894183-3979-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2015-08-06 20:49 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA, Heinrich Schuchardt

If files or directories are moved to other mounts the inode is
deleted. Fanotify marks are lost.

Signed-off-by: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
---
 man7/fanotify.7 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/man7/fanotify.7 b/man7/fanotify.7
index 54b1ea6..f63fb51 100644
--- a/man7/fanotify.7
+++ b/man7/fanotify.7
@@ -91,10 +91,10 @@ ignore mask and the file cache entry can be updated.
 .PP
 The entries in the fanotify notification groups refer to files and
 directories via their inode number and to mounts via their mount ID.
-If files or directories are renamed or moved,
+If files or directories are renamed or moved within the same mount,
 the respective entries survive.
-If files or directories are deleted or mounts are unmounted,
-the corresponding entries are deleted.
+If files or directories are deleted or moved to another mount or if mounts are
+unmounted, the corresponding entries are deleted.
 .SS The event queue
 As events occur on the filesystem objects monitored by a notification group,
 the fanotify system generates events that are collected in a queue.
-- 
2.1.4

--
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] 2+ messages in thread

* Re: [PATCH 1/1] fanotify.7: clarify effects of file moves
       [not found] ` <1438894183-3979-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
@ 2015-08-07  9:18   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2015-08-07  9:18 UTC (permalink / raw)
  To: Heinrich Schuchardt
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On 08/06/2015 10:49 PM, Heinrich Schuchardt wrote:
> If files or directories are moved to other mounts the inode is
> deleted. Fanotify marks are lost.

Thanks, Heinrich. Applied.

Cheers,

Michael


> Signed-off-by: Heinrich Schuchardt <xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
> ---
>  man7/fanotify.7 | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/man7/fanotify.7 b/man7/fanotify.7
> index 54b1ea6..f63fb51 100644
> --- a/man7/fanotify.7
> +++ b/man7/fanotify.7
> @@ -91,10 +91,10 @@ ignore mask and the file cache entry can be updated.
>  .PP
>  The entries in the fanotify notification groups refer to files and
>  directories via their inode number and to mounts via their mount ID.
> -If files or directories are renamed or moved,
> +If files or directories are renamed or moved within the same mount,
>  the respective entries survive.
> -If files or directories are deleted or mounts are unmounted,
> -the corresponding entries are deleted.
> +If files or directories are deleted or moved to another mount or if mounts are
> +unmounted, the corresponding entries are deleted.
>  .SS The event queue
>  As events occur on the filesystem objects monitored by a notification group,
>  the fanotify system generates events that are collected in a queue.
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
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] 2+ messages in thread

end of thread, other threads:[~2015-08-07  9:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-06 20:49 [PATCH 1/1] fanotify.7: clarify effects of file moves Heinrich Schuchardt
     [not found] ` <1438894183-3979-1-git-send-email-xypron.glpk-Mmb7MZpHnFY@public.gmane.org>
2015-08-07  9:18   ` Michael Kerrisk (man-pages)

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).