Searched refs:blk_fd (Results 1 – 1 of 1) sorted by relevance
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 81 bool getSuperBlock(const int blk_fd, struct ext4_super_block* sb) { in getSuperBlock() argument 82 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in getSuperBlock() 87 if (read(blk_fd, sb, sizeof(*sb)) != sizeof(*sb)) { in getSuperBlock() 100 bool setSbErrorBit(const int blk_fd) { in setSbErrorBit() argument 103 if (!getSuperBlock(blk_fd, &sb)) { in setSbErrorBit() 117 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in setSbErrorBit() 122 if (write(blk_fd, &sb, sizeof(sb)) != sizeof(sb)) { in setSbErrorBit() 130 bool corruptGdtFreeBlock(const int blk_fd) { in corruptGdtFreeBlock() argument 133 if (!getSuperBlock(blk_fd, &sb)) { in corruptGdtFreeBlock() 152 if (lseek(blk_fd, block_size, SEEK_SET) == -1) { in corruptGdtFreeBlock() [all …]
|