commit | 6dc508671bfd50ac92f71f4fc28c62eb308ad070 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Mon Jul 30 16:06:01 2018 -0700 |
committer | David Anderson <dvander@google.com> | Mon Jul 30 16:08:29 2018 -0700 |
tree | 3330b66ccb0b08114c19e33c4b1e1a92c97c98bc | |
parent | d5f825c78bc98027a485d8bdecd14e8563a449ba [diff] |
adb: Correctly detect deduplicated ext4 partitions. The fs_has_shared_blocks function had two problems. One, it called statfs() on the mount point, which will return information about the file system the mount point is on, rather than the filesystem mounted at that location. Second, the check for EXT4_SUPER_MAGIC was inverted. Bug: N/A Test: adb remount -R works on an ext4 deduplicated device Change-Id: I2e5ef895ea274cb7cc3c35295120da90a026d0d2