]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support 2543/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 24 Sep 2014 23:02:21 +0000 (16:02 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 7 Oct 2014 21:01:04 +0000 (14:01 -0700)
commit9b39033f2b2bcdd2be0f6da4dff06023d0f77499
tree50256dfc574e90833ecaedd5d7f13d432fc3d321
parent70ef4c11cbae669799c30c7592073ad7aa11dcd6
osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support

Add CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit
Collect the intersection of all peer feature bits during peering
When handling CEPH_OSD_OP_SETALLOCHINT check that all OSDs support it
by checking for CEPH_FEATURE_OSD_SET_ALLOC_HINT feature bit.

Fixes: #9419
Backport: firefly

Signed-off-by: David Zafman <dzafman@redhat.com>
src/include/ceph_features.h
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc