Page MenuHomeFreeBSD

fusefs: use fsname mount option if set
ClosedPublic

Authored by ali.abdallah_suse.com on Apr 28 2022, 7:53 AM.
Tags
None
Referenced Files
F82315892: D35090.id105537.diff
Sat, Apr 27, 2:34 PM
F82315837: D35090.id105551.diff
Sat, Apr 27, 2:33 PM
F82315834: D35090.id105520.diff
Sat, Apr 27, 2:33 PM
F82315828: D35090.id.diff
Sat, Apr 27, 2:33 PM
F82315593: D35090.id105521.diff
Sat, Apr 27, 2:30 PM
Unknown Object (File)
Mon, Apr 22, 9:46 PM
Unknown Object (File)
Mar 4 2024, 8:10 AM
Unknown Object (File)
Jan 13 2024, 7:26 PM
Subscribers
Restricted Owners Package

Details

Reviewers
asomers
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rG2737e6bca78c: fusefs: use the fsname mount option if set
rG2f6362484c0e: fusefs: use the fsname mount option if set
Summary

Use fsname if it set as f_mntfromname, this improves the output of df -hT, which will become

/dev/da0s1 fusefs 58G 814M 57G 1% /media/extfat
instead of
/dev/fuse fusefs 58G 814M 57G 1% /media/extfat

This requires no changes to existing fuse-libs based filesystem or other fuse fs.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Use vfs_getopt instead of vfs_getopts

Does anything already set fsname? libfuse, perhaps?

Does anything already set fsname? libfuse, perhaps?

Yes, libfuse calls mount_fusefs on FreeBSD with fsname set, expect that it is currently ignored by mount_fusefs.

Enabling it in mount_fusefs, and optionally set it as f_mntfromname if it exists in the fuse kernel driver works with no issue for me.

Use specific m_flag for fsname= mount option field.

LGTM, and it works out of the box with at least one file system in ports.

This revision is now accepted and ready to land.Apr 29 2022, 4:53 PM
This revision was automatically updated to reflect the committed changes.