[CRIU] [RFC] FSTYPE__UNSUPPORTED/AUTO && non-virtual filesystems

Christopher Covington cov at codeaurora.org
Mon Mar 30 08:44:53 PDT 2015


Hi Oleg,

On 03/28/2015 02:18 PM, Oleg Nesterov wrote:

> BUT. This makes me think again that we do want --ignore-this-mountpoint
> option. Why not? And afaics trivial to implement. Of course, this will
> be "use at your own risk" too.

How hard would it be to unshare the mount namespace, unmount the mountpoint
you want to ignore, and then dump the checkpoint?

I recently was able to write a pretty simple C program to do this (and
additionally pivot_root, umount specifying MNT_DETACH, and chroot or it
probably could have stayed a shell script). (This little container let me
debug Android init with strace and gdb.)

Chris

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project


More information about the CRIU mailing list