Searched refs:loopDevice (Results 1 – 3 of 3) sorted by relevance
/system/vold/ |
D | VolumeManager.cpp | 159 static int setupDevMapperDevice(char* buffer, size_t len, const char* loopDevice, const char* asecF… in setupDevMapperDevice() argument 162 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, in setupDevMapperDevice() 177 strcpy(buffer, loopDevice); in setupDevMapperDevice() 840 char loopDevice[255]; in createAsec() local 841 if (Loop::create(idHash, asecFileName, loopDevice, sizeof(loopDevice))) { in createAsec() 853 if (Devmapper::create(idHash, loopDevice, key, numImgSectors, dmDevice, in createAsec() 856 Loop::destroyByDevice(loopDevice); in createAsec() 863 strcpy(dmDevice, loopDevice); in createAsec() 869 if (writeSuperBlock(loopDevice, &sb, numImgSectors)) { in createAsec() 873 Loop::destroyByDevice(loopDevice); in createAsec() [all …]
|
D | Loop.cpp | 232 int Loop::destroyByDevice(const char *loopDevice) { in destroyByDevice() argument 235 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 301 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec) { in lookupInfo() argument 305 if ((fd = open(loopDevice, O_RDONLY | O_CLOEXEC)) < 0) { in lookupInfo() 307 destroyByDevice(loopDevice); in lookupInfo() 314 destroyByDevice(loopDevice); in lookupInfo() 326 destroyByDevice(loopDevice); in lookupInfo() 332 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);
|