Home
last modified time | relevance | path

Searched refs:volume_uuid (Results 1 – 3 of 3) sorted by relevance

/system/vold/
DFsCrypt.cpp633 static std::string volkey_path(const std::string& misc_path, const std::string& volume_uuid) { in volkey_path() argument
634 return misc_path + "/vold/volume_keys/" + volume_uuid + "/default"; in volkey_path()
637 static std::string volume_secdiscardable_path(const std::string& volume_uuid) { in volume_secdiscardable_path() argument
638 return systemwide_volume_key_dir + "/" + volume_uuid + "/secdiscardable"; in volume_secdiscardable_path()
641 static bool read_or_create_volkey(const std::string& misc_path, const std::string& volume_uuid, in read_or_create_volkey() argument
643 auto secdiscardable_path = volume_secdiscardable_path(volume_uuid); in read_or_create_volkey()
656 auto key_path = volkey_path(misc_path, volume_uuid); in read_or_create_volkey()
668 if (!install_storage_key(BuildDataPath(volume_uuid), options, key, policy)) return false; in read_or_create_volkey()
672 static bool destroy_volkey(const std::string& misc_path, const std::string& volume_uuid) { in destroy_volkey() argument
673 auto path = volkey_path(misc_path, volume_uuid); in destroy_volkey()
[all …]
DFsCrypt.h36 bool fscrypt_prepare_user_storage(const std::string& volume_uuid, userid_t user_id, int serial,
38 bool fscrypt_destroy_user_storage(const std::string& volume_uuid, userid_t user_id, int flags);
40 bool fscrypt_destroy_volume_keys(const std::string& volume_uuid);
Dvold_prepare_subdirs.cpp148 static bool prepare_subdirs(const std::string& volume_uuid, int user_id, int flags) { in prepare_subdirs() argument
151 if (volume_uuid.empty()) { in prepare_subdirs()
197 static bool destroy_subdirs(const std::string& volume_uuid, int user_id, int flags) { in destroy_subdirs() argument
199 if (volume_uuid.empty()) { in destroy_subdirs()
227 auto volume_uuid = args[1]; in main() local
231 if (!prepare_subdirs(volume_uuid, user_id, flags)) return -1; in main()
233 if (!destroy_subdirs(volume_uuid, user_id, flags)) return -1; in main()