diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-11-13 00:37:24 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2019-11-18 12:47:05 +0300 |
commit | 913eca1aea87c3c6526fa5b166e524dff989deef (patch) | |
tree | 3d37f62506bacbf144f3ad3dc4d2e3db561ddbba /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 89658c4d04c7661c2c0770c6f92f465d58eed62d (diff) | |
download | linux-913eca1aea87c3c6526fa5b166e524dff989deef.tar.xz |
NFS: Fallocate should use the nfs4_fattr_bitmap
Changing a sparse file could have an effect not only on the file size,
but also on the number of blocks used by the file in the underlying
filesystem. The server's cache_consistency_bitmap doesn't update the
SPACE_USED attribute, so let's switch to the nfs4_fattr_bitmap to catch
this update whenever we do an ALLOCATE or DEALLOCATE.
This patch fixes xfstests generic/568, which tests that fallocating an
unaligned range allocates all blocks touched by that range. Without this
patch, `stat` reports 0 bytes used immediately after the fallocate.
Adding a `sleep 5` to the test also catches the update, but it's better
to do so when we know something has changed.
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions