summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.c')
-rw-r--r--mkfs.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkfs.c b/mkfs.c
index cc0eec02..f942dc73 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -414,8 +414,11 @@ int main(int ac, char **av)
if (block_count == 0)
block_count = dev_block_count;
- for (i = 0; i < 7; i++)
- blocks[i] = BTRFS_SUPER_INFO_OFFSET + leafsize * i;
+ blocks[0] = BTRFS_SUPER_INFO_OFFSET;
+ for (i = 1; i < 7; i++) {
+ blocks[i] = BTRFS_SUPER_INFO_OFFSET + 1024 * 1024 +
+ leafsize * i;
+ }
ret = make_btrfs(fd, file, label, blocks, block_count,
nodesize, leafsize,