mirror of
https://github.com/versity/scoutfs.git
synced 2026-08-01 12:56:29 +00:00
scoutfs-utils: mkfs requires 16 segments
mkfs needs to make sure that a device is large enough for a file system. We had a tiny limit that almost certainly wouldn't have worked. Increase the limit to a still absurdly small but arguably possible 16 segments. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
+2
-2
@@ -193,8 +193,8 @@ static int write_new_fs(char *path, int fd)
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* require space for one segment */
|
||||
limit = SCOUTFS_SEGMENT_SIZE * 2;
|
||||
/* arbitrarily require space for a handful of segments */
|
||||
limit = SCOUTFS_SEGMENT_SIZE * 16;
|
||||
if (size < limit) {
|
||||
fprintf(stderr, "%llu byte device too small for min %llu byte fs\n",
|
||||
size, limit);
|
||||
|
||||
Reference in New Issue
Block a user