Lines Matching refs:idHash
187 char idHash[33]; in getObbMountPath() local
188 if (!asecHash(sourceFile, idHash, sizeof(idHash))) { in getObbMountPath()
194 snprintf(mountPath, mountPathLen, "%s/%s", Volume::LOOPDIR, idHash); in getObbMountPath()
309 char idHash[33]; in createAsec() local
310 if (!asecHash(id, idHash, sizeof(idHash))) { in createAsec()
317 if (Loop::create(idHash, asecFileName, loopDevice, sizeof(loopDevice))) { in createAsec()
329 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, dmDevice, in createAsec()
350 Devmapper::destroy(idHash); in createAsec()
361 Devmapper::destroy(idHash); in createAsec()
372 Devmapper::destroy(idHash); in createAsec()
391 Devmapper::destroy(idHash); in createAsec()
405 Devmapper::destroy(idHash); in createAsec()
424 Devmapper::destroy(idHash); in createAsec()
459 char idHash[33]; in finalizeAsec() local
460 if (!asecHash(id, idHash, sizeof(idHash))) { in finalizeAsec()
465 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in finalizeAsec()
512 char idHash[33]; in fixupAsecPermissions() local
513 if (!asecHash(id, idHash, sizeof(idHash))) { in fixupAsecPermissions()
518 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in fixupAsecPermissions()
669 char idHash[33]; in unmountAsec() local
670 if (!asecHash(id, idHash, sizeof(idHash))) { in unmountAsec()
675 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force); in unmountAsec()
681 char idHash[33]; in unmountObb() local
682 if (!asecHash(fileName, idHash, sizeof(idHash))) { in unmountObb()
687 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash); in unmountObb()
689 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force); in unmountObb()
692 int VolumeManager::unmountLoopImage(const char *id, const char *idHash, in unmountLoopImage() argument
748 if (Devmapper::destroy(idHash) && errno != ENXIO) { in unmountLoopImage()
753 if (!Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in unmountLoopImage()
878 char idHash[33]; in mountAsec() local
879 if (!asecHash(id, idHash, sizeof(idHash))) { in mountAsec()
885 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in mountAsec()
886 if (Loop::create(idHash, asecFileName, loopDevice, sizeof(loopDevice))) { in mountAsec()
921 if (Devmapper::lookupActive(idHash, dmDevice, sizeof(dmDevice))) { in mountAsec()
922 if (Devmapper::create(idHash, loopDevice, key, nr_sec, in mountAsec()
945 Devmapper::destroy(idHash); in mountAsec()
975 Devmapper::destroy(idHash); in mountAsec()
1007 char idHash[33]; in mountObb() local
1008 if (!asecHash(img, idHash, sizeof(idHash))) { in mountObb()
1013 snprintf(mountPoint, sizeof(mountPoint), "%s/%s", Volume::LOOPDIR, idHash); in mountObb()
1022 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in mountObb()
1023 if (Loop::create(idHash, img, loopDevice, sizeof(loopDevice))) { in mountObb()
1057 if (Devmapper::lookupActive(idHash, dmDevice, sizeof(dmDevice))) { in mountObb()
1058 if (Devmapper::create(idHash, loopDevice, key, nr_sec, in mountObb()
1081 Devmapper::destroy(idHash); in mountObb()
1092 Devmapper::destroy(idHash); in mountObb()