Lines Matching refs:vol
334 auto vol = VolumeManager::Instance()->findVolume(volId); in mount() local
335 if (vol == nullptr) { in mount()
339 vol->setMountFlags(mountFlags); in mount()
340 vol->setMountUserId(mountUserId); in mount()
342 int res = vol->mount(); in mount()
347 res = VolumeManager::Instance()->setPrimary(vol); in mount()
360 auto vol = VolumeManager::Instance()->findVolume(volId); in unmount() local
361 if (vol == nullptr) { in unmount()
364 return translate(vol->unmount()); in unmount()
372 auto vol = VolumeManager::Instance()->findVolume(volId); in format() local
373 if (vol == nullptr) { in format()
376 return translate(vol->format(fsType)); in format()
383 auto vol = VolumeManager::Instance()->findVolume(volId); in pathForVolId() local
384 if (vol == nullptr) { in pathForVolId()
387 if (vol->getType() != VolumeBase::Type::kPrivate) { in pathForVolId()
390 if (vol->getState() != VolumeBase::State::kMounted) { in pathForVolId()
393 *path = vol->getPath(); in pathForVolId()