Lines Matching refs:vol
114 for (auto vol : mVolumes) { in findVolume() local
115 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() local
128 if (vol->getType() == type) { in listVolumes()
129 list.push_back(vol->getId()); in listVolumes()
137 for (const auto& vol : mVolumes) { in getVolumes() local
138 vols.push_back(vol); in getVolumes()
139 auto stackedVolumes = vol->getVolumes(); in getVolumes()
174 auto vol = std::shared_ptr<VolumeBase>(new PublicVolume(device)); in createPublicVolume() local
177 vol->setSilent(true); in createPublicVolume()
178 vol->create(); in createPublicVolume()
179 vol->format("auto"); in createPublicVolume()
180 vol->destroy(); in createPublicVolume()
181 vol->setSilent(false); in createPublicVolume()
184 mVolumes.push_back(vol); in createPublicVolume()
185 vol->setDiskId(getId()); in createPublicVolume()
186 vol->create(); in createPublicVolume()
205 auto vol = std::shared_ptr<VolumeBase>(new PrivateVolume(device, keyBuffer)); in createPrivateVolume() local
208 vol->setSilent(true); in createPrivateVolume()
209 vol->create(); in createPrivateVolume()
210 vol->format("auto"); in createPrivateVolume()
211 vol->destroy(); in createPrivateVolume()
212 vol->setSilent(false); in createPrivateVolume()
215 mVolumes.push_back(vol); in createPrivateVolume()
216 vol->setDiskId(getId()); in createPrivateVolume()
217 vol->setPartGuid(partGuid); in createPrivateVolume()
218 vol->create(); in createPrivateVolume()
231 for (const auto& vol : mVolumes) { in destroyAllVolumes() local
232 vol->destroy(); in destroyAllVolumes()
430 void Disk::initializePartition(std::shared_ptr<StubVolume> vol) { in initializePartition() argument
433 mVolumes.push_back(vol); in initializePartition()
437 for (const auto& vol : mVolumes) { in unmountAll() local
438 vol->unmount(); in unmountAll()