diff options
author | 2019-04-12 07:39:21 -0700 | |
---|---|---|
committer | 2019-04-14 18:15:57 -0700 | |
commit | 2bf9d264efededefa8a339e31995a90df13e5fbe (patch) | |
tree | cf51b5d405438ed013b5feb64821e58ffa685697 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | xfs: don't account extra agfl blocks as available (diff) | |
download | linux-dev-2bf9d264efededefa8a339e31995a90df13e5fbe.tar.xz linux-dev-2bf9d264efededefa8a339e31995a90df13e5fbe.zip |
xfs,fstrim: fix to return correct minlen
This patch tries to address two problems:
1) return @minlen we used to trim to
user space.
2) return EINVAL if granularity is larger than
avg size, even most of cases, granularity is small(4K),
but if devices return a lager granularity for some reaons
(testing, bugs etc), fstrim should return failure directly.
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions