kernel: Add missing MODULE_VERSION()s for file systems.
authorSascha Wildner <saw@online.de>
Sat, 29 Oct 2011 09:57:42 +0000 (11:57 +0200)
committerSascha Wildner <saw@online.de>
Sat, 29 Oct 2011 09:58:02 +0000 (11:58 +0200)
commite5e63c204af3f7f4e4bc83d132314762b45ef78e
tree7b05debaa0008b2079615d3393ebf41bd686ad95
parent468e7a83ace0a24e34ff3fc251ed2bc5fecffe87
kernel: Add missing MODULE_VERSION()s for file systems.

The loader will figure out by itself whether to load a module or not,
depending on whether it's already in the kernel config or not, iif
MODULE_VERSION() is present.

I.e., if MSDOSFS (that has MODULE_VERSION()) is in the config and
msdos_load="YES" is in /boot/loader.conf, msdos.ko will not be loaded
by the loader at all.

Without MODULE_VERSION() it will lead (in the best case) to whining in
dmesg like for ahci or (in the worst case) to weird behavior, such as
for nullfs:

# mount -a
null: vfsload(null): No such file or directory

Therefore, we definitely want MODULE_VERSION() for all new modules.

This commit is the first in a series to add the missing MODULE_VERSION()s.

I know that ufs is not a module, just included it for completeness' sake.

Reported-by: marino, tuxillo
12 files changed:
sys/emulation/linux/i386/linprocfs/linprocfs_vfsops.c
sys/gnu/vfs/ext2fs/ext2_vfsops.c
sys/vfs/fdesc/fdesc_vfsops.c
sys/vfs/hpfs/hpfs_vfsops.c
sys/vfs/mfs/mfs_vfsops.c
sys/vfs/nfs/nfs_vfsops.c
sys/vfs/nullfs/null_vfsops.c
sys/vfs/nwfs/nwfs_vfsops.c
sys/vfs/portal/portal_vfsops.c
sys/vfs/smbfs/smbfs_vfsops.c
sys/vfs/tmpfs/tmpfs_vfsops.c
sys/vfs/ufs/ffs_vfsops.c