Searched refs:vol (Results 1 – 12 of 12) sorted by relevance
114 for (auto vol : mVolumes) { in findVolume() local115 if (vol->getId() == id) { in findVolume()116 return vol; in findVolume()118 auto stackedVol = vol->findVolume(id); in findVolume()127 for (const auto& vol : mVolumes) { in listVolumes() local128 if (vol->getType() == type) { in listVolumes()129 list.push_back(vol->getId()); in listVolumes()159 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local162 vol->setSilent(true); in createPublicVolume()163 vol->create(); in createPublicVolume()[all …]
163 for (auto vol : mVolumes) { in findVolume() local164 if (vol->getId() == id) { in findVolume()165 return vol; in findVolume()234 for (const auto& vol : mVolumes) { in unmount() local235 if (vol->destroy()) { in unmount()236 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() << " stacked above"; in unmount()
160 auto vol = std::shared_ptr<VolumeBase>(new EmulatedVolume(mediaPath, mRawDevice, mFsUuid)); in doMount() local161 addVolume(vol); in doMount()162 vol->create(); in doMount()
180 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument181 vol->destroy(); in bringOffline()182 vol->setSilent(true); in bringOffline()183 vol->create(); in bringOffline()184 vol->setMountFlags(0); in bringOffline()185 vol->mount(); in bringOffline()188 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument189 vol->destroy(); in bringOnline()190 vol->setSilent(false); in bringOnline()191 vol->create(); in bringOnline()
316 auto vol = disk->findVolume(id); in findVolume() local317 if (vol != nullptr) { in findVolume()318 return vol; in findVolume()321 for (const auto& vol : mStubVolumes) { in findVolume() local322 if (vol->getId() == id) { in findVolume()323 return vol; in findVolume()326 for (const auto& vol : mObbVolumes) { in findVolume() local327 if (vol->getId() == id) { in findVolume()328 return vol; in findVolume()421 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary() argument[all …]
261 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local262 if (vol == nullptr) { in mount()266 vol->setMountFlags(mountFlags); in mount()267 vol->setMountUserId(mountUserId); in mount()269 int res = vol->mount(); in mount()274 res = VolumeManager::Instance()->setPrimary(vol); in mount()287 auto vol = VolumeManager::Instance()->findVolume(volId); in unmount() local288 if (vol == nullptr) { in unmount()291 return translate(vol->unmount()); in unmount()299 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local[all …]
90 PrivateVolume* vol = static_cast<PrivateVolume*>(vm->findVolume(id).get()); in addFromVolumeManager() local91 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in addFromVolumeManager()93 paths->push_back(vol->getPath()); in addFromVolumeManager()96 const std::string& fs_type = vol->getFsType(); in addFromVolumeManager()97 if (fs_type == "f2fs" && (Realpath(vol->getRawDmDevPath(), &gc_path) || in addFromVolumeManager()98 Realpath(vol->getRawDevPath(), &gc_path))) { in addFromVolumeManager()
96 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);
68 VolumeInterface* vol);
62 VolumeInterface* vol) { in Initialize() argument73 instance_->vol_ = vol; in Initialize()
60 # Zygote opens /mnt/expand to mount CE DE storage on each vol