[CRIU] [PATCH 10/17] fsnotify: Add fanotify restore

Pavel Emelyanov xemul at parallels.com
Mon Dec 24 08:32:12 EST 2012


On 12/11/2012 01:34 AM, Cyrill Gorcunov wrote:
> 
> The idea is the same as for inotify -- just open
> notification descriptor and hook paths on.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  fsnotify.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
>  1 file changed, 89 insertions(+), 2 deletions(-)
> 
> +	/*
> +	 * Note we use OR'ed iwe->wd here, since for fanotify it
> +	 * provides additional flags for the mark.
> +	 */
> +	flags |= iwe->wd;

I don't understand this. Kernel denies putting any flags but known into
sys_fanotify_mark.


More information about the CRIU mailing list