From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603AbcAGPqT (ORCPT ); Thu, 7 Jan 2016 10:46:19 -0500 Received: from mx2.parallels.com ([199.115.105.18]:60764 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752721AbcAGPqR (ORCPT ); Thu, 7 Jan 2016 10:46:17 -0500 Reply-To: Subject: Re: [PATCH] autofs: show pipe inode in mount options References: <20151216120222.19097.54512.stgit@localhost.localdomain> To: Stanislav Kinsburskiy , CC: , , From: Stanislav Kinsburskiy Message-ID: <568E8840.3010801@odin.com> Date: Thu, 7 Jan 2016 16:46:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151216120222.19097.54512.stgit@localhost.localdomain> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: US-EXCH2.sw.swsoft.com (10.255.249.46) To US-EXCH2.sw.swsoft.com (10.255.249.46) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Good day, gentlemen. Could you update, what's the status with this patch? Without it it's impossible to match process pipe with kernel pipe, while this is "must have" to be able to migrate AutoFS via CRIU. 16.12.2015 13:02, Stanislav Kinsburskiy пишет: > 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 > --- > 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)); >