Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897892 - Package the Rust version of virtiofsd (subpart of app-emulation/libvirt)
Summary: Package the Rust version of virtiofsd (subpart of app-emulation/libvirt)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL: https://virtio-fs.gitlab.io/
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-02-26 14:45 UTC by Forza
Modified: 2023-04-17 15:04 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Forza 2023-02-26 14:45:58 UTC
virtiofsd is part of app-emulation/libvirt. It is a daemon for sharing directory trees on the host with guest VM using Virtiofs (https://virtio-fs.gitlab.io/). The development on the daemon is largely shifted to a Rust based implementation (https://gitlab.com/virtio-fs/virtiofsd), so it would be great if we could package this version for Gentoo.

Here is an example where I expose the local Portage repos database with a Gentoo guest running under libvirt/virt-manager:

<filesystem type='mount' accessmode='passthrough'>
  <driver type='virtiofs' queue='1024'/>
  <binary path='/opt/virtiofsd/virtiofsd' xattr='on'/>
  <source dir='/var/db/repos'/>
  <target dir='repos'/>
  <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
</filesystem>
Comment 1 Michal Prívozník 2023-02-28 04:40:57 UTC
(In reply to Forza from comment #0)
> virtiofsd is part of app-emulation/libvirt. It is a daemon for sharing

Just a small correction, virtiofsd used to be part of app-emulation/qemu project, when it was written in C. Then, they started to RIIR, in a brand new repo under adjusted name (virtiofsd-rs). And just recently, the C implementation was removed:

https://gitlab.com/qemu-project/qemu/-/commit/a6bfdaed4a735a2cf59f265e6955fe2adcc99637

(and a couple of commits before it)

and virtiofsd-rs lost the -rs suffix.

Having said all of this, I believe we want to keep the package in app-emulation/ group, e.g. app-emulation/virtiofsd.
Comment 2 Larry the Git Cow gentoo-dev 2023-04-17 15:04:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a4437b03fa847f421a30a19e67c39270958d309

commit 1a4437b03fa847f421a30a19e67c39270958d309
Author:     Michal Privoznik <michal.privoznik@gmail.com>
AuthorDate: 2023-02-28 12:41:02 +0000
Commit:     Matthias Maier <tamiko@gentoo.org>
CommitDate: 2023-04-17 15:04:24 +0000

    app-emulation/virtiofsd: Add live ebuild
    
    This is new package. virtiofsd allows sharing files between
    virtual machines and host. app-emulation/qemu used to ship a C
    implementation, but it was dropped recently [1] in favor of Rust
    implementation. Package the latter then.
    
    The list of crates was generated by 'cargo ebuild' helper.
    
    1: https://gitlab.com/qemu-project/qemu/-/commit/0aaf44776e00d9008806a4731a03271f039515a1
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=897892
    Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com>
    Signed-off-by: Matthias Maier <tamiko@gentoo.org>

 app-emulation/virtiofsd/metadata.xml          |  15 +++
 app-emulation/virtiofsd/virtiofsd-9999.ebuild | 126 ++++++++++++++++++++++++++
 2 files changed, 141 insertions(+)