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)
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>

No differences found