[CRIU] [RFC 3/4] mount: btrfs -- Introduce phys_stat_resolve_dev helper
Cyrill Gorcunov
gorcunov at openvz.org
Fri Dec 6 12:41:47 PST 2013
This routine is aimed to find a mount point on which
the path passed as argument is laying on. We walk over
all mount points and see which one is matching.
Once found (in worst case it will be a root mount point
so function is never failing) we're checking if this is
btrfs and then return subvolume0 device id.
See commit 921cf873f30ad35df2b65602ed402f94695a6eb3
for details what the hell we're doing here.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
include/mount.h | 1 +
mount.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-mount-btrfs-Introduce-phys_stat_resolve_dev-helper.patch
Type: text/x-patch
Size: 2109 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20131207/f65e2840/attachment.bin>
More information about the CRIU
mailing list