OSDN Git Service

Silence useless LOOP_GET_STATUS64 warnings
authorEric Biggers <ebiggers@google.com>
Thu, 15 Oct 2020 21:52:54 +0000 (14:52 -0700)
committerEric Biggers <ebiggers@google.com>
Thu, 15 Oct 2020 22:26:27 +0000 (15:26 -0700)
commit10724d93a1ee63109c0354c60b0975e13c6c8a85
tree893a3c9a147de784629e0072730187d66a93a62a
parente9023dc7bb621e4edd5b02cdf58f98579ebcd8f7
Silence useless LOOP_GET_STATUS64 warnings

When vold starts up, there are lots of warnings like:

    W vold    : Failed to LOOP_GET_STATUS64 /dev/block/loop30: No such device or address
    W vold    : Failed to LOOP_GET_STATUS64 /dev/block/loop29: No such device or address
    W vold    : Failed to LOOP_GET_STATUS64 /dev/block/loop28: No such device or address

vold is iterating through all loop devices and unbinding the file from
any vold-managed ones.

It's expected that not all loop devices have a file bound to them,
however.  On these, LOOP_GET_STATUS64 fails with ENXIO.

Don't print a warning in such cases.

Change-Id: I91755259dc2c09b1869627259d1e59d5edd6f145
Loop.cpp