Lines Matching refs:loopname
669 char loopname[64], linkname[64]; in syz_read_part_table() local
702 snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); in syz_read_part_table()
703 loopfd = open(loopname, O_RDWR); in syz_read_part_table()
736 snprintf(loopname, sizeof(loopname), "/dev/loop%llup%d", procid, (int)i); in syz_read_part_table()
738 if (stat(loopname, &statbuf) == 0) { in syz_read_part_table()
740 if (symlink(loopname, linkname)) { in syz_read_part_table()
741 debug("syz_read_part_table: symlink(%s, %s) failed: %d\n", loopname, linkname, errno); in syz_read_part_table()
769 char loopname[64], fs[32], opts[256]; in syz_mount_image() local
805 snprintf(loopname, sizeof(loopname), "/dev/loop%llu", procid); in syz_mount_image()
806 loopfd = open(loopname, O_RDWR); in syz_mount_image()
841 … dir='%s' fs='%s' flags=%llu opts='%s'\n", (uint64)size, (uint64)nsegs, loopname, (char*)dir, fs, … in syz_mount_image()
845 if (mount(loopname, (char*)dir, fs, flags, opts)) { in syz_mount_image()