Fix loop_info/loop_info64 impedance mismatch

LOOP_GET_STATUS64 isn't useful here since the data contained within
isn't actually checked, so stick with the regular LOOP_GET_STATUS here
to match the struct loop_info we're using.

Change-Id: I4f9ff06fa44d4ae3aed046d423054554f9cf450b
gugelfrei
Kenny Root 14 years ago
parent 508c0e1605
commit e17e91f63b

@ -149,7 +149,7 @@ int Loop::create(const char *id, const char *loopFile, char *loopDeviceBuffer, s
return -1;
}
rc = ioctl(fd, LOOP_GET_STATUS64, &li);
rc = ioctl(fd, LOOP_GET_STATUS, &li);
if (rc < 0 && errno == ENXIO)
break;

Loading…
Cancel
Save