From 3e5eeaa80c6ef5568ed54ab11c8319a50d39bf3f Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 14 Apr 2016 13:13:18 -0700 Subject: [PATCH] scoutfs: initialize block alloc past mkfs blocks The format doesn't yet record free blocks. We've been relying on the scary initialization of the block allocator past the blocks that are written by mkfs. And it was wrong. This garbage will be replaced with an allocator in a few commits. Signed-off-by: Zach Brown --- kmod/src/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/super.c b/kmod/src/super.c index 0921e313..393afc46 100644 --- a/kmod/src/super.c +++ b/kmod/src/super.c @@ -80,7 +80,7 @@ static int read_supers(struct super_block *sb) * XXX These don't exist in the super yet. They should soon. */ atomic64_set(&sbi->next_ino, SCOUTFS_ROOT_INO + 1); - atomic64_set(&sbi->next_blkno, 2); + atomic64_set(&sbi->next_blkno, 6); return 0; }