Bug#1041360: partitionmanager calls btrfsck --repair causing data corruption
Package: partitionmanager
Version: 22.12.3-1
Severity: normal
Dear Maintainer,
* What led up to the situation?
I was trying to resize a btrfs partition.
* What exactly did you do (or not do) that was effective (or
ineffective)?
I saw partitionmanager invoke "btrfsck --repair" on the partition without asking.
* What was the outcome of this action?
I immediately killed partitionmanager, and still suffer from shock! :)
* What outcome did you expect instead?
btrfsck --repair is well known to corrupt data, and under no circumstances
must a program run it without explicitly asking the user. Note the warning
message that the program outputs:
WARNING:
Do not use --repair unless you are advised to do so by a developer
or an experienced user,
This is not an idle warning to be ignored. MAybe one day in the future,
btrfsck --repair will be as useful as other fsck programs, but at this
point in time, running btrfsck --repair almost invariably results in
making things worse rather than better.
-- System Information:
Debian Release: 12.0
APT prefers stable-updates
APT policy: (990, 'stable-updates'), (990, 'stable-security'), (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32
Kernel: Linux 6.1.37-schmorp (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_USER, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages partitionmanager depends on:
ii kio 5.103.0-1
ii libc6 2.36-9
ii libkf5configcore5 5.103.0-2
ii libkf5configgui5 5.103.0-2
ii libkf5configwidgets5 5.103.0-1
ii libkf5coreaddons5 5.103.0-1
ii libkf5crash5 5.103.0-1
ii libkf5dbusaddons5 5.103.0-1
ii libkf5i18n5 5.103.0-1
ii libkf5jobwidgets5 5.103.0-1
ii libkf5kiocore5 5.103.0-1
ii libkf5kiogui5 5.103.0-1
ii libkf5widgetsaddons5 5.103.0-1
ii libkf5windowsystem5 5.103.0-1
ii libkf5xmlgui5 5.103.0-1
ii libkpmcore12 22.12.3-1
ii libpolkit-qt5-1-1 0.114.0-2
ii libqt5core5a 5.15.8+dfsg-11
ii libqt5gui5 5.15.8+dfsg-11
ii libqt5widgets5 5.15.8+dfsg-11
ii libstdc++6 12.2.0-14
partitionmanager recommends no packages.
Versions of packages partitionmanager suggests:
ii btrfs-progs 6.2-1
ii dosfstools 4.2-1
ii hfsplus 1.0.4-17
ii hfsutils 3.2.6-15
pn jfsutils <none>
ii ntfs-3g 1:2022.10.3-1+b1
ii reiser4progs 1.2.2-1+b1
ii reiserfsprogs 1:3.6.27-4
ii xfsprogs 6.1.0-1
-- no debconf information
Reply to: