Searched refs:blk_fd (Results 1 – 1 of 1) sorted by relevance
/system/extras/tests/fstest/ |
D | recovery_test.cpp | 79 bool getSuperBlock(const int blk_fd, struct ext4_super_block* sb) { in getSuperBlock() argument 80 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in getSuperBlock() 85 if (read(blk_fd, sb, sizeof(*sb)) != sizeof(*sb)) { in getSuperBlock() 98 bool setSbErrorBit(const int blk_fd) { in setSbErrorBit() argument 101 if (!getSuperBlock(blk_fd, &sb)) { in setSbErrorBit() 115 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) { in setSbErrorBit() 120 if (write(blk_fd, &sb, sizeof(sb)) != sizeof(sb)) { in setSbErrorBit() 128 bool corruptGdtFreeBlock(const int blk_fd) { in corruptGdtFreeBlock() argument 131 if (!getSuperBlock(blk_fd, &sb)) { in corruptGdtFreeBlock() 150 if (lseek(blk_fd, block_size, SEEK_SET) == -1) { in corruptGdtFreeBlock() [all …]
|