]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client/MetaRequest: open w/ O_CREAT|O_TRUNC is write.
authorJianpeng Ma <jianpeng.ma@intel.com>
Thu, 17 Sep 2015 02:05:46 +0000 (10:05 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Thu, 17 Sep 2015 02:05:46 +0000 (10:05 +0800)
commitf51afa63b1c97b99b2d39704a4a06642a277cf43
tree038078cf13648ffa2b2d15d1e447c37cc7ebcefc
parent8f46bd9c78d629bd806439dd052222a9cd1291d0
client/MetaRequest: open w/ O_CREAT|O_TRUNC is write.

From the function name is_write, it judge MetaRequest whether write.
For open, if it w/ O_CREAT|O_TRUNC, it's a write op and vice versa.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/client/MetaRequest.h