Skip to content

Commit fa7614d

Browse files
committed
fs: Readd the fs module aliases.
I had assumed that the only use of module aliases for filesystems prior to "fs: Limit sys_mount to only request filesystem modules." was in request_module. It turns out I was wrong. At least mkinitcpio in Arch linux uses these aliases. So readd the preexising aliases, to keep from breaking userspace. Userspace eventually will have to follow and use the same aliases the kernel does. So at some point we may be delete these aliases without problems. However that day is not today. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
1 parent 3e64fe5 commit fa7614d

6 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎fs/ext4/super.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static struct file_system_type ext2_fs_type = {
9191
.fs_flags = FS_REQUIRES_DEV,
9292
};
9393
MODULE_ALIAS_FS("ext2");
94+
MODULE_ALIAS("ext2");
9495
#define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type)
9596
#else
9697
#define IS_EXT2_SB(sb) (0)
@@ -106,6 +107,7 @@ static struct file_system_type ext3_fs_type = {
106107
.fs_flags = FS_REQUIRES_DEV,
107108
};
108109
MODULE_ALIAS_FS("ext3");
110+
MODULE_ALIAS("ext3");
109111
#define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
110112
#else
111113
#define IS_EXT3_SB(sb) (0)

‎fs/freevxfs/vxfs_super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ static struct file_system_type vxfs_fs_type = {
258258
.fs_flags = FS_REQUIRES_DEV,
259259
};
260260
MODULE_ALIAS_FS("vxfs"); /* makes mount -t vxfs autoload the module */
261+
MODULE_ALIAS("vxfs");
261262

262263
static int __init
263264
vxfs_init(void)

‎fs/isofs/inode.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,6 +1557,7 @@ static struct file_system_type iso9660_fs_type = {
15571557
.fs_flags = FS_REQUIRES_DEV,
15581558
};
15591559
MODULE_ALIAS_FS("iso9660");
1560+
MODULE_ALIAS("iso9660");
15601561

15611562
static int __init init_iso9660_fs(void)
15621563
{

‎fs/nfs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ struct file_system_type nfs4_fs_type = {
335335
.fs_flags = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
336336
};
337337
MODULE_ALIAS_FS("nfs4");
338+
MODULE_ALIAS("nfs4");
338339
EXPORT_SYMBOL_GPL(nfs4_fs_type);
339340

340341
static int __init register_nfs4_fs(void)

‎fs/sysv/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@ static struct file_system_type v7_fs_type = {
555555
.fs_flags = FS_REQUIRES_DEV,
556556
};
557557
MODULE_ALIAS_FS("v7");
558+
MODULE_ALIAS("v7");
558559

559560
static int __init init_sysv_fs(void)
560561
{

‎net/sunrpc/rpc_pipe.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,7 @@ static struct file_system_type rpc_pipe_fs_type = {
11751175
.kill_sb = rpc_kill_sb,
11761176
};
11771177
MODULE_ALIAS_FS("rpc_pipefs");
1178+
MODULE_ALIAS("rpc_pipefs");
11781179

11791180
static void
11801181
init_once(void *foo)

0 commit comments

Comments
 (0)