Home | History | Annotate | Download | only in init

Lines Matching full:loop

32 #include <linux/loop.h>
319 } else if (!strncmp(source, "loop@", 5)) {
320 int mode, loop, fd;
330 sprintf(tmp, "/dev/block/loop%d", n);
331 loop = open(tmp, mode);
332 if (loop < 0) {
336 /* if it is a blank loop device */
337 if (ioctl(loop, LOOP_GET_STATUS, &info) < 0 && errno == ENXIO) {
338 /* if it becomes our loop device */
339 if (ioctl(loop, LOOP_SET_FD, fd) >= 0) {
343 ioctl(loop, LOOP_CLR_FD, 0);
344 close(loop);
348 close(loop);
353 close(loop);