Skip to contentSkip to conversation

pnfs: simplify pnfs files module autoloading

PATCH New J. Bruce Fields 1 participant 1 message Jul 15, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

---
 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
index 0bafcc9..a288abc 100644
@@ -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
index 8ff2ea3..aba9577 100644
@@ -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