Lines Matching refs:try
107 char *try; in set_loop() local
124 try = *device; in set_loop()
125 if (!try) { in set_loop()
133 try = xasprintf(LOOP_FORMAT, i); in set_loop()
137 try = dev; in set_loop()
146 if (stat(try, &statbuf) != 0 || !S_ISBLK(statbuf.st_mode)) { in set_loop()
149 && try == dev in set_loop()
161 lfd = rc = open(try, mode); in set_loop()
164 lfd = rc = open(try, mode); in set_loop()
183 && try != dev /* tried a _kernel-offered_ loopN? */ in set_loop()
185 free(try); in set_loop()
212 if (try != dev) /* tried a kernel-offered free loopN? */ in set_loop()
213 *device = try; /* malloced */ in set_loop()