mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-24 22:50:28 +00:00
Add flush command option to sync.sh , to attempt to flush qemu-nbd state and attempt basic repair of filesystem
This commit is contained in:
parent
d1380b57f1
commit
4e77bf1c0a
1 changed files with 6 additions and 0 deletions
|
@ -74,6 +74,12 @@ else
|
||||||
sudo modprobe nbd
|
sudo modprobe nbd
|
||||||
[ ! -d $TMPMOUNT ] && mkdir $TMPMOUNT
|
[ ! -d $TMPMOUNT ] && mkdir $TMPMOUNT
|
||||||
case $1 in
|
case $1 in
|
||||||
|
flush)
|
||||||
|
mount_vdisk
|
||||||
|
sudo blockdev --flushbufs /dev/nbd0
|
||||||
|
sudo dosfsck -w -r -l -v -t /dev/nbd0
|
||||||
|
umount_vdisk
|
||||||
|
;;
|
||||||
diff)
|
diff)
|
||||||
mount_vdisk
|
mount_vdisk
|
||||||
diff -x *.MAP --color=always -r ../src/ $TMPMOUNT/ | less -R -p "diff -x.*|Only in.*"
|
diff -x *.MAP --color=always -r ../src/ $TMPMOUNT/ | less -R -p "diff -x.*|Only in.*"
|
||||||
|
|
Loading…
Reference in a new issue