[CRIU] Re: [PATCH 2/3] fowners: Add checkpoint/restore

Pavel Emelyanov xemul at parallels.com
Mon Apr 9 15:38:01 EDT 2012


On 04/09/2012 02:16 PM, Cyrill Gorcunov wrote:
> 
> Basically the idea is to dump file owner
> structure in fdinfo_entry, if there some
> data present -- we restore it.
> 
> For special files such as CWD and EXE, this
> field will be simply zeroified.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  cr-dump.c       |   33 +++++++++++++++++++++++++++++++++
>  cr-show.c       |    9 +++++++++
>  files.c         |   46 ++++++++++++++++++++++++++++++++++++++++++++++
>  include/files.h |    3 +++
>  include/image.h |    9 +++++++++
>  sockets.c       |   18 ++++++++++--------
>  6 files changed, 110 insertions(+), 8 deletions(-)
> 

The fdinfo_entry shouldn't carry fowners. They should be in reg_file_entry,
pipe_entry and socket-s entries.


More information about the CRIU mailing list