Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rescan should be performed when data inconsistent? #23

Open
MacroBull opened this issue Apr 13, 2021 · 0 comments
Open

Rescan should be performed when data inconsistent? #23

MacroBull opened this issue Apr 13, 2021 · 0 comments

Comments

@MacroBull
Copy link

btrfs-du/btrfs-du

Lines 97 to 105 in 239fbb8

grep -i -q -e "rescan is running" -e "data inconsistent" <<< "$OUT" && {
echo "INFO: Quota is disabled. Waiting for rescan to finish ..."
while true; do
sleep 2
OUT=$( $btrfs_qgroup_show_raw "$LOCATION" 2>&1 )
grep -i -q -e "rescan is running" -e "data inconsistent" <<< "$OUT" || break
done
}

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 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant