linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-fs: Add 'file' mount option
@ 2024-07-09 11:19 Hanna Czenczek
  2024-07-09 11:19 ` [PATCH 1/2] " Hanna Czenczek
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Hanna Czenczek @ 2024-07-09 11:19 UTC (permalink / raw)
  To: linux-kernel, linux-fsdevel, linux-doc, virtualization
  Cc: Hanna Czenczek, Miklos Szeredi, German Maglione, Stefan Hajnoczi,
	Eugenio Pérez, Jonathan Corbet, Vivek Goyal

Hi,

We want to be able to mount filesystems that just consist of one regular
file via virtio-fs, i.e. no root directory, just a file as the root
node.

While that is possible via FUSE itself (through the 'rootmode' mount
option, which is automatically set by the fusermount help program to
match the mount point's inode mode), there is no virtio-fs option yet
that would allow changing the rootmode from S_IFDIR to S_IFREG.

To do that, this series introduces a new 'file' mount option that does
precisely that.  Alternatively, we could provide the same 'rootmode'
option that FUSE has, but as laid out in patch 1's commit description,
that option is a bit cumbersome for virtio-fs (in a way that it is not
for FUSE), and its usefulness as a more general option is limited.


Hanna Czenczek (2):
  virtio-fs: Add 'file' mount option
  virtio-fs: Document 'file' mount option

 fs/fuse/virtio_fs.c                    | 9 ++++++++-
 Documentation/filesystems/virtiofs.rst | 5 ++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

-- 
2.45.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2024-08-29 13:21 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 11:19 [PATCH 0/2] virtio-fs: Add 'file' mount option Hanna Czenczek
2024-07-09 11:19 ` [PATCH 1/2] " Hanna Czenczek
2024-07-09 11:19 ` [PATCH 2/2] virtio-fs: Document " Hanna Czenczek
2024-07-09 17:56 ` [PATCH 0/2] virtio-fs: Add " Josef Bacik
2024-07-10  7:28   ` Hanna Czenczek
2024-07-10 18:42     ` Josef Bacik
2024-07-11  8:21       ` Hanna Czenczek
2024-07-11 14:27         ` Hanna Czenczek
2024-07-11 14:34         ` Josef Bacik
2024-07-11 15:04           ` Hanna Czenczek
2024-07-10 17:28 ` Stefan Hajnoczi
2024-07-11  8:31   ` Hanna Czenczek
2024-08-29  8:07 ` Miklos Szeredi
2024-08-29 12:37   ` Hanna Czenczek
2024-08-29 13:07     ` Miklos Szeredi
     [not found]       ` <b82dd5f9-a214-4a13-b500-38b07f1e9761@redhat.com>
2024-08-29 13:21         ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).