]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph: clean up command output
authorSage Weil <sage.weil@dreamhost.com>
Thu, 8 Sep 2011 04:07:54 +0000 (21:07 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Thu, 8 Sep 2011 04:07:54 +0000 (21:07 -0700)
commit1a44500f79b156af76688b92ff670b6ac3fb9dbb
tree25e4b69f5ec99c1c16eab97889bbd0d8fe747cb1
parent1986d98d7a41f096631676a782f82f56a0925cb7
ceph: clean up command output

Open + truncate output file _once_, and concatenate output of each command
to that fd.

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/tools/ceph.cc
src/tools/common.cc
src/tools/common.h