[Ocfs2-devel] [patch 09/11] ocfs2: llseek requires ocfs2 inode lock for the file in SEEK_END

Mark Fasheh mfasheh at suse.de
Thu Feb 6 15:42:53 PST 2014


On Fri, Jan 24, 2014 at 12:47:09PM -0800, akpm at linux-foundation.org wrote:
> From: Jensen <shencanquan at huawei.com>
> Subject: ocfs2: llseek requires ocfs2 inode lock for the file in SEEK_END
> 
> llseek requires ocfs2 inode lock for updating the file size in SEEK_END. 
> because the file size maybe update on another node.
> 
> This bug can be reproduce the following scenario: at first, we dd a test
> fileA, the file size is 10k.

Basically, you want to amke SEEK_END cluster-aware. This patch would be the
right way to do it.

Reviewed-by: Mark Fasheh <mfasheh at suse.de>
	--Mark

--
Mark Fasheh



More information about the Ocfs2-devel mailing list