Skip to content

Commit

Permalink
linux: log a scary warning when used with an experimental kernel
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Rob Norris <[email protected]>
Sponsored-by: https://despairlabs.com/sponsor/
  • Loading branch information
robn committed Sep 19, 2024
1 parent 5b76ac7 commit 4623240
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions module/os/linux/zfs/zfs_ioctl_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4623240

Please sign in to comment.