aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLiu Bo <[email protected]>2017-07-11 14:43:16 -0600
committerDavid Sterba <[email protected]>2017-08-16 16:12:02 +0200
commit0d1e0bead62a1778c45f22439cf067e63068faea (patch)
treee2340e7e969bfb8a506ef193adaae243d9d65a08 /tools/perf/scripts/python
parent69f03f137a1cb1a5215bc9e64597bfdfcdf22fde (diff)
Btrfs: report errors when checksum is not found
When btrfs fails the checksum check, it'll fill the whole page with "1". However, if %csum_expected is 0 (which means there is no checksum), then for some unknown reason, we just pretend that the read is correct, so userspace would be confused about the dilemma that read is successful but getting a page with all content being "1". This can happen due to a bug in btrfs-convert. This fixes it by always returning errors if checksum doesn't match. Signed-off-by: Liu Bo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions