Message ID | 20211217022403.2327027-1-naohiro.aota@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | zonefs: add MODULE_ALIAS_FS | expand |
On 2021/12/17 11:24, Naohiro Aota wrote: > Add MODULE_ALIAS_FS() to load the module automatically when you do "mount > -t zonefs". > > Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> It is probably a good idea to add a fixes tag and CC stable, no ? > --- > fs/zonefs/super.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c > index 259ee2bda492..b76dfb310ab6 100644 > --- a/fs/zonefs/super.c > +++ b/fs/zonefs/super.c > @@ -1787,5 +1787,6 @@ static void __exit zonefs_exit(void) > MODULE_AUTHOR("Damien Le Moal"); > MODULE_DESCRIPTION("Zone file system for zoned block devices"); > MODULE_LICENSE("GPL"); > +MODULE_ALIAS_FS("zonefs"); > module_init(zonefs_init); > module_exit(zonefs_exit);
On Fri, Dec 17, 2021 at 11:32:24AM +0900, Damien Le Moal wrote: > On 2021/12/17 11:24, Naohiro Aota wrote: > > Add MODULE_ALIAS_FS() to load the module automatically when you do "mount > > -t zonefs". > > > > Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> > > It is probably a good idea to add a fixes tag and CC stable, no ? Indeed. I'll add the tags and resend. Thanks, > > --- > > fs/zonefs/super.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c > > index 259ee2bda492..b76dfb310ab6 100644 > > --- a/fs/zonefs/super.c > > +++ b/fs/zonefs/super.c > > @@ -1787,5 +1787,6 @@ static void __exit zonefs_exit(void) > > MODULE_AUTHOR("Damien Le Moal"); > > MODULE_DESCRIPTION("Zone file system for zoned block devices"); > > MODULE_LICENSE("GPL"); > > +MODULE_ALIAS_FS("zonefs"); > > module_init(zonefs_init); > > module_exit(zonefs_exit); > > > -- > Damien Le Moal > Western Digital Research
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index 259ee2bda492..b76dfb310ab6 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -1787,5 +1787,6 @@ static void __exit zonefs_exit(void) MODULE_AUTHOR("Damien Le Moal"); MODULE_DESCRIPTION("Zone file system for zoned block devices"); MODULE_LICENSE("GPL"); +MODULE_ALIAS_FS("zonefs"); module_init(zonefs_init); module_exit(zonefs_exit);
Add MODULE_ALIAS_FS() to load the module automatically when you do "mount -t zonefs". Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> --- fs/zonefs/super.c | 1 + 1 file changed, 1 insertion(+)