From 1673ce9c91d61e3165f9d5ba9dd12d6fa0217a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Tue, 5 Jul 2011 12:17:29 +0200 Subject: [PATCH] Accepted the backup bootsector not be to accounted for when cloning --- ntfsprogs/ntfsclone.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ntfsprogs/ntfsclone.c b/ntfsprogs/ntfsclone.c index 54df7cf0..481d240a 100644 --- a/ntfsprogs/ntfsclone.c +++ b/ntfsprogs/ntfsclone.c @@ -1160,10 +1160,11 @@ static void compare_bitmaps(struct bitmap *a) perr_exit("Couldn't get $Bitmap $DATA"); if (count == 0) { - if (a->size > pos) + /* the backup bootsector need not be accounted for */ + if (((vol->nr_clusters + 7) >> 3) > pos) err_exit("$Bitmap size is smaller than expected" - " (%lld != %lld)\n", - (long long)a->size, (long long)pos); + " (%lld < %lld)\n", + (long long)pos, (long long)a->size); break; }