commit | 912521c9fa1a638e31c9a83fe29062b912e9fe5b | [log] [tgz] |
---|---|---|
author | Qu Wenruo <wqu@suse.com> | Thu Jul 30 20:17:35 2020 +0800 |
committer | Eryu Guan <guaneryu@gmail.com> | Sun Aug 09 23:33:30 2020 +0800 |
tree | 3cff1414f383413397c6512787db55c7495e6367 | |
parent | 2b3de458c433c4374ed8f8693896ff7be458eb17 [diff] |
btrfs: Add test to check if shrink works well with fstrim There is a bug in trim code which leads to fstrim accessing beyond device boundary. The test case will check if fstrim, then shrink, then fstrim, all of them works without problem. The fix is titled "btrfs: trim: fix underflow in trim length to prevent access beyond device boundary". Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>