Page MenuHomeFreeBSD

add virtiofs mount utility
AbandonedPublic

Authored by emil_etsalapatis.com on Aug 14 2024, 3:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 1, 1:32 AM
Unknown Object (File)
Thu, Feb 26, 1:41 PM
Unknown Object (File)
Wed, Feb 25, 11:39 AM
Unknown Object (File)
Tue, Feb 10, 6:37 AM
Unknown Object (File)
Dec 17 2025, 1:04 PM
Unknown Object (File)
Nov 24 2025, 7:22 PM
Unknown Object (File)
Nov 23 2025, 12:02 AM
Unknown Object (File)
Nov 22 2025, 11:57 PM

Details

Summary

Add a mount userspace utility specific to virtiofs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 59023
Build 55910: arc lint + arc unit

Event Timeline

asomers requested changes to this revision.Aug 21 2024, 4:37 PM

Can you add a man page, too?

sbin/mount_virtiofs/mount_virtiofs.c
4–11

These copyright holders look copy/pasted. You should remove them.

This revision now requires changes to proceed.Aug 21 2024, 4:37 PM

Do we actually need the utility? mount.c says,

/* XXX: We need to get away from implementing external mount
 *      programs for every filesystem, and move towards having
 *	each filesystem properly implement the nmount() system call.
 */

And for tag-as-first-argument convenience (instead of specifying tag=) just take the tag as the "from"?

Can you add a man page, too?

Sounds good, I will add it in this diff if we keep the utility.

Do we actually need the utility? mount.c says,

/* XXX: We need to get away from implementing external mount
 *      programs for every filesystem, and move towards having
 *	each filesystem properly implement the nmount() system call.
 */

And for tag-as-first-argument convenience (instead of specifying tag=) just take the tag as the "from"?

That would be nice, I'll try out using the generic mount utility to see if we can make do without it. I made a new utility for virtiofs because I started off of the FUSE dedicated mount utility, but it turns out that virtiofs shares very little mount logic with FUSE.

Unnecessary since the generic mount utility can mount/unmount virtiofs.