[CRIU] [PATCH 1/2] mnt: Add debug printout if bindmount is changing flags
Cyrill Gorcunov
gorcunov at openvz.org
Thu Oct 8 12:45:54 PDT 2015
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
mount.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mount.c b/mount.c
index f5fe1517d6e3..52cb8a1766d0 100644
--- a/mount.c
+++ b/mount.c
@@ -2078,11 +2078,13 @@ do_bind:
}
mflags = mi->flags & (~MS_PROPAGATE);
- if (!mi->bind || mflags != (mi->bind->flags & (~MS_PROPAGATE)))
+ if (!mi->bind || mflags != (mi->bind->flags & (~MS_PROPAGATE))) {
+ pr_debug("\tRemount @%s as %#lx\n", mi->mountpoint, MS_BIND | MS_REMOUNT | mflags);
if (mount(NULL, mi->mountpoint, NULL, MS_BIND | MS_REMOUNT | mflags, NULL)) {
pr_perror("Can't mount at %s", mi->mountpoint);
return -1;
}
+ }
if (unlikely(mi->deleted)) {
if (S_ISDIR(st.st_mode)) {
--
2.4.3
More information about the CRIU
mailing list