pnfs: simplify pnfs files module autoloading
Subsystems (2)
PATCH 1/1 pnfs: simplify pnfs files module autoloading
From: J. Bruce Fields <[email protected]>
Embed the necessary alias into the module rather than waiting for someone to add it to /etc/modprobe.conf
Signed-off-by J. Bruce Fields <[email protected]>
--- fs/nfs/nfs4filelayout.c | 2 ++ fs/nfs/objlayout/objio_osd.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
Oops, got Trond's address wrong!
fs/nfs/nfs4filelayout.c +2 -0
@@ -903,5 +903,7 @@ static void __exit nfs4filelayout_exit(void)pnfs_unregister_layoutdriver (&filelayout_type); } +MODULE_ALIAS ("nfs-layouttype4-1" ); +module_init (nfs4filelayout_init);module_exit (nfs4filelayout_exit);
fs/nfs/objlayout/objio_osd.c +2 -0
@@ -1055,5 +1055,7 @@ objlayout_exit(void) __func__); } +MODULE_ALIAS ("nfs-layouttype4-2" ); +module_init (objlayout_init);module_exit (objlayout_exit);
Signature · 1 line
1.7.4.1