From 98d06c7a6b73b67c8fc40be6b8172b6990591463 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Mon, 16 Apr 2018 14:49:40 -0700 Subject: [PATCH] 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 --- utils/src/mkfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/src/mkfs.c b/utils/src/mkfs.c index 4b357487..f01b0e6c 100644 --- a/utils/src/mkfs.c +++ b/utils/src/mkfs.c @@ -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);