Re: [PATCH v3 5/7] virtiofsd: Announce sub-mount points

2020-11-03 Thread Miklos Szeredi
On Tue, Nov 3, 2020 at 10:00 AM Max Reitz wrote: > > On 03.11.20 09:10, Miklos Szeredi wrote: > > On Mon, Nov 2, 2020 at 5:19 PM Max Reitz wrote: > >> > >> Whenever we encounter a directory with an st_dev or mount ID that > >> differs from that of its parent, we set the FUSE_ATTR_SUBMOUNT flag so

Re: [PATCH v3 5/7] virtiofsd: Announce sub-mount points

2020-11-03 Thread Max Reitz
On 03.11.20 09:10, Miklos Szeredi wrote: > On Mon, Nov 2, 2020 at 5:19 PM Max Reitz wrote: >> >> Whenever we encounter a directory with an st_dev or mount ID that >> differs from that of its parent, we set the FUSE_ATTR_SUBMOUNT flag so >> the guest can create a submount for it. >> >> We only need

Re: [PATCH v3 5/7] virtiofsd: Announce sub-mount points

2020-11-03 Thread Miklos Szeredi
On Mon, Nov 2, 2020 at 5:19 PM Max Reitz wrote: > > Whenever we encounter a directory with an st_dev or mount ID that > differs from that of its parent, we set the FUSE_ATTR_SUBMOUNT flag so > the guest can create a submount for it. > > We only need to do so in lo_do_lookup(). The following funct

[PATCH v3 5/7] virtiofsd: Announce sub-mount points

2020-11-02 Thread Max Reitz
Whenever we encounter a directory with an st_dev or mount ID that differs from that of its parent, we set the FUSE_ATTR_SUBMOUNT flag so the guest can create a submount for it. We only need to do so in lo_do_lookup(). The following functions return a fuse_attr object: - lo_create(), though fuse_r