Accepting request 694774 from Kernel:kdump
OBS-URL: https://build.opensuse.org/request/show/694774 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kdump?expand=0&rev=104
This commit is contained in:
commit
944cb336fb
36
kdump-Add-skip_balance-option-to-BTRFS-mounts.patch
Normal file
36
kdump-Add-skip_balance-option-to-BTRFS-mounts.patch
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From f46c26fcf879f368726acf650c43eacde909dc9d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Petr Tesarik <ptesarik@suse.com>
|
||||||
|
Date: Tue, 16 Apr 2019 11:05:18 +0200
|
||||||
|
Subject: Add skip_balance option to BTRFS mounts
|
||||||
|
References: bsc#1108255
|
||||||
|
Upstream: merged
|
||||||
|
Git-commit: f46c26fcf879f368726acf650c43eacde909dc9d
|
||||||
|
|
||||||
|
If a crash happens while a balance operation is being performed on a
|
||||||
|
target btrfs filesystem, then this balance operation is resumed in
|
||||||
|
the kdump environment, which is not desirable. Skip it by adding a
|
||||||
|
'skip_balance' mount option to the kdump initrd.
|
||||||
|
|
||||||
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
||||||
|
---
|
||||||
|
init/setup-kdump.functions | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/init/setup-kdump.functions b/init/setup-kdump.functions
|
||||||
|
index 46b2902..9ff5efc 100644
|
||||||
|
--- a/init/setup-kdump.functions
|
||||||
|
+++ b/init/setup-kdump.functions
|
||||||
|
@@ -764,6 +764,10 @@ function kdump_update_mount() # {{{
|
||||||
|
mountpoint="/kdump/mnt$i/${mountpoint#/kdump/mnt*/}"
|
||||||
|
done
|
||||||
|
|
||||||
|
+ if [ "$fstype" = "btrfs" ] ; then
|
||||||
|
+ opts="$opts,skip_balance"
|
||||||
|
+ fi
|
||||||
|
+
|
||||||
|
kdump_mnt[i]="${mountpoint%/}"
|
||||||
|
kdump_dev[i]="$device"
|
||||||
|
kdump_fstype[i]="$fstype"
|
||||||
|
--
|
||||||
|
2.16.4
|
||||||
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 16 09:12:51 UTC 2019 - ptesarik@suse.com
|
||||||
|
|
||||||
|
- kdump-Add-skip_balance-option-to-BTRFS-mounts.patch: Add
|
||||||
|
skip_balance option to BTRFS mounts (bsc#1108255).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 20 15:35:29 UTC 2019 - ptesarik@suse.com
|
Wed Mar 20 15:35:29 UTC 2019 - ptesarik@suse.com
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -60,6 +60,7 @@ Patch11: %{name}-Restore-only-static-routes-in-kdump-initrd.patch
|
|||||||
Patch12: %{name}-fallback-re-register-fadump-from-userspace.patch
|
Patch12: %{name}-fallback-re-register-fadump-from-userspace.patch
|
||||||
Patch13: %{name}-recover-from-missing-CRASHTIME.patch
|
Patch13: %{name}-recover-from-missing-CRASHTIME.patch
|
||||||
Patch14: %{name}-fix-multipath-user_friendly_names.patch
|
Patch14: %{name}-fix-multipath-user_friendly_names.patch
|
||||||
|
Patch15: %{name}-Add-skip_balance-option-to-BTRFS-mounts.patch
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@ -131,6 +132,7 @@ after a crash dump has occured.
|
|||||||
%patch12 -p1
|
%patch12 -p1
|
||||||
%patch13 -p1
|
%patch13 -p1
|
||||||
%patch14 -p1
|
%patch14 -p1
|
||||||
|
%patch15 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
|
Loading…
Reference in New Issue
Block a user