[CRIU] [PATCH 4/5] files: Cleanup ghost subdirectories

Cyrill Gorcunov gorcunov at gmail.com
Wed Feb 27 09:59:32 MSK 2019


On Tue, Feb 26, 2019 at 10:49:18PM -0800, Andrei Vagin wrote:
...
> > -	return 0;
> > +	if (ret) {
> > +		if (errno == ENOENT)
> > +			ret = 0;
> > +	} else
> > +		ret = cleanup_subdir(rmntns_root, remap);
> 
> should we call cleanup_subdir() if errno == ENOENT?
Nope :) If errno == enoent it means there is notthing to clean :)
But I think I got what is confusing you. We should call
subdirs cleanup only on enotempty. Will update, thanks!


More information about the CRIU mailing list