[Bug 14316] New: get_free_loop needs waiting

bugzilla at busybox.net bugzilla at busybox.net
Wed Nov 3 04:12:17 UTC 2021


https://bugs.busybox.net/show_bug.cgi?id=14316

            Bug ID: 14316
           Summary: get_free_loop needs waiting
           Product: Busybox
           Version: 1.33.x
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: Other
          Assignee: unassigned at busybox.net
          Reporter: aswjh at 163.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

libbb/loop.c: set_loop

Sometimes loop device is not ready arter get_free_loop, 
raise "can't setup loop device: No such file or directory".


It will be ok if usleep before "goto open_lfd":

try = xasprintf(LOOP_FORMAT, i); 
for (lc=0; lc<100; lc++) {
  if (stat(try, &buf2)==0) break; 
  usleep(20);
}

goto open_lfd;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list