Lines Matching refs:vol
261 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local
262 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() local
288 if (vol == nullptr) { in unmount()
291 return translate(vol->unmount()); in unmount()
299 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local
300 if (vol == nullptr) { in format()
303 return translate(vol->format(fsType)); in format()
310 auto vol = VolumeManager::Instance()->findVolume(volId); in pathForVolId() local
311 if (vol == nullptr) { in pathForVolId()
314 if (vol->getType() != VolumeBase::Type::kPrivate) { in pathForVolId()
317 if (vol->getState() != VolumeBase::State::kMounted) { in pathForVolId()
320 *path = vol->getPath(); in pathForVolId()