Home | History | Annotate | Download | only in vold

Lines Matching refs:Volume

128 int VolumeManager::addVolume(Volume *v) {
136 /* Lookup a volume to handle this device */
142 SLOGD("Device '%s' event handled by volume %s\n", devpath, (*it)->getLabel());
172 Volume *v = lookupVolume(label);
195 int written = snprintf(mountPath, mountPathLen, "%s/%s", Volume::LOOPDIR, idHash);
229 int written = snprintf(buffer, maxlen, "%s/%s", Volume::ASECDIR, id);
316 const char *asecDir = isExternal ? Volume::SEC_ASECDIR_EXT : Volume::SEC_ASECDIR_INT;
422 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
531 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
594 Volume::ASECDIR, id);
703 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id1);
715 written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id2);
763 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
787 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
893 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
988 if (isAsecInDirectory(Volume::SEC_ASECDIR_INT, asecName)) {
989 dir = Volume::SEC_ASECDIR_INT;
990 } else if (isAsecInDirectory(Volume::SEC_ASECDIR_EXT, asecName)) {
991 dir = Volume::SEC_ASECDIR_EXT;
1029 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::ASECDIR, id);
1151 Volume* VolumeManager::getVolumeForFile(const char *fileName) {
1176 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash);
1273 Volume *v = lookupVolume(label);
1296 int loopDirLen = strlen(Volume::LOOPDIR);
1298 strcpy(loopDir, Volume::LOOPDIR);
1329 Volume *v = lookupVolume(label);
1341 if (v->getState() != Volume::State_Shared) {
1350 Volume *v = lookupVolume(label);
1367 if (v->getState() == Volume::State_NoMedia) {
1372 if (v->getState() != Volume::State_Idle) {
1385 // This volume does not support raw disk access
1433 Volume *v = lookupVolume(label);
1445 if (v->getState() != Volume::State_Shared) {
1525 Volume *v = lookupVolume(label);
1532 if (v->getState() == Volume::State_NoMedia) {
1537 if (v->getState() != Volume::State_Mounted) {
1538 SLOGW("Attempt to unmount volume which isn't mounted (%d)\n",
1553 rc = vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_EXT);
1554 if (vm->unmountAllAsecsInDir(Volume::SEC_ASECDIR_INT)) {
1606 * Looks up a volume by it's label or mount-point
1608 Volume *VolumeManager::lookupVolume(const char *label) {
1649 int VolumeManager::cleanupAsec(Volume *v, bool force) {
1667 if (!strncmp(asecFileName, Volume::SEC_ASECDIR_EXT,
1668 strlen(Volume::SEC_ASECDIR_EXT))) {
1703 // Require that path lives under a volume we manage
1709 Volume* vol = getVolumeForFile(path);
1716 SLOGE("Failed to find volume for %s", path);