mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-06 20:16:25 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user