We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6e52e6 commit 7674458Copy full SHA for 7674458
mkfs.c
@@ -270,9 +270,9 @@ int main(int argc, char **argv)
270
stat_buf.st_size = blk_size;
271
}
272
273
- /* Check if image is large enough */
+ /* Verify if the file system image has sufficient size. */
274
long int min_size = 100 * SIMPLEFS_BLOCK_SIZE;
275
- if (stat_buf.st_size <= min_size) {
+ if (stat_buf.st_size < min_size) {
276
fprintf(stderr, "File is not large enough (size=%ld, min size=%ld)\n",
277
stat_buf.st_size, min_size);
278
ret = EXIT_FAILURE;
0 commit comments