[CRIU] [RFC 4/4] mount: Extend phys_stat_dev_match to use path resolving instead of btrfs engine

Cyrill Gorcunov gorcunov at openvz.org
Fri Dec 6 12:41:48 PST 2013


Instead of scanning btrfs subvolumes (which can be even unaccessbile
if mount point lays on directory instead of subvolume itself) we use
path resolving feature here -- once we need to figure out if some
device number need to be altered up to mount point (as we know stat()
called on subvolume returns st_dev for subvolume itself, but not
one that associated with a superblock and shown in /proc/self/mountinfo
output).

This as well implies that we need to check if device number for ghost
files are to be updated to match mountinfo, thus we use phys_stat_resolve_dev
helper here.

After this patch the previously merged btrfs engine is no longer needed
(at least it seems so) and can be dropped.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 files-reg.c     |  7 ++++---
 include/mount.h |  2 +-
 mount.c         | 10 ++--------
 sk-unix.c       |  2 +-
 4 files changed, 8 insertions(+), 13 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-mount-Extend-phys_stat_dev_match-to-use-path-resolvi.patch
Type: text/x-patch
Size: 2960 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20131207/43981c49/attachment.bin>


More information about the CRIU mailing list