write ring brick as brick in mkfs

The only ring brick was being written as a full block which made its
brick checksum cover the entire block instead of just the brick.
This commit is contained in:
Zach Brown
2016-02-19 08:53:14 -08:00
parent 2c2f090168
commit a7b8f955fe

View File

@@ -156,7 +156,7 @@ static int write_new_fs(char *path, int fd)
bm->bits[0] = cpu_to_le64(~7ULL);
bm->bits[1] = cpu_to_le64(~0ULL);
ret = write_block(fd, 2, &ring->hdr);
ret = write_brick(fd, 2 << SCOUTFS_BLOCK_BRICK, &ring->hdr);
if (ret)
goto out;