[Devel] [PATCH vz7] fuse: virtualize file system

Maxim Patlasov mpatlasov at parallels.com
Tue Sep 22 09:19:42 PDT 2015


On 09/22/2015 09:08 AM, Stanislav Kinsburskiy wrote:
> After thinking for a minute, I would like to ask, why do we need it?
> Both fuse_control_sb and fuse_conn_list belongs to "fusectl" file 
> system, while this patch virtualizes "fuse" one, which is enough for 
> sshfs.

Hm... Makes sense to me.

>
> 22.09.2015 17:38, Maxim Patlasov пишет:
>> I think we have to virtualize fuse_control_sb and fuse_conn_list 
>> _before_ setting FS_VIRTUALIZED bit.
>>
>> On 09/22/2015 06:28 AM, Stanislav Kinsburskiy wrote:
>>> From: Stanislav Kinsburskiy <skinsbursky at parallels.com>
>>>
>>> This is requred to allow to mount FUSE-based filesystems like SshFS.
>>>
>>> https://bugs.openvz.org/browse/OVZ-6498
>>>
>>> Signed-off-by: Stanislav Kinsburskiy <skinsbursky at parallels.com>
>>> ---
>>>   fs/fuse/inode.c |    2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
>>> index d29f9aa..4a1b46f 100644
>>> --- a/fs/fuse/inode.c
>>> +++ b/fs/fuse/inode.c
>>> @@ -1278,7 +1278,7 @@ static void fuse_kill_sb_anon(struct 
>>> super_block *sb)
>>>   static struct file_system_type fuse_fs_type = {
>>>       .owner        = THIS_MODULE,
>>>       .name        = "fuse",
>>> -    .fs_flags    = FS_HAS_SUBTYPE,
>>> +    .fs_flags    = FS_HAS_SUBTYPE | FS_VIRTUALIZED,
>>>       .mount        = fuse_mount,
>>>       .kill_sb    = fuse_kill_sb_anon,
>>>   };
>>>
>>> _______________________________________________
>>> Devel mailing list
>>> Devel at openvz.org
>>> https://lists.openvz.org/mailman/listinfo/devel
>>
>




More information about the Devel mailing list