Lines Matching refs:nr
1687 int r, nr;
1726 nr = ioctl(control, LOOP_CTL_GET_FREE);
1727 if (nr < 0)
1730 if (asprintf(&loopdev, "/dev/loop%i", nr) < 0)
1749 *loop_nr = nr;
1941 int nr;
1969 nr = blkid_partition_get_partno(pp);
1970 if (nr < 0)
1989 if (home && nr >= home_nr)
1992 home_nr = nr;
2001 if (srv && nr >= srv_nr)
2004 srv_nr = nr;
2014 if (root && nr >= root_nr)
2017 root_nr = nr;
2028 if (secondary_root && nr >= secondary_root_nr)
2031 secondary_root_nr = nr;
2226 static void loop_remove(int nr, int *image_fd) {
2230 if (nr < 0)
2246 r = ioctl(control, LOOP_CTL_REMOVE, nr);
2248 log_debug_errno(errno, "Failed to remove loop %d: %m", nr);