]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
tool/cephfs: make EventOutput::binary() idempotent 8738/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 25 Apr 2016 02:23:00 +0000 (10:23 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 25 Apr 2016 02:23:00 +0000 (10:23 +0800)
commitbb64222b80b18c54bcee063c541d4004989c22f8
treed7ac94e411e57ec0ee393adb099be2741e0a8197
parent749fcadfd343fb4902e726ef14df73eb4406f795
tool/cephfs: make EventOutput::binary() idempotent

We may passed a path in which has already been created. So we shall
tolerate the EEXIST error, which shall also make this funciton
idempotent.

Besides, we shall reset return code to errno on mkdir() system call
error for better tracing.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/tools/cephfs/EventOutput.cc