Whamcloud - gitweb
LU-604 open non-exist object should return ENOENT
authorhongchao.zhang <hongchao.zhang@whamcloud.com>
Fri, 19 Aug 2011 09:00:18 +0000 (17:00 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Mon, 12 Dec 2011 23:13:49 +0000 (18:13 -0500)
commit2fef7fd122f3f97bbf12339da70c4025bceb336e
treefb1a9e486e6743cf11493ebfa0252c7dfa678045
parentd07942a89ba92fa20cf0364900a1d52d94784edc
LU-604 open non-exist object should return ENOENT

when call ll_intent_file_open() against non-exist object, we cannot obtain
RPC request refcount after the call, so subsequent operation should not use
such internal RPC request to avoid to access freed memory.

Change-Id: Ic8cd2a7798d2d454cbe5931eb93b92b1a44cca4b
Signed-off-by: Hongchao Zhang<hongchao.zhang@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1271
Tested-by: Hudson
Reviewed-by: Fan Yong <yong.fan@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/file.c