Skip to content

Commit

Permalink
fixup! fixup! Fix automatic block calculation and add -r to adjust ex…
Browse files Browse the repository at this point in the history
…tra size
  • Loading branch information
Marcelo Politzer committed Apr 20, 2023
1 parent 7b56137 commit 52cd773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genext2fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ add2fs_from_tarball(filesystem *fs, uint32 this_nod, FILE * fh, int squash_uids,
stats->ninodes++;
break;
case S_IFREG:
stats->nblocks += (filesize + BLOCKSIZE - 1) / BLOCKSIZE;
stats->nblocks += ifreg_blocks(filesize, BLOCKSIZE >> 11);
case S_IFCHR:
case S_IFBLK:
case S_IFIFO:
Expand Down

0 comments on commit 52cd773

Please sign in to comment.