Home | History | Annotate | Download | only in vold

Lines Matching refs:Volume

235 int VolumeManager::addVolume(Volume *v) {
243 /* Lookup a volume to handle this device */
249 SLOGD("Device '%s' event handled by volume %s\n", devpath, (*it)->getLabel());
294 Volume *v = lookupVolume(label);
317 int written = snprintf(mountPath, mountPathLen, "%s/%s", Volume::LOOPDIR, idHash);
351 int written = snprintf(buffer, maxlen, "%s/%s", Volume::ASECDIR, id);
438 const char *asecDir = isExternal ? Volume::SEC_ASECDIR_EXT : Volume::SEC_ASECDIR_INT;
514 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
605 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
766 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
829 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
944 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id1);
956 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id2);
1004 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1028 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1140 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1235 if (isAsecInDirectory(Volume::SEC_ASECDIR_INT, asecName)) {
1236 dir = Volume::SEC_ASECDIR_INT;
1237 } else if (isAsecInDirectory(Volume::SEC_ASECDIR_EXT, asecName)) {
1238 dir = Volume::SEC_ASECDIR_EXT;
1276 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1363 Volume* VolumeManager::getVolumeForFile(const char *fileName) {
1388 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1458 Volume *v = lookupVolume(label);
1481 int loopDirLen = strlen(Volume::LOOPDIR);
1483 strcpy(loopDir, Volume::LOOPDIR);
1514 Volume *v = lookupVolume(label);
1526 if (v->getState() != Volume::State_Shared) {
1535 Volume *v = lookupVolume(label);
1552 if (v->getState() == Volume::State_NoMedia) {
1557 if (v->getState() != Volume::State_Idle) {
1570 // This volume does not support raw disk access
1618 Volume *v = lookupVolume(label);
1630 if (v->getState() != Volume::State_Shared) {
1710 Volume *v = lookupVolume(label);
1717 if (v->getState() == Volume::State_NoMedia) {
1722 if (v->getState() != Volume::State_Mounted) {
1723 SLOGW("Attempt to unmount volume which isn't mounted (%d)\n",
1738 rc = vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT);
1739 if (vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_INT)) {
1791 * Looks up a volume by it's label or mount-point
1793 Volume *VolumeManager::lookupVolume(const char *label) {
1834 int VolumeManager::cleanupAsec(Volume *v, bool force) {
1852 if (!strncmp(asecFileName, Volume::SEC_ASECDIR_EXT,
1853 strlen(Volume::SEC_ASECDIR_EXT))) {
1888 // Require that path lives under a volume we manage and is mounted
1894 Volume* vol = getVolumeForFile(path);
1895 if (vol && vol->getState() == Volume::State_Mounted) {
1901 SLOGE("Failed to find mounted volume for %s", path);