Skip to content

Commit e17e91f

Browse files
committed
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
1 parent 508c0e1 commit e17e91f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ int Loop::create(const char *id, const char *loopFile, char *loopDeviceBuffer, s
149149
return -1;
150150
}
151151

152-
rc = ioctl(fd, LOOP_GET_STATUS64, &li);
152+
rc = ioctl(fd, LOOP_GET_STATUS, &li);
153153
if (rc < 0 && errno == ENXIO)
154154
break;
155155

0 commit comments

Comments
 (0)