[CRIU] [PATCH 1/3] mount: Handle deleted bindmounts for regular files

Andrei Vagin avagin at virtuozzo.com
Mon Jan 9 14:54:49 PST 2017


On Mon, Jan 09, 2017 at 10:44:01PM +0300, Cyrill Gorcunov wrote:
> On Mon, Jan 09, 2017 at 11:31:45AM -0800, Andrei Vagin wrote:
> > I think you need to dump a content for this file too.
> > 
> > On Wed, Aug 26, 2015 at 05:15:23PM +0300, Cyrill Gorcunov wrote:
> 
> Heh "Aug 26, 2015" :D Nope, we shouldn't -- either the file
> is opened by someone (and it will be dumped this way) or
> it's not opened by anyone and has no content at all.

I think you don't test this functionality;)

[root at fc24 tmp]# mount --bind c C
[root at fc24 tmp]# echo adsfdsfsa >> c
[root at fc24 tmp]# cat C 
adsfdsfsa
[root at fc24 tmp]# unlink c
[root at fc24 tmp]# cat C 
adsfdsfsa
[root at fc24 tmp]# cat /proc/self/mountinfo | grep C
303 305 253:2 /root/tmp/c//deleted /root/tmp/C rw,relatime - ext4
/dev/root rw,data=ordered
[root at fc24 tmp]# cat C 
adsfdsfsa



More information about the CRIU mailing list