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:
parent
508c0e1605
commit
e17e91f63b
1 changed files with 1 additions and 1 deletions
2
Loop.cpp
2
Loop.cpp
|
@ -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…
Reference in a new issue