crtools: Collect dumping fd parameters into one place
crtools: Collect dumping fd parameters into one place

Introduce the fd_parms structure, that contains all we need to describe
open fd during dump -- its name (int), pos, flags and id. The read_fd_parms
routing fills one once and passes along the stack. This reduces the amount
of arguments significantly.

Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>
Signed-off-by: Cyrill Gorcunov <7a1ea01eee6961eb1e372e3508c2670446d086f4@openvz.org>

gablg1/criu,ldu4/criu,wtf42/criu,KKoukiou/criu-remote,wtf42/criu,kawamuray/criu,biddyweb/criu,kawamuray/criu,kawamuray/criu,biddyweb/criu,efiop/criu,efiop/criu,sdgdsffdsfff/criu,fbocharov/criu,ldu4/criu,marcosnils/criu,KKoukiou/criu-remote,rentzsch/criu,fbocharov/criu,AuthenticEshkinKot/criu,tych0/criu,biddyweb/criu,efiop/criu,efiop/criu,svloyso/criu,gonkulator/criu,gablg1/criu,ldu4/criu,tych0/criu,KKoukiou/criu-remote,ldu4/criu,sdgdsffdsfff/criu,AuthenticEshkinKot/criu,efiop/criu,AuthenticEshkinKot/criu,rentzsch/criu,tych0/criu,eabatalov/criu,LK4D4/criu,gonkulator/criu,fbocharov/criu,svloyso/criu,marcosnils/criu,gonkulator/criu,wtf42/criu,rentzsch/criu,sdgdsffdsfff/criu,marcosnils/criu,biddyweb/criu,kawamuray/criu,gablg1/criu,gonkulator/criu,ldu4/criu,eabatalov/criu,AuthenticEshkinKot/criu,gonkulator/criu,efiop/criu,eabatalov/criu,LK4D4/criu,kawamuray/criu,svloyso/criu,wtf42/criu,marcosnils/criu,AuthenticEshkinKot/criu,LK4D4/criu,tych0/criu,svloyso/criu,fbocharov/criu,fbocharov/criu,gonkulator/criu,biddyweb/criu,ldu4/criu,eabatalov/criu,tych0/criu,gablg1/criu,KKoukiou/criu-remote,sdgdsffdsfff/criu,wtf42/criu,marcosnils/criu,eabatalov/criu,svloyso/criu,biddyweb/criu,KKoukiou/criu-remote,rentzsch/criu,svloyso/criu,eabatalov/criu,KKoukiou/criu-remote,marcosnils/criu,rentzsch/criu,rentzsch/criu,LK4D4/criu,fbocharov/criu,gablg1/criu,LK4D4/criu,sdgdsffdsfff/criu,wtf42/criu,LK4D4/criu,AuthenticEshkinKot/criu,gablg1/criu,tych0/criu,sdgdsffdsfff/criu,kawamuray/criu