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
This commit is contained in:
Kenny Root 2010-07-16 15:04:55 -07:00
parent 508c0e1605
commit e17e91f63b

View file

@ -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;