[Devel] [PATCH rh7] autofs: show pipe inode in mount options
Konstantin Khorenko
khorenko at virtuozzo.com
Thu Jan 14 05:48:17 PST 2016
Andrey, please review.
--
Best regards,
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
On 12/03/2015 05:47 PM, Stanislav Kinsburskiy wrote:
> https://jira.sw.ru/browse/PSBM-41961
>
> 03.12.2015 15:34, Stanislav Kinsburskiy пишет:
>> 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>
>> ---
>> 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));
>>
>> _______________________________________________
>> Devel mailing list
>> Devel at openvz.org
>> https://lists.openvz.org/mailman/listinfo/devel
>
> _______________________________________________
> Devel mailing list
> Devel at openvz.org
> https://lists.openvz.org/mailman/listinfo/devel
>
>
More information about the Devel
mailing list