Home
last modified time | relevance | path

Searched refs:crypto_blkdev (Results 1 – 5 of 5) sorted by relevance

/system/vold/
DEncryptInplace.cpp66 const char* crypto_blkdev; member
157 LOG(ERROR) << "Error writing crypto_blkdev " << data->crypto_blkdev in flush_outstanding_data()
248 static int cryptfs_enable_inplace_ext4(const char* crypto_blkdev, const char* real_blkdev, in cryptfs_enable_inplace_ext4() argument
265 data.crypto_blkdev = crypto_blkdev; in cryptfs_enable_inplace_ext4()
275 LOG(DEBUG) << "Opening" << crypto_blkdev; in cryptfs_enable_inplace_ext4()
277 while ((data.cryptofd = open(crypto_blkdev, O_WRONLY | O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_ext4()
279 PLOG(ERROR) << "Error opening crypto_blkdev " << crypto_blkdev in cryptfs_enable_inplace_ext4()
283 PLOG(ERROR) << "Error opening crypto_blkdev " << crypto_blkdev in cryptfs_enable_inplace_ext4()
371 LOG(ERROR) << "Error reading real_blkdev " << priv_dat->crypto_blkdev in encrypt_one_block_f2fs()
377 LOG(ERROR) << "Error writing crypto_blkdev " << priv_dat->crypto_blkdev in encrypt_one_block_f2fs()
[all …]
DMetadataCrypt.cpp187 std::string* crypto_blkdev) { in create_crypto_blk_dev() argument
207 *crypto_blkdev = std::string() + "/dev/block/dm-" + in create_crypto_blk_dev()
270 std::string crypto_blkdev; in fscrypt_mount_metadata_encrypted() local
272 default_key_params(blk_device, key), &crypto_blkdev)) in fscrypt_mount_metadata_encrypted()
279 auto rc = cryptfs_enable_inplace(crypto_blkdev.data(), blk_device.data(), nr_sec, in fscrypt_mount_metadata_encrypted()
293 mount_via_fs_mgr(data_rec->mount_point.c_str(), crypto_blkdev.c_str()); in fscrypt_mount_metadata_encrypted()
DEncryptInplace.h27 int cryptfs_enable_inplace(const char* crypto_blkdev, const char* real_blkdev, off64_t size,
Dcryptfs.cpp1555 char crypto_blkdev[MAXPATHLEN]; in cryptfs_restart_internal() local
1614 property_get("ro.crypto.fs_crypto_blkdev", crypto_blkdev, ""); in cryptfs_restart_internal()
1615 if (strlen(crypto_blkdev) == 0) { in cryptfs_restart_internal()
1647 while ((mount_rc = fs_mgr_do_mount(&fstab_default, DATA_MNT_POINT, crypto_blkdev, 0, in cryptfs_restart_internal()
1653 SLOGI("Failed to mount %s because it is busy - waiting", crypto_blkdev); in cryptfs_restart_internal()
1765 char crypto_blkdev[MAXPATHLEN]; in test_mount_encrypted_fs() local
1794 if (create_crypto_blk_dev(crypt_ftr, decrypted_master_key, real_blkdev.c_str(), crypto_blkdev, in test_mount_encrypted_fs()
1818 if (fs_mgr_do_mount(&fstab_default, DATA_MNT_POINT, crypto_blkdev, tmp_mount_point)) { in test_mount_encrypted_fs()
1840 property_set("ro.crypto.fs_crypto_blkdev", crypto_blkdev); in test_mount_encrypted_fs()
2119 static int cryptfs_enable_all_volumes(struct crypt_mnt_ftr* crypt_ftr, char* crypto_blkdev, in cryptfs_enable_all_volumes() argument
[all …]
/system/vold/model/
DPrivateVolume.cpp79 char crypto_blkdev[MAXPATHLEN]; in doCreate() local
80 int res = cryptfs_setup_ext_volume(getId().c_str(), mRawDevPath.c_str(), key, crypto_blkdev); in doCreate()
81 mDmDevPath = crypto_blkdev; in doCreate()