[Virtio-fs] [RFC] Duplicate submounts in the guest

Max Reitz mreitz at redhat.com
Thu May 7 10:50:23 UTC 2020


On 06.05.20 17:52, Dr. David Alan Gilbert wrote:
> * Max Reitz (mreitz at redhat.com) wrote:
>> Hi,
>>
>> This RFC consists of two patch series, one for virtiofsd (i.e., to be
>> applied to the qemu repo), and one for Linux.
>>
>> The problem it wants to solve is that virtiofsd just passes through the
>> stat.st_ino value from the host to the guest, without taking stat.st_dev
>> into account.  Therefore, it is generally impossible to uniquely
>> identify nodes in the guest by their st_dev/st_ino combinations.
>>
>> One way to fix this would be to derive some algorithm to derive a unique
>> st_ino value from the st_dev/st_ino combination on the host, but this is
>> not always possible.
>>
>> So what this series does it basically passing through st_dev alongside
>> st_ino: We can let the guest create auto-mounted submounts for every
>> host mount point, so that they get their own dedicated st_dev.  This is
>> similar to what NFS does with the crossmnt option.
> 
> Nice;  this should probably get cc'd to fuse-devel and/or put as a pull
> into their github to see what they have to say.

Sure, I just thought maybe I should gather some opinions here first. :)

Max

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20200507/7c496bcd/attachment.sig>


More information about the Virtio-fs mailing list