[CRIU] [PATCH] zdtm: Unlink link_remap files once dump complete

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 6 10:24:50 EST 2013


On Wed, Feb 06, 2013 at 07:18:38PM +0400, Andrew Vagin wrote:
> > diff --git a/test/zdtm.sh b/test/zdtm.sh
> > index 2c91793..f469786 100755
> > --- a/test/zdtm.sh
> > +++ b/test/zdtm.sh
> > @@ -266,6 +266,13 @@ diff_fds()
> >  run_test()
> >  {
> >  	local test=$1
> > +	local linkremap=
> > +
> > +	#
> > +	# add option for unlinked files test
> > +	if [[ $1 =~ "unlink_" ]]; then
> 
> I'm not sure, that this is good idea. We may have unlink_socket for
> example. I can suggest to create a new list and then if a test is in
> this list, --link-remap is added

Adding new list imples significant rework (and/or additional lookup
over test name to figure out if the test we're running is one from
"unlinked" list). I mean I'm not sure how to implement it in elegant
way since i'm not bash expert, help is welcome here ;)


More information about the CRIU mailing list