commit | de2ec0b4277e18daa00ecbd94125064b8b0b781f | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Mon Nov 01 12:58:07 2021 -0700 |
committer | David Anderson <dvander@google.com> | Mon Nov 01 13:44:56 2021 -0700 |
tree | 1abf419a185963867c40f49d0dfea88e892d30eb | |
parent | 6a58c592699aa94f6b06c1a5baf412bcfefda8a4 [diff] |
libfiemap: Only call FS_IOC_FIEMAP once. The kernel can return different compatible ranges on each call, depending on how it decides to merge contiguous extents in the results. To avoid the complexity of requerying the ioctl, just do one query up to the maximum allowed extent size. Bug: 204536075 Test: install DSU on cuttlefish fiemap_test Change-Id: I4d569e3e6feed14c91a5f500296623888060dcad