sys-fs/bees: Adjust 9999 to upstream changes
authorKai Krakow <hurikhan77+bgo@gmail.com>
Thu, 28 Nov 2019 11:20:38 +0000 (12:20 +0100)
committerJoonas Niilola <juippis@gentoo.org>
Thu, 28 Nov 2019 16:34:34 +0000 (18:34 +0200)
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Kai Krakow <hurikhan77+bgo@gmail.com>
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
sys-fs/bees/bees-9999.ebuild

index 22a1b0a488808543f6fbbb3ba181c9b99f61423c..270238c27bcdeca8251fa1dae1b75e53a5cd07e9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -48,7 +48,16 @@ pkg_pretend() {
                        ewarn "# WARNING: CPU: 3 PID: 18172 at fs/btrfs/backref.c:1391 find_parent_nodes+0xc41/0x14e0"
                        ewarn
                fi
-               elog "Bees recommends to run the latest current kernel for performance and"
+               if kernel_is -lt 5 3 4; then
+                       ewarn "With kernel versions below 5.3.4, bees may trigger a btrfs bug when running"
+                       ewarn "btrfs-balance in parallel. This may lead to meta-data corruption in the worst"
+                       ewarn "case. Especially, kernels 5.1.21 and 5.2.21 should be avoided. Kernels 5.0.x"
+                       ewarn "after 5.0.21 should be safe. In the best case, affected kernels may force"
+                       ewarn "the device RO without writing corrupted meta-data. More details:"
+                       ewarn "https://github.com/Zygo/bees/blob/master/docs/btrfs-kernel.md"
+                       ewarn
+               fi
+               elog "Bees recommends running the latest current kernel for performance and"
                elog "reliability reasons, see README.md."
        fi
 }