]> git.proxmox.com Git - mirror_qemu.git/commit
virtiofsd: Announce sub-mount points
authorMax Reitz <mreitz@redhat.com>
Wed, 9 Sep 2020 18:40:26 +0000 (20:40 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 26 Oct 2020 18:35:32 +0000 (18:35 +0000)
commit08dce386e77eb9ab044cb118e5391dc9ae11c5a8
treee9fe204d6fb05ae24a802eb428304ef60acbec79
parenteba8b096c17c5a74c5a00af4cf476a9b1b4d7393
virtiofsd: Announce sub-mount points

Whenever we encounter a directory with an st_dev that differs from that
of its parent, we set the FUSE_ATTR_SUBMOUNT flag so the guest can
create a submount for it.

Make this behavior optional, so submounts are only announced to the
guest with the announce_submounts option.  Some users may prefer the
current behavior, so that the guest learns nothing about the host mount
structure.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200909184028.262297-7-mreitz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  Manual merge
tools/virtiofsd/helper.c
tools/virtiofsd/passthrough_ll.c