Lines Matching full:vold
81 using android::vold::BindMount;
82 using android::vold::CreateDir;
83 using android::vold::DeleteDirContents;
84 using android::vold::DeleteDirContentsAndDir;
85 using android::vold::EnsureDirExists;
86 using android::vold::GetFuseMountPathForUser;
87 using android::vold::IsFilesystemSupported;
88 using android::vold::IsSdcardfsUsed;
89 using android::vold::IsVirtioBlkDevice;
90 using android::vold::PrepareAndroidDirs;
91 using android::vold::PrepareAppDirFromRoot;
92 using android::vold::PrivateVolume;
93 using android::vold::PublicVolume;
94 using android::vold::Symlink;
95 using android::vold::Unlink;
96 using android::vold::UnmountTree;
97 using android::vold::VoldNativeService;
98 using android::vold::VolumeBase;
100 static const char* kPathVirtualDisk = "/data/misc/vold/virtual_disk";
148 auto disk = new android::vold::Disk( in updateVirtualDisk()
150 android::vold::Disk::Flags::kAdoptable | android::vold::Disk::Flags::kSd); in updateVirtualDisk()
151 mVirtualDisk = std::shared_ptr<android::vold::Disk>(disk); in updateVirtualDisk()
188 auto vol = std::shared_ptr<android::vold::VolumeBase>( in start()
189 new android::vold::EmulatedVolume("/data/media", 0)); in start()
227 flags |= android::vold::Disk::Flags::kSd; in handleBlockEvent()
229 flags |= android::vold::Disk::Flags::kUsb; in handleBlockEvent()
233 new android::vold::Disk(eventPath, device, source->getNickname(), flags); in handleBlockEvent()
234 handleDiskAdded(std::shared_ptr<android::vold::Disk>(disk)); in handleBlockEvent()
256 void VolumeManager::handleDiskAdded(const std::shared_ptr<android::vold::Disk>& disk) { in handleDiskAdded()
313 std::shared_ptr<android::vold::Disk> VolumeManager::findDisk(const std::string& id) { in findDisk()
322 std::shared_ptr<android::vold::VolumeBase> VolumeManager::findVolume(const std::string& id) { in findVolume()
342 void VolumeManager::listVolumes(android::vold::VolumeBase::Type type, in listVolumes()
352 if (android::vold::NormalizeHex(partGuid, normalizedGuid)) { in forgetPartition()
357 std::string keyPath = android::vold::BuildKeyPath(normalizedGuid); in forgetPartition()
400 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createEmulatedVolumesForUser()
401 new android::vold::EmulatedVolume("/data/media", userId)); in createEmulatedVolumesForUser()
413 std::shared_ptr<android::vold::VolumeBase>(new android::vold::EmulatedVolume( in createEmulatedVolumesForUser()
477 auto mountDirStatus = android::vold::PrepareMountDirForUser(userId); in onUserStarted()
533 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to setns for %s :%s", name, in childProcess()
538 // NOTE: Inlined from vold::UnmountTree here to avoid using PLOG methods and in childProcess()
543 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to unmount /storage/ :%s", in childProcess()
549 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mount %s for %s :%s", in childProcess()
555 async_safe_format_log(ANDROID_LOG_ERROR, "vold", in childProcess()
562 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mount %s for %s :%s", in childProcess()
629 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to opendir"); in scanProcProcesses()
634 if (!android::vold::Readlinkat(dirfd(dir), "1/ns/mnt", &rootName)) { in scanProcProcesses()
635 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to read root namespace"); in scanProcProcesses()
640 async_safe_format_log(ANDROID_LOG_INFO, "vold", "Start scanning all processes"); in scanProcProcesses()
655 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to stat %s", de->d_name); in scanProcProcesses()
666 if (!android::vold::Readlinkat(pidFd, "ns/mnt", &pidName)) { in scanProcProcesses()
667 async_safe_format_log(ANDROID_LOG_ERROR, "vold", in scanProcProcesses()
682 if (!android::vold::Readlinkat(pidFd, "exe", &exeName)) { in scanProcProcesses()
693 async_safe_format_log(ANDROID_LOG_ERROR, "vold", in scanProcProcesses()
699 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed in callback"); in scanProcProcesses()
707 async_safe_format_log(ANDROID_LOG_INFO, "vold", "Finished scanning all processes"); in scanProcProcesses()
717 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to setns %s", strerror(errno)); in umountStorageDirs()
726 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to umount %s: %s", in umountStorageDirs()
735 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to umount %s :%s", in umountStorageDirs()
741 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to umount %s :%s", in umountStorageDirs()
755 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to setns %s", strerror(errno)); in remountStorageDirs()
762 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mount tmpfs to %s :%s", in remountStorageDirs()
768 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mount tmpfs to %s :%s", in remountStorageDirs()
776 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mkdir %s %s", in remountStorageDirs()
781 async_safe_format_log(ANDROID_LOG_ERROR, "vold", "Failed to mount %s to %s :%s", in remountStorageDirs()
862 // original vold process mount namespace. in forkAndRemountStorage()
909 auto* emulatedVol = static_cast<android::vold::EmulatedVolume*>(vol.get()); in handleAppStorageDirs()
923 return android::vold::AbortFuseConnections(); in abortFuse()
974 android::vold::sSleepOnUnmount = false; in shutdown()
994 android::vold::sSleepOnUnmount = true; in shutdown()
1049 android::vold::ForceUnmount(path); in unmountAll()
1069 // Only offer to create directories for paths managed by vold in setupAppDir()
1105 // 1. A FUSE request from vold puts vold at risk of hanging if the FUSE daemon is down in setupAppDir()
1181 auto vol = std::shared_ptr<android::vold::VolumeBase>( in createObb()
1182 new android::vold::ObbVolume(id, lowerSourcePath, ownerGid)); in createObb()
1208 auto vol = std::shared_ptr<android::vold::StubVolume>( in createStubVolume()
1209 new android::vold::StubVolume(stubId, sourcePath, mountPath, fsType, fsUuid, fsLabel)); in createStubVolume()
1212 passedFlags |= (flags & android::vold::Disk::Flags::kUsb); in createStubVolume()
1213 passedFlags |= (flags & android::vold::Disk::Flags::kSd); in createStubVolume()
1214 if (flags & android::vold::Disk::Flags::kStubVisible) { in createStubVolume()
1215 passedFlags |= (flags & android::vold::Disk::Flags::kStubVisible); in createStubVolume()
1217 passedFlags |= (flags & android::vold::Disk::Flags::kStubInvisible); in createStubVolume()
1221 auto disk = std::shared_ptr<android::vold::Disk>( in createStubVolume()
1222 new android::vold::Disk("stub", stubId, "stub", passedFlags)); in createStubVolume()
1239 return android::vold::MountAppFuse(uid, mountId, device_fd); in mountAppFuse()
1243 return android::vold::UnmountAppFuse(uid, mountId); in unmountAppFuse()
1247 return android::vold::OpenAppFuseFile(uid, mountId, fileId, flags); in openAppFuseFile()
1307 android::status_t android::vold::GetStorageSize(int64_t* storageSize) { in GetStorageSize()