Searched refs:vol (Results 1 – 8 of 8) sorted by relevance
96 for (auto vol : mVolumes) { in findVolume() local97 if (vol->getId() == id) { in findVolume()98 return vol; in findVolume()100 auto stackedVol = vol->findVolume(id); in findVolume()109 for (auto vol : mVolumes) { in listVolumes() local110 if (vol->getType() == type) { in listVolumes()111 list.push_back(vol->getId()); in listVolumes()135 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local138 vol->setSilent(true); in createPublicVolume()139 vol->create(); in createPublicVolume()[all …]
159 static void bringOffline(const std::shared_ptr<VolumeBase>& vol) { in bringOffline() argument160 vol->destroy(); in bringOffline()161 vol->setSilent(true); in bringOffline()162 vol->create(); in bringOffline()163 vol->setMountFlags(0); in bringOffline()164 vol->mount(); in bringOffline()167 static void bringOnline(const std::shared_ptr<VolumeBase>& vol) { in bringOnline() argument168 vol->destroy(); in bringOnline()169 vol->setSilent(false); in bringOnline()170 vol->create(); in bringOnline()
155 for (auto vol : mVolumes) { in findVolume() local156 if (vol->getId() == id) { in findVolume()157 return vol; in findVolume()222 for (auto vol : mVolumes) { in unmount() local223 if (vol->destroy()) { in unmount()224 LOG(WARNING) << getId() << " failed to destroy " << vol->getId() in unmount()
57 auto vol = vm->findVolume(id); in TrimTask() local58 if (vol != nullptr && vol->getState() == VolumeBase::State::kMounted) { in TrimTask()59 mPaths.push_back(vol->getPath()); in TrimTask()
206 auto vol = vm->findVolume(id); in runCommand() local207 if (vol == nullptr) { in runCommand()214 vol->setMountFlags(mountFlags); in runCommand()215 vol->setMountUserId(mountUserId); in runCommand()217 int res = vol->mount(); in runCommand()219 vm->setPrimary(vol); in runCommand()226 auto vol = vm->findVolume(id); in runCommand() local227 if (vol == nullptr) { in runCommand()231 return sendGenericOkFail(cli, vol->unmount()); in runCommand()237 auto vol = vm->findVolume(id); in runCommand() local[all …]
172 auto vol = std::shared_ptr<VolumeBase>( in doMount() local174 addVolume(vol); in doMount()175 vol->create(); in doMount()
364 auto vol = disk->findVolume(id); in findVolume() local365 if (vol != nullptr) { in findVolume()366 return vol; in findVolume()385 auto vol = findVolume(id); in benchmarkPrivate() local386 if (vol != nullptr && vol->getState() == android::vold::VolumeBase::State::kMounted) { in benchmarkPrivate()387 path = vol->getPath(); in benchmarkPrivate()466 int VolumeManager::setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol) { in setPrimary() argument467 mPrimary = vol; in setPrimary()
132 int setPrimary(const std::shared_ptr<android::vold::VolumeBase>& vol);