]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
fs: Readd the fs module aliases.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Mar 2013 01:27:41 +0000 (18:27 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Wed, 13 Mar 2013 01:55:21 +0000 (18:55 -0700)
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>
fs/ext4/super.c
fs/freevxfs/vxfs_super.c
fs/isofs/inode.c
fs/nfs/super.c
fs/sysv/super.c
net/sunrpc/rpc_pipe.c

index 34e8552192310a709e6d3d9ccedb35cbe3fca972..b3818b48f418577ad5a7abeb979e1b7d1acd836b 100644 (file)
@@ -91,6 +91,7 @@ static struct file_system_type ext2_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("ext2");
+MODULE_ALIAS("ext2");
 #define IS_EXT2_SB(sb) ((sb)->s_bdev->bd_holder == &ext2_fs_type)
 #else
 #define IS_EXT2_SB(sb) (0)
@@ -106,6 +107,7 @@ static struct file_system_type ext3_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("ext3");
+MODULE_ALIAS("ext3");
 #define IS_EXT3_SB(sb) ((sb)->s_bdev->bd_holder == &ext3_fs_type)
 #else
 #define IS_EXT3_SB(sb) (0)
index 45507430806924e7cb1462c29c3bf1376ce9bc5d..e37eb274e492a9dfd36d4f717d363b6932ae90b5 100644 (file)
@@ -258,6 +258,7 @@ static struct file_system_type vxfs_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("vxfs"); /* makes mount -t vxfs autoload the module */
+MODULE_ALIAS("vxfs");
 
 static int __init
 vxfs_init(void)
index a67f16e846a2c766341fea2a6437c77d61700769..d9b8aebdeb22b467eb9717996b823734f8446300 100644 (file)
@@ -1557,6 +1557,7 @@ static struct file_system_type iso9660_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("iso9660");
+MODULE_ALIAS("iso9660");
 
 static int __init init_iso9660_fs(void)
 {
index 95cdcb208dfb630396058a0688c4341a170b4968..2f8a29db0f1bed59a8300d64038ebe4404d611a6 100644 (file)
@@ -335,6 +335,7 @@ struct file_system_type nfs4_fs_type = {
        .fs_flags       = FS_RENAME_DOES_D_MOVE|FS_BINARY_MOUNTDATA,
 };
 MODULE_ALIAS_FS("nfs4");
+MODULE_ALIAS("nfs4");
 EXPORT_SYMBOL_GPL(nfs4_fs_type);
 
 static int __init register_nfs4_fs(void)
index a39938b1feea148dcecbb8db3731bd37832396fc..d0c6a007ce835cf869fac695eb5445b34be6d814 100644 (file)
@@ -555,6 +555,7 @@ static struct file_system_type v7_fs_type = {
        .fs_flags       = FS_REQUIRES_DEV,
 };
 MODULE_ALIAS_FS("v7");
+MODULE_ALIAS("v7");
 
 static int __init init_sysv_fs(void)
 {
index a0f48a51e14e5e3b57a34970f0be204ec5c802ff..a9129f8d70706f5e33ac8f39cb3ea8a3e5825ca2 100644 (file)
@@ -1175,6 +1175,7 @@ static struct file_system_type rpc_pipe_fs_type = {
        .kill_sb        = rpc_kill_sb,
 };
 MODULE_ALIAS_FS("rpc_pipefs");
+MODULE_ALIAS("rpc_pipefs");
 
 static void
 init_once(void *foo)