Skip to contentSkip to conversation

btrfs-progs: rescue: Add ability to disable quota offline

PATCH New Qu Wenruo 1 participant 1 message Aug 22, 2018

Subsystems (2)
lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

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.

---
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
index f94a0ff2b45e..fb088c1a768a 100644
@@ -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