increase wipe size from 16KB to 128KB to erase btrfs signatures
authorDavid Zeuthen <davidz@redhat.com>
Sun, 22 Feb 2009 21:54:51 +0000 (16:54 -0500)
committerDavid Zeuthen <davidz@redhat.com>
Sun, 22 Feb 2009 21:54:51 +0000 (16:54 -0500)
src/job-shared.h

index 27e0cba..6fad7b8 100644 (file)
@@ -105,8 +105,8 @@ _scrub_signatures (int fd, guint64 offset, guint64 size)
 
         ret = FALSE;
 
-        /* wipe first and last 16kb. TODO: check 16kb is the right number */
-        wipe_size = 16 * 1024;
+        /* wipe first and last 128KB. Note that btrfs keeps signatures at 0x10000 == 64KB. */
+        wipe_size = 128 * 1024;
         g_assert (sizeof (buf) >= wipe_size);
 
         if (wipe_size > size) {