Imported reiserfsprogs-3.6.4
This commit is contained in:
1 parent
b69459eb80
commit
99c89460c3
52 files changed
+2263
-2407
No files matched your search
+1
-8
@@ -48,20 +48,13 @@ int is_block_used (unsigned long block)
|
||||
return reiserfs_bitmap_test_bit (fsck_new_bitmap (fs), block);
|
||||
}
|
||||
|
||||
|
||||
void check_hardware_msg (void) {
|
||||
fprintf(stderr, "\nThe problem has occured looks like a hardware problem.\n"\
|
||||
"Send us the bug report only if the second run dies at the same place \n"\
|
||||
"with the same block number.\n");
|
||||
}
|
||||
|
||||
void mark_block_used (unsigned long block, int check_hardware)
|
||||
{
|
||||
if (!block)
|
||||
return;
|
||||
if (is_block_used (block)) {
|
||||
if (check_hardware)
|
||||
check_hardware_msg();
|
||||
check_memory_msg();
|
||||
die ("mark_block_used: (%lu) used already", block);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user