Home
last modified time | relevance | path

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

/aosp_15_r20/system/extras/tests/fstest/
H A Drecovery_test.cpp81 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 …]
/aosp_15_r20/test/vts-testcase/kernel/encryption/
Dfile_based_encryption_tests.cpp357 android::base::unique_fd blk_fd( in ReadRawDataOfFile() local
359 if (blk_fd < 0) { in ReadRawDataOfFile()
364 if (pread(blk_fd, &buf[offset], extent.fe_length, extent.fe_physical) != in ReadRawDataOfFile()