| 44 | } |
| 45 | |
| 46 | static int test_BeFS(const disk_t *disk_car, const struct disk_super_block*beos_block, const partition_t *partition, const int dump_ind) |
| 47 | { |
| 48 | if(beos_block->magic1!=le32(SUPER_BLOCK_MAGIC1) && |
| 49 | beos_block->magic2!=le32(SUPER_BLOCK_MAGIC2) && |
| 50 | beos_block->magic3!=le32(SUPER_BLOCK_MAGIC3)) |
| 51 | return 1; |
| 52 | if(partition==NULL) |
| 53 | return 0; |
| 54 | if(dump_ind!=0) |
| 55 | { |
| 56 | log_info("\nBeFS magic value at %u/%u/%u\n", offset2cylinder(disk_car,partition->part_offset),offset2head(disk_car,partition->part_offset),offset2sector(disk_car,partition->part_offset)); |
| 57 | dump_log(beos_block,DEFAULT_SECTOR_SIZE); |
| 58 | } |
| 59 | return 0; |
| 60 | } |
| 61 | |
| 62 | |
| 63 | int check_BeFS(disk_t *disk_car,partition_t *partition) |
no test coverage detected