Whamcloud - gitweb
LU-417 llite: report non-zero blocks on writing client
authorBobi Jam <bobijam@whamcloud.com>
Fri, 4 Nov 2011 07:22:41 +0000 (15:22 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 31 Dec 2011 08:50:41 +0000 (03:50 -0500)
commit1509e524e3c47d3bb239ff2a8764cff55eb29d4c
tree572cac88f310cb369be8f599188338b17f2a2d6a
parentfc4b46df111bbf9d2207265d18b3f0d72f49502c
LU-417 llite: report non-zero blocks on writing client

Writing client may not report accurate allocated block numbers when
dirty pages has not been writting back to OSTs, some "cp" or "tar" may
skip the file because it thinks it is completely sparse.

This patch makes writing client consider dirty pages when reporting
allocated blocks, lest the file be treated as a completely sparse one.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I985d50a44ea1e917bf8e1cba3b5cb770eec35c3f
Reviewed-on: http://review.whamcloud.com/1647
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lclient.h
lustre/lclient/glimpse.c
lustre/lclient/lcommon_cl.c
lustre/obdfilter/filter_lvb.c