ceph/ceph — pull request #2626 by dachary (2014-10-02 07:38:31+00:00)
Title: tools: rados put /dev/null should write() and not create()

Remove the rados.cc special case that create() instead of write_full()
when the file to be put is empty.

A special case was introduced 6843a0b81f10125842c90bc63eccc4fd873b58f2
to create() an object if the rados put file is empty. Prior to this fix
an attempt to rados put an empty file was a noop. The problem with this
fix is that it is not idempotent. rados put an empty file twice would
fail the second time and rados put a file with one byte would succeed as
expected.

Signed-off-by: Loic Dachary