Searched refs:loopDevice (Results 1 – 3 of 3) sorted by relevance
/system/vold/ |
D | VolumeManager.cpp | 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() [all …]
|
D | Loop.cpp | 231 int Loop::destroyByDevice(const char *loopDevice) { in destroyByDevice() argument 234 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 300 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec) { in lookupInfo() argument 304 if ((fd = open(loopDevice, O_RDONLY | O_CLOEXEC)) < 0) { in lookupInfo() 306 destroyByDevice(loopDevice); in lookupInfo() 313 destroyByDevice(loopDevice); in lookupInfo() 325 destroyByDevice(loopDevice); in lookupInfo() 331 destroyByDevice(loopDevice); in lookupInfo()
|
D | Loop.h | 30 … static int lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec); 32 static int destroyByDevice(const char *loopDevice);
|