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
@@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
/* counters for each kind of blocks */
|
||||
int packed,
|
||||
unsigned int packed,
|
||||
packed_leaves,
|
||||
full_blocks,
|
||||
having_ih_array, /* blocks with broken block head */
|
||||
@@ -638,7 +638,7 @@ static void pack_frozen_data (reiserfs_filsys_t * fs)
|
||||
}
|
||||
reiserfs_warning (stderr, "ok\n");fflush (stderr);
|
||||
reiserfs_warning (stderr,
|
||||
"Super block, bitmaps, journal - %d blocks - done, %d blocks left\n",
|
||||
"Super block, bitmaps, journal - %u blocks - done, %u blocks left\n",
|
||||
packed, reiserfs_bitmap_ones (what_to_pack));
|
||||
}
|
||||
|
||||
@@ -693,13 +693,13 @@ void pack_partition (reiserfs_filsys_t * fs)
|
||||
magic16 = END_MAGIC;
|
||||
fwrite_le16 (&magic16);
|
||||
|
||||
fprintf (stderr, "\nPacked %d blocks:\n"
|
||||
"\tcompessed %d\n"
|
||||
"\tfull blocks %d\n"
|
||||
"\t\tleaves with broken block head %d\n"
|
||||
"\t\tcorrupted leaves %d\n"
|
||||
"\t\tinternals %d\n"
|
||||
"\t\tdescriptors %d\n",
|
||||
fprintf (stderr, "\nPacked %u blocks:\n"
|
||||
"\tcompessed %u\n"
|
||||
"\tfull blocks %u\n"
|
||||
"\t\tleaves with broken block head %u\n"
|
||||
"\t\tcorrupted leaves %u\n"
|
||||
"\t\tinternals %u\n"
|
||||
"\t\tdescriptors %u\n",
|
||||
packed,
|
||||
packed_leaves, full_blocks, having_ih_array,
|
||||
bad_leaves, internals, descs);
|
||||
|
||||
Reference in new issue
Block a user