Lines Matching refs:idHash

140 static int setupLoopDevice(char* buffer, size_t len, const char* asecFileName, const char* idHash, …  in setupLoopDevice()  argument
141 if (Loop::lookupActive(idHash, buffer, len)) { in setupLoopDevice()
142 if (Loop::create(idHash, asecFileName, buffer, len)) { in setupLoopDevice()
157 …char* loopDevice, const char* asecFileName, const char* key, const char* idHash , int numImgSector… in setupDevMapperDevice() argument
159 if (Devmapper::lookupActive(idHash, buffer, len)) { in setupDevMapperDevice()
160 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, in setupDevMapperDevice()
690 char idHash[33]; in getObbMountPath() local
691 if (!asecHash(sourceFile, idHash, sizeof(idHash))) { in getObbMountPath()
697 int written = snprintf(mountPath, mountPathLen, "%s/%s", VolumeManager::LOOPDIR, idHash); in getObbMountPath()
839 char idHash[33]; in createAsec() local
840 if (!asecHash(id, idHash, sizeof(idHash))) { in createAsec()
847 if (Loop::create(idHash, asecFileName, loopDevice, sizeof(loopDevice))) { in createAsec()
859 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, dmDevice, in createAsec()
877 Devmapper::destroy(idHash); in createAsec()
892 Devmapper::destroy(idHash); in createAsec()
908 Devmapper::destroy(idHash); in createAsec()
919 Devmapper::destroy(idHash); in createAsec()
939 Devmapper::destroy(idHash); in createAsec()
1070 char idHash[33]; in resizeAsec() local
1071 if (!asecHash(id, idHash, sizeof(idHash))) { in resizeAsec()
1077 if (setupLoopDevice(loopDevice, sizeof(loopDevice), asecFileName, idHash, mDebug)) in resizeAsec()
1082 …if (setupDevMapperDevice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash, numImg… in resizeAsec()
1095 Devmapper::destroy(idHash); in resizeAsec()
1123 char idHash[33]; in finalizeAsec() local
1124 if (!asecHash(id, idHash, sizeof(idHash))) { in finalizeAsec()
1129 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in finalizeAsec()
1188 char idHash[33]; in fixupAsecPermissions() local
1189 if (!asecHash(id, idHash, sizeof(idHash))) { in fixupAsecPermissions()
1194 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in fixupAsecPermissions()
1387 char idHash[33]; in unmountAsec() local
1388 if (!asecHash(id, idHash, sizeof(idHash))) { in unmountAsec()
1393 return unmountLoopImage(id, idHash, asecFileName, mountPoint, force); in unmountAsec()
1399 char idHash[33]; in unmountObb() local
1400 if (!asecHash(fileName, idHash, sizeof(idHash))) { in unmountObb()
1405 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in unmountObb()
1411 return unmountLoopImage(fileName, idHash, fileName, mountPoint, force); in unmountObb()
1414 int VolumeManager::unmountLoopImage(const char *id, const char *idHash, in unmountLoopImage() argument
1471 if (Devmapper::destroy(idHash) && errno != ENXIO) { in unmountLoopImage()
1481 if (!Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in unmountLoopImage()
1661 char idHash[33]; in mountAsec() local
1662 if (!asecHash(id, idHash, sizeof(idHash))) { in mountAsec()
1668 if (setupLoopDevice(loopDevice, sizeof(loopDevice), asecFileName, idHash, mDebug)) in mountAsec()
1692 …if (setupDevMapperDevice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash , nr_se… in mountAsec()
1701 Devmapper::destroy(idHash); in mountAsec()
1725 Devmapper::destroy(idHash); in mountAsec()
1744 char idHash[33]; in mountObb() local
1745 if (!asecHash(img, idHash, sizeof(idHash))) { in mountObb()
1750 int written = snprintf(mountPoint, sizeof(mountPoint), "%s/%s", VolumeManager::LOOPDIR, idHash); in mountObb()
1763 if (setupLoopDevice(loopDevice, sizeof(loopDevice), img, idHash, mDebug)) in mountObb()
1787 …if (setupDevMapperDevice(dmDevice, sizeof(loopDevice), loopDevice, img,key, idHash, nr_sec, &clean… in mountObb()
1796 Devmapper::destroy(idHash); in mountObb()
1812 Devmapper::destroy(idHash); in mountObb()