• Kenny Root's avatar
    Use LOOP_GET_STATUS64 for checking loop devices · 7c16502d
    Kenny Root authored
    To determine whether a loop device was available, we use an ioctl call
    to LOOP_GET_STATUS, but this fails on devices with large storage
    partitions with errno = EOVERFLOW. Instead use LOOP_GET_STATUS64 which
    succeeds.
    
    Bug: 3412121
    Change-Id: Ica3cb48885d3555f2d27073c00e31fc51a08c730
    7c16502d
Loop.cpp 6.12 KB