btrfs-du icon indicating copy to clipboard operation
btrfs-du copied to clipboard

Rescan should be performed when data inconsistent?

Open MacroBull opened this issue 3 years ago • 0 comments

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 )

MacroBull avatar Apr 13 '21 15:04 MacroBull