On 15.07.2010 07:45, Neil Brown wrote:
(...)
access("/mnt/src/bitmap", F_OK) = -1 ENOENT (No such file or directory)
open("/mnt/src/bitmap", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
Hmm... that's rather embarrassing.
This patch should fit it. Or you can explicitly set a bitmap chunk size -
aim for several megabyte.
Thanks for the report,
NeilBrown
diff --git a/bitmap.c b/bitmap.c
index beef2dc..44a8677 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -373,7 +373,7 @@ int CreateBitmap(char *filename, int force, char uuid[16],
*/
chunksize = DEFAULT_BITMAP_CHUNK;
/*<<20 for 2^20 chunks,>>9 to convert bytes to sectors */
- while (array_size> (chunksize<< (20-9)))
+ while (array_size> ((unsigned long long)chunksize<< (20-9)))
It works fine with that patch applied, thanks a lot!
--
Tomasz Chmielewski
http://syneticon.net
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html