[CRIU] [PATCH 2/2] fsnotify: Do not track deleted watchees

Cyrill Gorcunov gorcunov at gmail.com
Tue Feb 25 01:37:08 PST 2014


On Tue, Feb 25, 2014 at 01:28:40PM +0400, Andrew Vagin wrote:
> > --- a/fsnotify.c
> > +++ b/fsnotify.c
> > @@ -132,9 +132,31 @@ int check_open_handle(unsigned int s_dev, unsigned long i_ino,
> >  
> >  	fd = open_handle(s_dev, i_ino, f_handle);
> >  	if (fd >= 0) {
> > +		struct stat st;
> 
> FYI: This hack doesn't work for tmpfs
> mount -t tmpfs test test/
> git checkout test/
> bash -x test/zdtm.sh -r static/inotify00
> + cat /root/crtools/test/dump/inotify00/2779/1/dump.log
> + grep Error
> (00.000260) Error (image.c:197): Unable to open irmap-cache: No such file or directory
> (00.009159) Error (fsnotify.c:123): fsnotify: Can't open file handle for 0x00000023:0x00000000000048d5: Stale file handle

Crap ;) Thanks!


More information about the CRIU mailing list