Lines Matching refs:filename
44 char filename[256]; in dumpState() local
50 sprintf(filename, "/dev/block/loop%d", i); in dumpState()
52 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in dumpState()
54 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in dumpState()
68 SLOGE("Unable to get loop status for %s (%s)", filename, in dumpState()
73 asprintf(&tmp, "%s %d %lld:%lld %llu %lld:%lld %lld 0x%x {%s} {%s}", filename, li.lo_number, in dumpState()
86 char filename[256]; in lookupActive() local
94 sprintf(filename, "/dev/block/loop%d", i); in lookupActive()
96 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in lookupActive()
98 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in lookupActive()
112 SLOGE("Unable to get loop status for %s (%s)", filename, in lookupActive()
125 strlcpy(buffer, filename, len); in lookupActive()
132 char filename[256]; in create() local
139 sprintf(filename, "/dev/block/loop%d", i); in create()
149 rc = selabel_lookup(sehandle, &secontext, filename, S_IFBLK); in create()
154 if (mknod(filename, mode, dev) < 0) { in create()
171 if ((fd = open(filename, O_RDWR | O_CLOEXEC)) < 0) { in create()
172 SLOGE("Unable to open %s (%s)", filename, strerror(errno)); in create()
183 SLOGE("Unable to get loop status for %s (%s)", filename, in create()
195 strlcpy(loopDeviceBuffer, filename, len); in create()