Searched refs:blk_fd (Results 1 - 1 of 1) sorted by relevance

/system/extras/tests/fstest/
H A Drecovery_test.cpp79 bool getSuperBlock(const int blk_fd, struct ext4_super_block* sb) { argument
80 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) {
85 if (read(blk_fd, sb, sizeof(*sb)) != sizeof(*sb)) {
98 bool setSbErrorBit(const int blk_fd) { argument
101 if (!getSuperBlock(blk_fd, &sb)) {
115 if (lseek(blk_fd, SB_OFFSET, SEEK_SET) == -1) {
120 if (write(blk_fd, &sb, sizeof(sb)) != sizeof(sb)) {
128 bool corruptGdtFreeBlock(const int blk_fd) { argument
131 if (!getSuperBlock(blk_fd, &sb)) {
150 if (lseek(blk_fd, block_siz
[all...]

Completed in 1372 milliseconds