Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: image_to_vm.sh

Issue 4108001: Add sync after resize to avoid /dev/loop- is busy errors. (Closed) Base URL: http://git.chromium.org/git/crosutils.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: image_to_vm.sh
diff --git a/image_to_vm.sh b/image_to_vm.sh
index fb786cbf8941e1be66c657fb30511286c29cd8d6..fdf23a413cc93dc5d1814a1f62625388c7d44ea4 100755
--- a/image_to_vm.sh
+++ b/image_to_vm.sh
@@ -167,6 +167,7 @@ else
sudo losetup "${STATEFUL_LOOP_DEV}" "${TEMP_STATE}"
sudo e2fsck -pf "${STATEFUL_LOOP_DEV}"
sudo resize2fs "${STATEFUL_LOOP_DEV}"
+ sync
sudo losetup -d "${STATEFUL_LOOP_DEV}"
fi
fi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698