Lines Matching refs:path
133 static const char* find_block_device(const char* path, bool* encryptable, bool* encrypted) { in find_block_device() argument
143 if (strncmp(path, v->mount_point, len) == 0 && in find_block_device()
144 (path[len] == '/' || path[len] == 0)) { in find_block_device()
176 static int produce_block_map(const char* path, const char* map_file, const char* blk_dev, in produce_block_map() argument
192 int ret = stat(path, &sb); in produce_block_map()
194 ALOGE("failed to stat %s\n", path); in produce_block_map()
221 int fd = open(path, O_RDONLY); in produce_block_map()
371 char path[PATH_MAX+1]; in uncrypt() local
372 if (realpath(input_path, path) == NULL) { in uncrypt()
383 const char* blk_dev = find_block_device(path, &encryptable, &encrypted); in uncrypt()
385 ALOGE("failed to find block device for %s", path); in uncrypt()
402 if (strncmp(path, "/data/", 6) == 0) { in uncrypt()
404 if (produce_block_map(path, map_file, blk_dev, encrypted, status_fd) != 0) { in uncrypt()