Lines Matching refs:idHash

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