Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
kdump.13716
kdump-Add-skip_balance-option-to-BTRFS-mounts.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdump-Add-skip_balance-option-to-BTRFS-mounts.patch of Package kdump.13716
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
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor