Re: [PATCH v4 01/12] virtiofsd: Keep /proc/self/mountinfo open

2021-10-20 Thread Vivek Goyal
On Wed, Oct 20, 2021 at 11:04:31AM +0200, Hanna Reitz wrote: > On 18.10.21 19:07, Vivek Goyal wrote: > > On Thu, Sep 16, 2021 at 10:40:34AM +0200, Hanna Reitz wrote: > > > File handles are specific to mounts, and so name_to_handle_at() returns > > > the respective mount ID. However,

Re: [PATCH v4 01/12] virtiofsd: Keep /proc/self/mountinfo open

2021-10-20 Thread Hanna Reitz
On 18.10.21 19:07, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:34AM +0200, Hanna Reitz wrote: File handles are specific to mounts, and so name_to_handle_at() returns the respective mount ID. However, open_by_handle_at() is not content with an ID, it wants a file descriptor for some inode

Re: [PATCH v4 01/12] virtiofsd: Keep /proc/self/mountinfo open

2021-10-18 Thread Vivek Goyal
On Thu, Sep 16, 2021 at 10:40:34AM +0200, Hanna Reitz wrote: > File handles are specific to mounts, and so name_to_handle_at() returns > the respective mount ID. However, open_by_handle_at() is not content > with an ID, it wants a file descriptor for some inode on the mount, > which we have to

[PATCH v4 01/12] virtiofsd: Keep /proc/self/mountinfo open

2021-09-16 Thread Hanna Reitz
File handles are specific to mounts, and so name_to_handle_at() returns the respective mount ID. However, open_by_handle_at() is not content with an ID, it wants a file descriptor for some inode on the mount, which we have to open. We want to use /proc/self/mountinfo to find the mounts' root