Skip to content

Commit

Permalink
Add flush command option to sync.sh , to attempt to flush qemu-nbd st…
Browse files Browse the repository at this point in the history
…ate and attempt basic repair of filesystem
  • Loading branch information
GutPuncher committed Aug 26, 2024
1 parent d1380b5 commit 4e77bf1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ else
sudo modprobe nbd
[ ! -d $TMPMOUNT ] && mkdir $TMPMOUNT
case $1 in
flush)
mount_vdisk
sudo blockdev --flushbufs /dev/nbd0
sudo dosfsck -w -r -l -v -t /dev/nbd0
umount_vdisk
;;
diff)
mount_vdisk
diff -x *.MAP --color=always -r ../src/ $TMPMOUNT/ | less -R -p "diff -x.*|Only in.*"
Expand Down

0 comments on commit 4e77bf1

Please sign in to comment.