reiserfs: Fix signedness issues for large file systems
Now that we handle file systems > 8 TB, we end up printing large negative numbers instead of actual block numbers. This patch fixes those places to use unsigned ints for block numbers. Signed-by: Jeff Mahoney <jeffm@suse.com>
This commit is contained in:
1 parent
5d4f1fa494
commit
0265fd70c1
13 files changed
+47
-44
No files matched your search
@@ -628,7 +628,7 @@ void close_rollback_file () {
|
||||
return;
|
||||
fwrite (&rollback_blocks_number, sizeof (rollback_blocksize), 1, s_rollback_file);
|
||||
if (log_file != 0)
|
||||
fprintf (log_file, "rollback: %d blocks backed up\n", rollback_blocks_number);
|
||||
fprintf (log_file, "rollback: %u blocks backed up\n", rollback_blocks_number);
|
||||
}
|
||||
|
||||
fclose (s_rollback_file);
|
||||
|
||||
Reference in new issue
Block a user