Whamcloud - gitweb
LU-11069 llite: correct file position after appending writes 41/32641/3
authorJohn L. Hammond <john.hammond@intel.com>
Wed, 6 Jun 2018 13:14:50 +0000 (08:14 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Jun 2018 03:53:43 +0000 (03:53 +0000)
commitf8df907e8aaeaee559f913a68a345011a7aa1f23
tree701adb8bd54bbfde092277eedde1323e1865e476
parent1ece380412efd5dba2a8c345830f0456a4922301
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.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic76ce49db6e87d5294e18546d5b75a12793aa99c
Reviewed-on: https://review.whamcloud.com/32641
Tested-by: Jenkins
Reviewed-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/tests/multiop.c
lustre/tests/sanity.sh