On 2021/6/30 19:37, Sun Ke wrote:
It fail on f2fs: [+] Default length with start set (should succeed) [+] Length beyond the end of fs (should succeed) [+] Length beyond the end of fs with start set (should succeed) +After the full fs discard 0 bytes were discarded however the file system is 12882804736 bytes long. +It seems that fs logic handling len argument overflows The root cause is f2fs can tag a special flag TRIMMED_FLAG to indicate the whole filesystem is trimmed, so after mkfs/fstrim(), following fstrim() won't trim any block. Suggested-by: Chao Yu <yuchao0@xxxxxxxxxx> Signed-off-by: Sun Ke <sunke32@xxxxxxxxxx> ---
Reviewed-by: Chao Yu <chao@xxxxxxxxxx>