fusefs: use the fsname mount option if set
authorAlan Somers <asomers@FreeBSD.org>
Fri, 29 Apr 2022 16:43:47 +0000 (10:43 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Fri, 29 Apr 2022 17:10:03 +0000 (11:10 -0600)
commit2f6362484c0e1250ef6a76cccdbe4a95587e850c
treebfbf499f5c4814543432b96c0b618b41ad9101ef
parent616eaa66aa4955f182eb0117e17e07da76fcf696
fusefs: use the fsname mount option if set

The daemon can specify fsname=XXX in its mount options.  If so, the file
system should report f_mntfromname as XXX during statfs.  This will show
up in the output of commands like mount and df.

Submitted by: Ali Abdallah <ali.abdallah@suse.com>
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35090
sbin/mount_fusefs/mount_fusefs.c
sys/fs/fuse/fuse_vfsops.c
tests/sys/fs/fusefs/mockfs.cc
tests/sys/fs/fusefs/mockfs.hh
tests/sys/fs/fusefs/mount.cc
tests/sys/fs/fusefs/utils.cc
tests/sys/fs/fusefs/utils.hh