scoutfs-utils: return error for small device

The check for a small device didn't return an error code because it was
copied from error tests of ret for an error code.  It has to generate
one, do so.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-10-23 12:12:56 -07:00
committed by Zach Brown
parent b424208555
commit 4bd86d1a00

View File

@@ -178,6 +178,7 @@ static int write_new_fs(char *path, int fd, u8 quorum_count)
if (size < limit) {
fprintf(stderr, "%llu byte device too small for min %llu byte fs\n",
size, limit);
ret = -EINVAL;
goto out;
}