mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] autofs: show pipe inode in mount options
@ 2015-12-16 12:02 Stanislav Kinsburskiy
  2016-01-07 15:46 ` Stanislav Kinsburskiy
  0 siblings, 1 reply; 16+ messages in thread
From: Stanislav Kinsburskiy @ 2015-12-16 12:02 UTC (permalink / raw)
  To: raven; +Cc: criu, autofs, linux-kernel

This is required for CRIU to migrate a mount point, when write end in user
space is closed.
To be able to migrate such mount, read end of the pipe have to be searched
within autofs master process, and pipe inode will be used as a key.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky@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 a3ae0b2..16f875a 100644
--- a/fs/autofs4/inode.c
+++ b/fs/autofs4/inode.c
@@ -77,6 +77,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));


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-02-02  4:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16 12:02 [PATCH] autofs: show pipe inode in mount options Stanislav Kinsburskiy
2016-01-07 15:46 ` Stanislav Kinsburskiy
2016-01-08  7:20   ` Ian Kent
2016-01-08 11:29     ` Stanislav Kinsburskiy
2016-01-08 12:58       ` Ian Kent
2016-01-08 15:05         ` Stanislav Kinsburskiy
2016-01-09  1:31           ` Ian Kent
2016-01-11 11:33             ` Stanislav Kinsburskiy
2016-01-22 11:34               ` Stanislav Kinsburskiy
2016-01-23  0:30                 ` Ian Kent
2016-01-23  0:57                   ` Ian Kent
2016-01-25 11:30                   ` Stanislav Kinsburskiy
2016-01-25 23:19                   ` Stephen Rothwell
2016-01-25 23:48                     ` Andrew Morton
2016-01-26  3:55                       ` Ian Kent
2016-02-02  4:43                         ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome