[Devel] [PATCH RHEL7 COMMIT] ms/autofs: show pipe inode in mount options

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jan 22 01:37:48 PST 2016


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.9.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.9.24
------>
commit 07f472faf282e824ef86e10ff2c9f0b055cdb8d1
Author: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
Date:   Fri Jan 22 13:37:48 2016 +0400

    ms/autofs: show pipe inode in mount options
    
    This is required for CRIU to migrate a mount point, when write end in user
    space is closed.
    
    https://jira.sw.ru/browse/PSBM-41217
    
    Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
    Acked-by: Andrew Vagin <avagin at virtuozzo.com>
---
 fs/autofs4/inode.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/autofs4/inode.c b/fs/autofs4/inode.c
index e9f2597..80cc5d7 100644
--- a/fs/autofs4/inode.c
+++ b/fs/autofs4/inode.c
@@ -81,6 +81,10 @@ static int autofs4_show_options(struct seq_file *m, struct dentry *root)
 		return 0;
 
 	seq_printf(m, ",fd=%d", sbi->pipefd);
+	if (sbi->pipe)
+		seq_printf(m, ",pipe_ino=%ld", sbi->pipe->f_inode->i_ino);
+	else
+		seq_printf(m, ",pipe_ino=-1");
 	if (!uid_eq(root_inode->i_uid, GLOBAL_ROOT_UID))
 		seq_printf(m, ",uid=%u",
 			from_kuid_munged(&init_user_ns, root_inode->i_uid));


More information about the Devel mailing list