From c6da530efc0e6ab2e7237458990d3f862f788713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 23 Mar 2011 08:59:49 +0100 Subject: [PATCH] Synced the created image before remounting in ntfsclone Better sync before remounting, but probably not an error --- ntfsprogs/ntfsclone.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 8d590d03..67864ca6 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -1930,6 +1930,7 @@ int main(int argc, char **argv) } wipe = 1; + fsync_clone(fd_out); /* sync copy before mounting */ opt.volume = opt.output; /* 'force' again mount for dirty volumes (e.g. after resize). FIXME: use mount flags to avoid potential side-effects in future */