scoutfs: give module fs scoutfs alias

Use MODULE_ALIAS_FS() to register the "scoutfs" fs alias so that
modprobe can find the module if it's installed and visible to depmod.

We don't yet have clever enough xfstests to mess around with modules.  I
manually verified this by installing the module in /lib/modules and
trying mount -t scoutfs before and after the change.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-08-09 13:41:59 -07:00
committed by Zach Brown
parent c1b2ad9421
commit cdb58a967a

View File

@@ -334,6 +334,7 @@ static struct file_system_type scoutfs_fs_type = {
.kill_sb = scoutfs_kill_sb,
.fs_flags = FS_REQUIRES_DEV,
};
MODULE_ALIAS_FS("scoutfs");
/* safe to call at any failure point in _init */
static void teardown_module(void)