Home
last modified time | relevance | path

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

/system/core/fs_mgr/
Dfs_mgr_verity.c144 static int squashfs_get_target_device_size(char *blk_device, uint64_t *device_size) in squashfs_get_target_device_size() argument
149 *device_size = sq_info.bytes_used_4K_padded; in squashfs_get_target_device_size()
156 static int ext4_get_target_device_size(char *blk_device, uint64_t *device_size) in ext4_get_target_device_size() argument
183 *device_size = info.len; in ext4_get_target_device_size()
189 static int get_fs_size(char *fs_type, char *blk_device, uint64_t *device_size) { in get_fs_size() argument
191 if (ext4_get_target_device_size(blk_device, device_size) < 0) { in get_fs_size()
196 if (squashfs_get_target_device_size(blk_device, device_size) < 0) { in get_fs_size()
207 static int read_verity_metadata(uint64_t device_size, char *block_device, char **signature, in read_verity_metadata() argument
228 if (TEMP_FAILURE_RETRY(lseek64(device, device_size, SEEK_SET)) < 0) { in read_verity_metadata()
249 ERROR("Couldn't find verity metadata at offset %"PRIu64"!\n", device_size); in read_verity_metadata()
[all …]
/system/core/adb/
Dset_verity_enable_state_service.cpp45 uint64_t *device_size) in get_target_device_size() argument
72 *device_size = info.len; in get_target_device_size()