Whamcloud - gitweb
LU-9413 llite: llite.stat_blocksize param for fixed st_blksize 69/26869/11
authorAndrew Perepechko <andrew.perepechko@seagate.com>
Thu, 27 Apr 2017 16:01:23 +0000 (19:01 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 24 May 2017 07:33:50 +0000 (07:33 +0000)
commitf07576d3f82b50d74a858ccd60f7bdd0977a85a4
treebdd57b959f4b25a312640fe96090f3d6469c95b8
parent5fb7d63e7d5ccd05f39b74b5c79d1856798477c7
LU-9413 llite: llite.stat_blocksize param for fixed st_blksize

llite.stat_blocksize is added to allow configurable st_blksize
for stat(2). The latter is treated incorrectly by some
applications. For example, glibc pre-2.25 uses this value for
stdio buffering which completely ruins performance with random
reads.

The patch changes the behaviour of getattr rather than inode
initialization so that change of the setting causes immediate
effect without the need of reclaiming existing inodes.

The patch is similar to the patch from bz # 12739 by Aurelien
Degremont.

Change-Id: Ic6ab3fea40940892b740b8e87347dbb361619e8b
Signed-off-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Reviewed-on: https://review.whamcloud.com/26869
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/lproc_llite.c