[CRIU] [PATCH 0/3] BTRFS engine, v2

Cyrill Gorcunov gorcunov at openvz.org
Fri Nov 29 04:48:15 PST 2013


The main change from previous version is that instead of matching paths
we lookup for subvolume device id and use its root (mount point) id which
should match the one obtained from DIAG module.

IOW the key function is

dev_t btrfs_try_demangle(dev_t dev)
{
	struct btrfs_subvol_node *node;

	node = btrfs_node_lookup_dev(dev);
	if (node)
		dev = (dev_t)node->subvol_root->m->s_dev;

	return dev;
}

Cyrill Gorcunov (3):
  mount: Introduce BTRFS engine
  proc_parse: Find subvolumes on BTRFS mount points
  sk-unix: Don't fail if socket path lays on btrfs volume

 Makefile.crtools      |   1 +
 cr-dump.c             |   5 +
 include/mount-btrfs.h |  85 +++++++++
 mount-btrfs.c         | 501 ++++++++++++++++++++++++++++++++++++++++++++++++++
 proc_parse.c          |   6 +-
 sk-unix.c             |  11 ++
 6 files changed, 608 insertions(+), 1 deletion(-)
 create mode 100644 include/mount-btrfs.h
 create mode 100644 mount-btrfs.c

-- 
1.8.3.1


More information about the CRIU mailing list