<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in sysfs-fs-virtiofs</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>a8f62f50 - virtiofs: export filesystem tags through sysfs</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/Documentation/ABI/testing/sysfs-fs-virtiofs#a8f62f50</link>
        <description>virtiofs: export filesystem tags through sysfsThe virtiofs filesystem is mounted using a &quot;tag&quot; which is exported bythe virtiofs device:  # mount -t virtiofs &lt;tag&gt; /mntThe virtiofs driver knows about all the available tags but these arecurrently not exported to user space.People have asked for these tags to be exported to user space. Mostrecently Lennart Poettering has asked for it as he wants to scan thetags and mount virtiofs automatically in certain cases.https://gitlab.com/virtio-fs/virtiofsd/-/issues/128This patch exports tags at /sys/fs/virtiofs/&lt;N&gt;/tag where N is the id ofthe virtiofs device. The filesystem tag can be obtained by reading this&quot;tag&quot; file.There is also a symlink at /sys/fs/virtiofs/&lt;N&gt;/device that points tothe virtiofs device that exports this tag.This patch converts the existing struct virtio_fs into a full kobject.It already had a refcount so it&apos;s an easy change. The virtio_fs objectscan then be exposed in a kset at /sys/fs/virtiofs/. Note that virtio_fsobjects may live slightly longer than we wish for them to be exposed touserspace, so kobject_del() is called explicitly when the underlyingvirtio_device is removed. The virtio_fs object is freed when allreferences are dropped (e.g. active mounts) but disappears as soon asthe virtiofs device is gone.Originally-by: Vivek Goyal &lt;vgoyal@redhat.com&gt;Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;Reviewed-by: Vivek Goyal &lt;vgoyal@redhat.com&gt;Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;

            List of files:
            /linux-6.15/Documentation/ABI/testing/sysfs-fs-virtiofs</description>
        <pubDate>Tue, 13 Feb 2024 00:11:48 +0000</pubDate>
        <dc:creator>Stefan Hajnoczi &lt;stefanha@redhat.com&gt;</dc:creator>
    </item>
</channel>
</rss>
