diff options
author | Rob Norris <[email protected]> | 2024-05-05 14:04:57 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-09-23 10:44:54 -0700 |
commit | 78e9e987e1c2bd0beeabd5f44abbe25cebf3a219 (patch) | |
tree | 08fe9b0382c97ff95fa2d4649fba4c10cec68f66 /module/os/linux/zfs/zfs_ioctl_os.c | |
parent | 410287f7f838d967fb8546c524ca3fccad1ea9bc (diff) |
linux: log a scary warning when used with an experimental kernel
Since the person using the kernel may not be the person who built it,
show a warning at module load too, in case they aren't aware that it
might be weird.
Reviewed-by: Robert Evans <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #15986
Diffstat (limited to 'module/os/linux/zfs/zfs_ioctl_os.c')
-rw-r--r-- | module/os/linux/zfs/zfs_ioctl_os.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/os/linux/zfs/zfs_ioctl_os.c b/module/os/linux/zfs/zfs_ioctl_os.c index 663474ea4..502d173b7 100644 --- a/module/os/linux/zfs/zfs_ioctl_os.c +++ b/module/os/linux/zfs/zfs_ioctl_os.c @@ -303,6 +303,12 @@ openzfs_init_os(void) "ZFS pool version %s, ZFS filesystem version %s\n", ZFS_META_VERSION, ZFS_META_RELEASE, ZFS_DEBUG_STR, SPA_VERSION_STRING, ZPL_VERSION_STRING); +#ifdef HAVE_LINUX_EXPERIMENTAL + printk(KERN_NOTICE "ZFS: Using ZFS with kernel %s is EXPERIMENTAL and " + "SERIOUS DATA LOSS may occur!\n", utsname()->release); + printk(KERN_NOTICE "ZFS: Please report your results at: " + "https://github.com/openzfs/zfs/issues/new\n"); +#endif #ifndef CONFIG_FS_POSIX_ACL printk(KERN_NOTICE "ZFS: Posix ACLs disabled by kernel\n"); #endif /* CONFIG_FS_POSIX_ACL */ |