btrfs-progs: rescue: Add ability to disable quota offline
Subsystems (2)
PATCH v2 1/1 btrfs-progs: rescue: Add ability to disable quota offline
Provide an offline tool to disable quota.
For kernel which skip_balance doesn't work, there is no way to disable quota on huge fs with balance, as quota will cause balance to hang for a long long time for each tree block switch.
So add an offline rescue tool to disable quota.
Reported-by Dan Merillat <[email protected]>
Signed-off-by Qu Wenruo <[email protected]>
Reviewed-by Su Yue <[email protected]>
---
changelog
v2:
Message update for no quota status item case.
--- Documentation/btrfs-rescue.asciidoc | 6 +++ cmds-rescue.c | 80 +++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+)
Documentation/btrfs-rescue.asciidoc +6 -0
@@ -31,6 +31,12 @@ help. NOTE: Since *chunk-recover* will scan the whole device, it will be *VERY* slow especially executed on a large device. +*disable-quota* <device>:: +disable quota offline ++ +Acts as a fallback method to disable quota for case where mount hangs due to +balance and quota. + *fix-device-size* <device>:: fix device size and super block total bytes values that are do not match +
cmds-rescue.c +80 -0
92 lines not on this page · raw message
Signature · 1 line
2.18.0