[Devel,2/2] mount: print NFS nested mountpoint info

Submitted by Stanislav Kinsburskiy on June 20, 2017, 3:29 p.m.

Details

Message ID 20170620152903.31119.96329.stgit@skinsbursky-vz7.qa.sw.ru
State New
Series "mounts: fix check for overmounted NFS"
Headers show

Commit Message

Stanislav Kinsburskiy June 20, 2017, 3:29 p.m.
https://jira.sw.ru/browse/PSBM-67466

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@virtuozzo.com>
---
 criu/mount.c |    5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/criu/mount.c b/criu/mount.c
index 46ad66c..0b612a3 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -411,6 +411,11 @@  static bool unsupported_mount(const struct mount_info *m)
 	if (m->parent && nfs_mount(parent)) {
 		pr_err("overmounted NFS (%s) is not supported yet:\n",
 				parent->mountpoint);
+		pr_err("nested mount:\n");
+		pr_err("\ttype %s source %s mnt_id %d s_dev %#x %s @ %s flags %#x options %s\n",
+				m->fsname, m->source,
+				m->mnt_id, m->s_dev, m->root, m->mountpoint,
+				m->flags, m->options);
 		return true;
 	}
 	return false;