Lines Matching refs:real_blkdev

540   char real_blkdev[PROPERTY_VALUE_MAX];  in get_crypt_ftr_info()  local
544 fs_mgr_get_crypt_info(fstab, key_loc, real_blkdev, sizeof(key_loc)); in get_crypt_ftr_info()
547 if ( (fd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_info()
548 SLOGE("Cannot open real block device %s\n", real_blkdev); in get_crypt_ftr_info()
559 strlcpy(cached_metadata_fname, real_blkdev, sizeof(cached_metadata_fname)); in get_crypt_ftr_info()
563 SLOGE("Cannot get size of block device %s\n", real_blkdev); in get_crypt_ftr_info()
1831 char real_blkdev[MAXPATHLEN]; local
1852 fs_mgr_get_crypt_info(fstab, 0, real_blkdev, sizeof(real_blkdev));
1865 real_blkdev, crypto_blkdev, label)) {
1974 int cryptfs_setup_ext_volume(const char* label, const char* real_blkdev, argument
1976 int fd = open(real_blkdev, O_RDONLY|O_CLOEXEC);
1978 SLOGE("Failed to open %s: %s", real_blkdev, strerror(errno));
1987 SLOGE("Failed to get size of %s: %s", real_blkdev, strerror(errno));
1997 return create_crypto_blk_dev(&ext_crypt_ftr, key, real_blkdev,
2255 char* real_blkdev, * crypto_blkdev; member
2348 data->real_blkdev);
2456 char *real_blkdev, argument
2472 data.real_blkdev = real_blkdev;
2475 if ( (data.realfd = open(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) {
2477 real_blkdev, errno, strerror(errno));
2596 char *real_blkdev, argument
2610 data.real_blkdev = real_blkdev;
2614 if ( (data.realfd = open64(real_blkdev, O_RDWR|O_CLOEXEC)) < 0) {
2616 real_blkdev);
2663 SLOGE("Failed to encrypt f2fs filesystem on %s", real_blkdev);
2674 static int cryptfs_enable_inplace_full(char *crypto_blkdev, char *real_blkdev, argument
2686 if ( (realfd = open(real_blkdev, O_RDONLY|O_CLOEXEC)) < 0) {
2687 SLOGE("Error opening real_blkdev %s for inplace encrypt\n", real_blkdev);
2713 SLOGE("Cannot seek to previously encrypted point on %s", real_blkdev);
2795 static int cryptfs_enable_inplace(char *crypto_blkdev, char *real_blkdev, argument
2814 if ((rc_ext4 = cryptfs_enable_inplace_ext4(crypto_blkdev, real_blkdev,
2821 if ((rc_f2fs = cryptfs_enable_inplace_f2fs(crypto_blkdev, real_blkdev,
2828 rc_full = cryptfs_enable_inplace_full(crypto_blkdev, real_blkdev,
2885 char *crypto_blkdev, char *real_blkdev, argument
2908 rc = cryptfs_enable_inplace(crypto_blkdev, real_blkdev,
2941 char crypto_blkdev[MAXPATHLEN], real_blkdev[MAXPATHLEN]; local
2999 fs_mgr_get_crypt_info(fstab, 0, real_blkdev, sizeof(real_blkdev));
3002 int fd = open(real_blkdev, O_RDONLY|O_CLOEXEC);
3004 SLOGE("Cannot open block device %s\n", real_blkdev);
3010 SLOGE("Cannot get size of block device %s\n", real_blkdev);
3018 fs_size_sec = get_fs_size(real_blkdev);
3020 fs_size_sec = get_f2fs_filesystem_size_sec(real_blkdev);
3182 create_crypto_blk_dev(&crypt_ftr, decrypted_master_key, real_blkdev, crypto_blkdev,
3200 crypto_blkdev, real_blkdev,