[CRIU] [PATCH 2/9] proc_parse: Remember a type of FS provided by a kernel

Pavel Emelyanov xemul at parallels.com
Tue Dec 3 10:33:26 PST 2013


On 12/03/2013 07:58 PM, Cyrill Gorcunov wrote:
> 
> We will need it for btrfs handling. Also print out the
> FS type for easier debug
> 
>  | (00.003545)     type unsupported (cgroup) source cgroup 1c / @ /sys/fs/cgroup/blkio flags 30000e options blkio,
>  | (00.003558)     type unsupported (cgroup) source cgroup 1d / @ /sys/fs/cgroup/perf_event flags 30000e options perf_event,
>  | (00.003571)     type unsupported (cgroup) source cgroup 1e / @ /sys/fs/cgroup/hugetlb flags 30000e options hugetlb,
>  | (00.003584)     type unsupported (ext4) source /dev/sda2 800002 / @ / flags 300000 options data=ordered,
>  | (00.003670)     type tmpfs (tmpfs) source tmpfs 20 / @ /tmp flags 100000 options
>  | (00.003696)     type unsupported (mqueue) source mqueue d / @ /dev/mqueue flags 300000 options
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  include/proc_parse.h | 1 +
>  mount.c              | 1 +
>  proc_parse.c         | 7 +++++--
>  3 files changed, 7 insertions(+), 2 deletions(-)
> 


> @@ -107,6 +107,7 @@ struct mount_info {
>  	int		master_id;
>  	int		shared_id;
>  	struct fstype	*fstype;
> +	char		*kfstype;

Why is fstype->name not enough?

>  	char		*source;
>  	char		*options;
>  	bool		mounted;



More information about the CRIU mailing list