Lines 129-135
Link Here
|
129 |
struct stat statbuf; |
129 |
struct stat statbuf; |
130 |
struct loop_info loopinfo; |
130 |
struct loop_info loopinfo; |
131 |
|
131 |
|
132 |
for (i = 0; i <= 7; i++) { |
132 |
for (i = 0; i <= 255; i++) { |
133 |
sprintf(dev, LOOP_FORMAT, i); |
133 |
sprintf(dev, LOOP_FORMAT, i); |
134 |
if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) { |
134 |
if (stat(dev, &statbuf) == 0 && S_ISBLK(statbuf.st_mode)) { |
135 |
if ((fd = open(dev, O_RDONLY)) >= 0) { |
135 |
if ((fd = open(dev, O_RDONLY)) >= 0) { |