]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_librbd_fsx: invalidate before discard in krbd mode 5419/head
authorIlya Dryomov <idryomov@gmail.com>
Wed, 29 Jul 2015 17:50:20 +0000 (20:50 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 29 Jul 2015 18:01:08 +0000 (21:01 +0300)
commitf217865cf7c48dcbc3f75543cb6948a889ac0a11
tree9a59b0767e08303c6b30ae0002310af8d297f730
parent338ead0f498238fd1b5b7f18d86ad407de6f347b
test_librbd_fsx: invalidate before discard in krbd mode

Commit bd050240ceef ("test_librbd_fsx: flush before discard in krbd
mode") added an fsync() before BLKDISCARD.  Don't know what I was
thinking at the time, but I missed the invalidate part, for which we
need to use the BLKFLSBUF ioctl.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
src/test/librbd/fsx.cc