btrfs-du
btrfs-du copied to clipboard
Rescan should be performed when data inconsistent?
https://github.com/nachoparker/btrfs-du/blob/239fbb80daeffcd695c0493f04968a5690fb4f80/btrfs-du#L97-L105
OUT=$( $btrfs_qgroup_show_raw "$LOCATION" 2>&1 )
grep -i -q -e "rescan is running" -e "data inconsistent" <<< "$OUT" && \
btrfs quota rescan -w "$LOCATION" && OUT=$( $btrfs_qgroup_show_raw "$LOCATION" 2>&1 )