Commit c9069ba0 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

proc_parse: Call for btrfs_parse_mountinfo on every mount

This helper will cause BTRFS engine to collect all subvolumes.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d4eaf8d6
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "list.h" #include "list.h"
#include "util.h" #include "util.h"
#include "mount.h" #include "mount.h"
#include "mount-btrfs.h"
#include "mman.h" #include "mman.h"
#include "cpu.h" #include "cpu.h"
#include "file-lock.h" #include "file-lock.h"
...@@ -813,6 +814,15 @@ struct mount_info *parse_mountinfo(pid_t pid) ...@@ -813,6 +814,15 @@ struct mount_info *parse_mountinfo(pid_t pid)
new->fstype->name, new->kfstype, new->source, new->fstype->name, new->kfstype, new->source,
new->s_dev, new->root, new->mountpoint, new->s_dev, new->root, new->mountpoint,
new->flags, new->options); new->flags, new->options);
/*
* BTRFS requires subvolumes parsing.
*/
if (btrfs_parse_mountinfo(new)) {
pr_err("Failed to parse FS specific data on %s\n",
new->mountpoint);
goto err;
}
} }
out: out:
fclose(f); fclose(f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment