commit:     24514666967518f0e6ce1545a4d24b9ac745d732
Author:     Kai Krakow <hurikhan77+bgo <AT> gmail <DOT> com>
AuthorDate: Thu Nov 28 11:20:38 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Nov 28 16:34:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24514666

sys-fs/bees: Adjust 9999 to upstream changes

Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Kai Krakow <hurikhan77+bgo <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-fs/bees/bees-9999.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/sys-fs/bees/bees-9999.ebuild b/sys-fs/bees/bees-9999.ebuild
index 22a1b0a4888..270238c27bc 100644
--- a/sys-fs/bees/bees-9999.ebuild
+++ b/sys-fs/bees/bees-9999.ebuild
@@ -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
 }

Reply via email to