[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240709111918.31233-1-hreitz@redhat.com>
Date: Tue, 9 Jul 2024 13:19:16 +0200
From: Hanna Czenczek <hreitz@...hat.com>
To: linux-kernel@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
linux-doc@...r.kernel.org,
virtualization@...ts.linux.dev
Cc: Hanna Czenczek <hreitz@...hat.com>,
Miklos Szeredi <mszeredi@...hat.com>,
German Maglione <gmaglione@...hat.com>,
Stefan Hajnoczi <stefanha@...hat.com>,
Eugenio PĂ©rez <eperezma@...hat.com>,
Jonathan Corbet <corbet@....net>,
Vivek Goyal <vgoyal@...hat.com>
Subject: [PATCH 0/2] virtio-fs: Add 'file' mount option
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
Powered by blists - more mailing lists