From cdb58a967a1224ddff64943fb245af69b0a25e06 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 9 Aug 2017 13:41:59 -0700 Subject: [PATCH] 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 --- kmod/src/super.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kmod/src/super.c b/kmod/src/super.c index a3704ce4..5e0604da 100644 --- a/kmod/src/super.c +++ b/kmod/src/super.c @@ -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)