Lines Matching refs:Loop
36 #include "Loop.h"
41 int Loop::dumpState(SocketClient *c) {
50 sprintf(filename, "/dev/block/loop%d", i);
68 SLOGE("Unable to get loop status for %s (%s)", filename,
83 int Loop::lookupActive(const char *id, char *buffer, size_t len) {
94 sprintf(filename, "/dev/block/loop%d", i);
113 SLOGE("Unable to get loop status for %s (%s)", filename,
130 int Loop::create(const char *id, const char *loopFile, char *loopDeviceBuffer, size_t len) {
140 sprintf(filename, "/dev/block/loop%d", i);
143 * The kernel starts us off with 8 loop nodes, but more
158 SLOGE("Error creating loop device node (%s)", strerror(errno));
184 SLOGE("Unable to get loop status for %s (%s)", filename,
191 SLOGE("Exhausted all loop devices");
232 int Loop::destroyByDevice(const char *loopDevice) {
237 SLOGE("Failed to open loop (%d)", errno);
242 SLOGE("Failed to destroy loop (%d)", errno);
251 int Loop::destroyByFile(const char * /*loopFile*/) {
256 int Loop::createImageFile(const char *file, unsigned long numSectors) {
273 int Loop::resizeImageFile(const char *file, unsigned long numSectors) {
301 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned long *nr_sec) {
313 SLOGE("Failed to get loop size (%s)", strerror(errno));