Lines Matching refs:loopDevice
157 static int setupDevMapperDevice(char* buffer, size_t len, const char* loopDevice, const char* asecF… in setupDevMapperDevice() argument
160 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, in setupDevMapperDevice()
175 strcpy(buffer, loopDevice); in setupDevMapperDevice()
846 char loopDevice[255]; in createAsec() local
847 if (Loop::create(idHash, asecFileName, loopDevice, sizeof(loopDevice))) { in createAsec()
859 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, dmDevice, in createAsec()
862 Loop::destroyByDevice(loopDevice); in createAsec()
869 strcpy(dmDevice, loopDevice); in createAsec()
875 if (writeSuperBlock(loopDevice, &sb, numImgSectors)) { in createAsec()
879 Loop::destroyByDevice(loopDevice); in createAsec()
894 Loop::destroyByDevice(loopDevice); in createAsec()
910 Loop::destroyByDevice(loopDevice); in createAsec()
921 Loop::destroyByDevice(loopDevice); in createAsec()
941 Loop::destroyByDevice(loopDevice); in createAsec()
1076 char loopDevice[255]; in resizeAsec() local
1077 if (setupLoopDevice(loopDevice, sizeof(loopDevice), asecFileName, idHash, mDebug)) in resizeAsec()
1082 …if (setupDevMapperDevice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash, numImg… in resizeAsec()
1083 Loop::destroyByDevice(loopDevice); in resizeAsec()
1097 Loop::destroyByDevice(loopDevice); in resizeAsec()
1109 char loopDevice[255]; in finalizeAsec() local
1129 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in finalizeAsec()
1137 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in finalizeAsec()
1149 result = android::vold::ext4::Mount(loopDevice, mountPoint, in finalizeAsec()
1152 result = android::vold::vfat::Mount(loopDevice, mountPoint, in finalizeAsec()
1169 char loopDevice[255]; in fixupAsecPermissions() local
1194 if (Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in fixupAsecPermissions()
1202 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in fixupAsecPermissions()
1217 int ret = android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1279 result |= android::vold::ext4::Mount(loopDevice, mountPoint, in fixupAsecPermissions()
1480 char loopDevice[255]; in unmountLoopImage() local
1481 if (!Loop::lookupActive(idHash, loopDevice, sizeof(loopDevice))) { in unmountLoopImage()
1482 Loop::destroyByDevice(loopDevice); in unmountLoopImage()
1667 char loopDevice[255]; in mountAsec() local
1668 if (setupLoopDevice(loopDevice, sizeof(loopDevice), asecFileName, idHash, mDebug)) in mountAsec()
1677 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) { in mountAsec()
1686 Loop::destroyByDevice(loopDevice); in mountAsec()
1692 …if (setupDevMapperDevice(dmDevice, sizeof(dmDevice), loopDevice, asecFileName, key, idHash , nr_se… in mountAsec()
1693 Loop::destroyByDevice(loopDevice); in mountAsec()
1703 Loop::destroyByDevice(loopDevice); in mountAsec()
1727 Loop::destroyByDevice(loopDevice); in mountAsec()
1762 char loopDevice[255]; in mountObb() local
1763 if (setupLoopDevice(loopDevice, sizeof(loopDevice), img, idHash, mDebug)) in mountObb()
1771 if ((fd = open(loopDevice, O_RDWR | O_CLOEXEC)) < 0) { in mountObb()
1773 Loop::destroyByDevice(loopDevice); in mountObb()
1780 Loop::destroyByDevice(loopDevice); in mountObb()
1787 …if (setupDevMapperDevice(dmDevice, sizeof(loopDevice), loopDevice, img,key, idHash, nr_sec, &clean… in mountObb()
1788 Loop::destroyByDevice(loopDevice); in mountObb()
1798 Loop::destroyByDevice(loopDevice); in mountObb()
1814 Loop::destroyByDevice(loopDevice); in mountObb()