]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph osd: add support for new op writesame
authorMike Christie <mchristi@redhat.com>
Wed, 6 Apr 2016 17:13:14 +0000 (12:13 -0500)
committerDavid Disseldorp <ddiss@suse.de>
Mon, 25 Apr 2016 13:07:57 +0000 (15:07 +0200)
commite334ba9bfef938c433598873cdf50f7380009a4b
tree1fb3e35cc59ad306da39f519d88b32a218d92260
parentff18083d2364a7dc66d54f1cf46be70d47a8e252
ceph osd: add support for new op writesame

This adds a new ceph request writesame that writes a buffer of length
writesame.data_length bytes at writesame.offset over
writesame.length bytes.

This command maps to SCSI's WRITE SAME request, so users like LIO+rbd
can pass this to the OSD. Right now, it only saves having to transfer
writesame.length bytes over the network, but future versions will be
to fully offload it by passing it directly to the FS/devices if they
support it.

v2:
- Fix tab/spaces to matching coding style.
- Allow zero write length. Check for invalid data lengths.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
src/include/rados.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h
src/tracing/osd.tp