[Devel,vz7,v2,2/2] mounts: print NFS nested mountpoint info

Submitted by Stanislav Kinsburskiy on June 20, 2017, 4:02 p.m.

Details

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

Commit Message

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

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

Patch hide | download patch | download mbox

diff --git a/criu/mount.c b/criu/mount.c
index 667b279..edbd140 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -751,8 +751,13 @@  static bool unsupported_mount(const struct mount_info *m)
 	struct mount_info *parent = m->parent;
 
 	if (parent && nfs_mount(parent)) {
-		pr_err("overmounted NFS (%s) is not supported yet:\n",
+		pr_err("overmounted NFS (%s) is not supported yet. Nested mount:\n",
 				parent->mountpoint);
+		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;