Skip to content

Commit 7674458

Browse files
committed
Correct the comparison logic
This commit indicates that there is an issue with the existing comparison logic, and it needs to be fixed or rectified.
1 parent b6e52e6 commit 7674458

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mkfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ int main(int argc, char **argv)
270270
stat_buf.st_size = blk_size;
271271
}
272272

273-
/* Check if image is large enough */
273+
/* Verify if the file system image has sufficient size. */
274274
long int min_size = 100 * SIMPLEFS_BLOCK_SIZE;
275-
if (stat_buf.st_size <= min_size) {
275+
if (stat_buf.st_size < min_size) {
276276
fprintf(stderr, "File is not large enough (size=%ld, min size=%ld)\n",
277277
stat_buf.st_size, min_size);
278278
ret = EXIT_FAILURE;

0 commit comments

Comments
 (0)