Lines Matching refs:filename
51 char filename[256]; in dumpState() local
57 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i); in dumpState()
59 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in dumpState()
61 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in dumpState()
75 SLOGE("Unable to get loop status for %s (%s)", filename, in dumpState()
80 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number, in dumpState()
93 char filename[256]; in lookupActive() local
101 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i); in lookupActive()
103 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in lookupActive()
105 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in lookupActive()
120 SLOGE("Unable to get loop status for %s (%s)", filename, in lookupActive()
133 strlcpy(buffer, filename, len); in lookupActive()
140 char filename[256]; in create() local
147 snprintf(filename, sizeof(filename), "/dev/block/loop%d", i); in create()
157 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); in create()
162 if (mknod(filename, mode, dev) < 0) { in create()
179 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in create()
180 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in create()
191 SLOGE("Unable to get loop status for %s (%s)", filename, in create()
203 strlcpy(loopDeviceBuffer, filename, len); in create()