Lines Matching refs:real_blkdev
294 char real_blkdev[PROPERTY_VALUE_MAX]; in get_crypt_ftr_info() local
298 fs_mgr_get_crypt_info(fstab, key_loc, real_blkdev, sizeof(key_loc)); in get_crypt_ftr_info()
301 if ( (fd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_info()
302 SLOGE("Cannot open real block device %s\n", real_blkdev); in get_crypt_ftr_info()
313 strlcpy(cached_metadata_fname, real_blkdev, sizeof(cached_metadata_fname)); in get_crypt_ftr_info()
317 SLOGE("Cannot get size of block device %s\n", real_blkdev); in get_crypt_ftr_info()
1571 char real_blkdev[MAXPATHLEN]; in test_mount_encrypted_fs() local
1595 fs_mgr_get_crypt_info(fstab, 0, real_blkdev, sizeof(real_blkdev)); in test_mount_encrypted_fs()
1600 real_blkdev, crypto_blkdev, label)) { in test_mount_encrypted_fs()
1707 int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev, in cryptfs_setup_ext_volume() argument
1709 int fd = open(real_blkdev, O_RDONLY|O_CLOEXEC); in cryptfs_setup_ext_volume()
1711 SLOGE("Failed to open %s: %s", real_blkdev, strerror(errno)); in cryptfs_setup_ext_volume()
1720 SLOGE("Failed to get size of %s: %s", real_blkdev, strerror(errno)); in cryptfs_setup_ext_volume()
1730 return create_crypto_blk_dev(&ext_crypt_ftr, key, real_blkdev, in cryptfs_setup_ext_volume()
1998 char* real_blkdev, * crypto_blkdev; member
2091 data->real_blkdev); in flush_outstanding_data()
2199 char *real_blkdev, in cryptfs_enable_inplace_ext4() argument
2217 data.real_blkdev = real_blkdev; in cryptfs_enable_inplace_ext4()
2220 if ( (data.realfd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_ext4()
2222 real_blkdev, errno, strerror(errno)); in cryptfs_enable_inplace_ext4()
2339 char *real_blkdev, in cryptfs_enable_inplace_f2fs() argument
2353 data.real_blkdev = real_blkdev; in cryptfs_enable_inplace_f2fs()
2357 if ( (data.realfd = open64(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_f2fs()
2359 real_blkdev); in cryptfs_enable_inplace_f2fs()
2406 SLOGE("Failed to encrypt f2fs filesystem on %s", real_blkdev); in cryptfs_enable_inplace_f2fs()
2417 static int cryptfs_enable_inplace_full(char *crypto_blkdev, char *real_blkdev, in cryptfs_enable_inplace_full() argument
2429 if ( (realfd = open(real_blkdev, O_RDONLY|O_CLOEXEC)) < 0) { in cryptfs_enable_inplace_full()
2430 SLOGE("Error opening real_blkdev %s for inplace encrypt\n", real_blkdev); in cryptfs_enable_inplace_full()
2456 SLOGE("Cannot seek to previously encrypted point on %s", real_blkdev); in cryptfs_enable_inplace_full()
2538 static int cryptfs_enable_inplace(char *crypto_blkdev, char *real_blkdev, in cryptfs_enable_inplace() argument
2557 if ((rc_ext4 = cryptfs_enable_inplace_ext4(crypto_blkdev, real_blkdev, in cryptfs_enable_inplace()
2564 if ((rc_f2fs = cryptfs_enable_inplace_f2fs(crypto_blkdev, real_blkdev, in cryptfs_enable_inplace()
2571 rc_full = cryptfs_enable_inplace_full(crypto_blkdev, real_blkdev, in cryptfs_enable_inplace()
2628 char *crypto_blkdev, char *real_blkdev, in cryptfs_enable_all_volumes() argument
2651 rc = cryptfs_enable_inplace(crypto_blkdev, real_blkdev, in cryptfs_enable_all_volumes()
2684 char crypto_blkdev[MAXPATHLEN], real_blkdev[MAXPATHLEN]; in cryptfs_enable_internal() local
2744 fs_mgr_get_crypt_info(fstab, 0, real_blkdev, sizeof(real_blkdev)); in cryptfs_enable_internal()
2747 fd = open(real_blkdev, O_RDONLY|O_CLOEXEC); in cryptfs_enable_internal()
2749 SLOGE("Cannot open block device %s\n", real_blkdev); in cryptfs_enable_internal()
2755 SLOGE("Cannot get size of block device %s\n", real_blkdev); in cryptfs_enable_internal()
2763 fs_size_sec = get_fs_size(real_blkdev); in cryptfs_enable_internal()
2765 fs_size_sec = get_f2fs_filesystem_size_sec(real_blkdev); in cryptfs_enable_internal()
2910 create_crypto_blk_dev(&crypt_ftr, decrypted_master_key, real_blkdev, crypto_blkdev, in cryptfs_enable_internal()
2928 crypto_blkdev, real_blkdev, in cryptfs_enable_internal()