Skip to content

Commit

Permalink
Correct the comparison logic
Browse files Browse the repository at this point in the history
This commit indicates that there is an issue with the existing comparison
logic, and it needs to be fixed or rectified.
  • Loading branch information
jserv committed May 6, 2024
1 parent b6e52e6 commit 7674458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,9 +270,9 @@ int main(int argc, char **argv)
stat_buf.st_size = blk_size;
}

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

0 comments on commit 7674458

Please sign in to comment.