Whamcloud - gitweb
fuse2fs: set fuse subtype via argv[0] if possible
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:40:31 +0000 (14:40 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:19:23 +0000 (10:19 -0400)
commit13e365bbfdd97cc086ee9e33cb42f514d8a415ac
treeaed9f016700f43ca58a5c1577188695d18b91f6d
parent5776fc59fb26ecf7a9d4f4ee4cf139ba52bc27a9
fuse2fs: set fuse subtype via argv[0] if possible

If argv[0] ends in "ext[0-9]", set the fuse subtype string to this
value.  This enables us to place fuse2fs at some place in the filesystem
like /sbin/mount.ext2 and have /proc/mounts report the filesystem type
as "fuse.ext2".  This is fairly boring, but it'll make it easier to test
things in fstests.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064709.1160289.11028230202411857669.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c