Whamcloud - gitweb
LU-11069 llite: correct file position after appending writes 61/32661/7
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 6 Jun 2018 13:14:50 +0000 (08:14 -0500)
committerJohn L. Hammond <jhammond@whamcloud.com>
Fri, 3 Aug 2018 20:42:58 +0000 (20:42 +0000)
commit7bc18a0083b27292dd912dba0ae1aa5010568fb4
tree68ca67d8714c5e38e44ff94bf0e08059e5ba4c8a
parenta8280402537b83748e9011edff3a7ce188c1f656
LU-11069 llite: correct file position after appending writes

In ll_file_io_generic() use the position returned in the kiocb to set
the returned file position. This ensures that the file position is set
correctly after an appending write. Add sanity test_23d() to check
that calling lseek() for the current offset returns the correct value
in this situation.

Lustre-change: https://review.whamcloud.com/32641

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic76ce49db6e87d5294e18546d5b75a12793aa99c
Reviewed-on: https://review.whamcloud.com/32661
Reviewed-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
lustre/llite/file.c
lustre/tests/multiop.c
lustre/tests/sanity.sh