diff mbox

sunrpc: add MODULE_ALIAS to match the filesystem name

Message ID 20110701224712.12393.10369.stgit@localhost6.localdomain6 (mailing list archive)
State New, archived
Headers show

Commit Message

Michal Schmidt July 1, 2011, 10:47 p.m. UTC
sunrpc implements the rpc_pipefs filesystem type.
Add the alias to have the module requested automatically by the kernel
when the filesystem is mounted.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
---

 net/sunrpc/rpc_pipe.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

J. Bruce Fields July 6, 2011, 3:33 p.m. UTC | #1
On Sat, Jul 02, 2011 at 12:47:12AM +0200, Michal Schmidt wrote:
> sunrpc implements the rpc_pipefs filesystem type.
> Add the alias to have the module requested automatically by the kernel
> when the filesystem is mounted.

Makes sense to me.--b.

> 
> Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
> ---
> 
>  net/sunrpc/rpc_pipe.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
> index 72bc536..c1d1996 100644
> --- a/net/sunrpc/rpc_pipe.c
> +++ b/net/sunrpc/rpc_pipe.c
> @@ -1084,3 +1084,6 @@ void unregister_rpc_pipefs(void)
>  	kmem_cache_destroy(rpc_inode_cachep);
>  	unregister_filesystem(&rpc_pipe_fs_type);
>  }
> +
> +/* Make 'mount -t rpc_pipefs ...' autoload this module. */
> +MODULE_ALIAS("rpc_pipefs");
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 72bc536..c1d1996 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1084,3 +1084,6 @@  void unregister_rpc_pipefs(void)
 	kmem_cache_destroy(rpc_inode_cachep);
 	unregister_filesystem(&rpc_pipe_fs_type);
 }
+
+/* Make 'mount -t rpc_pipefs ...' autoload this module. */
+MODULE_ALIAS("rpc_pipefs");