Home
last modified time | relevance | path

Searched refs:file_offset (Results 1 – 8 of 8) sorted by relevance

/aosp14/system/core/trusty/apploader/
H A Dapploader.cpp134 off64_t file_offset = 0; in read_file() local
135 while (file_offset < file_size) { in read_file()
137 pread(file_fd, (char*)shm + file_offset, file_size - file_offset, file_offset)); in read_file()
149 file_offset += (off64_t)num_read; in read_file()
154 if (file_offset < file_size) { in read_file()
158 assert(file_offset == file_size); in read_file()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
H A Dsnapuserd_readahead.cpp135 if (bm->new_block == 0 && bm->file_offset == 0) { in ReconstructDataFromCow()
365 bm->file_offset = 0; in UpdateScratchMetadata()
367 loff_t file_offset = snapuserd_->GetBufferDataOffset(); in UpdateScratchMetadata() local
376 bm->file_offset = file_offset; in UpdateScratchMetadata()
379 file_offset += BLOCK_SZ; in UpdateScratchMetadata()
388 bm->file_offset = 0; in UpdateScratchMetadata()
542 bm->file_offset = 0; in ReadAheadSyncIO()
544 loff_t file_offset = snapuserd_->GetBufferDataOffset(); in ReadAheadSyncIO() local
590 bm->file_offset = file_offset; in ReadAheadSyncIO()
593 file_offset += BLOCK_SZ; in ReadAheadSyncIO()
[all …]
H A Dsnapuserd_verify.cpp104 loff_t file_offset = offset; in VerifyBlocks() local
120 size_t to_read = std::min((dev_sz - file_offset), read_sz); in VerifyBlocks()
122 if (!android::base::ReadFullyAtOffset(fd.get(), buffer.get(), to_read, file_offset)) { in VerifyBlocks()
125 << " at offset: " << file_offset << " read-size: " << to_read in VerifyBlocks()
131 file_offset += (skip_blocks * kBlockSizeVerify); in VerifyBlocks()
132 if (file_offset >= dev_sz) { in VerifyBlocks()
/aosp14/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/
H A Dsnapuserd_readahead.cpp256 if (bm->new_block == 0 && bm->file_offset == 0) { in ReconstructDataFromCow()
260 loff_t buffer_offset = bm->file_offset - start_data_offset; in ReconstructDataFromCow()
324 bm->file_offset = 0; in ReadAheadIOStart()
330 loff_t file_offset = snapuserd_->GetBufferDataOffset(); in ReadAheadIOStart() local
372 bm->file_offset = file_offset; in ReadAheadIOStart()
375 file_offset += BLOCK_SZ; in ReadAheadIOStart()
399 bm->file_offset = 0; in ReadAheadIOStart()
H A Dsnapuserd.cpp697 off_t file_offset = offset; in ReadBlocksToCache() local
706 if (!android::base::ReadFullyAtOffset(fd.get(), buf.data(), to_read, file_offset)) { in ReadBlocksToCache()
708 << " at offset: " << file_offset in ReadBlocksToCache()
714 file_offset += to_read; in ReadBlocksToCache()
/aosp14/system/core/libsparse/include/sparse/
H A Dsparse.h118 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset,
144 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len,
/aosp14/system/core/libsparse/
H A Dsparse.cpp62 int sparse_file_add_file(struct sparse_file* s, const char* filename, int64_t file_offset, in sparse_file_add_file() argument
64 return backed_block_add_file(s->backed_block_list, filename, file_offset, len, block); in sparse_file_add_file()
67 int sparse_file_add_fd(struct sparse_file* s, int fd, int64_t file_offset, uint64_t len, in sparse_file_add_fd() argument
69 return backed_block_add_fd(s->backed_block_list, fd, file_offset, len, block); in sparse_file_add_fd()
/aosp14/system/core/fs_mgr/libsnapshot/include/libsnapshot/
H A Dcow_format.h179 uint64_t file_offset; member