]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Return EOPNOTSUPP if a set-alloc-hint occurs with OSDs that don't support 2716/head
authorDavid Zafman <dzafman@redhat.com>
Wed, 24 Sep 2014 23:02:21 +0000 (16:02 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 13 Oct 2014 17:38:48 +0000 (10:38 -0700)
commitd5bac46e06c5420f29a021b294e391b2c6694cbd
tree4525bc13abb9164d6bdb19da50f5848a18c41646
parentde08802dcf35aea516d013d3d6116aaa7707b923
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>
(cherry picked from commit 9b39033f2b2bcdd2be0f6da4dff06023d0f77499)

Conflicts:

src/include/ceph_features.h
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/include/ceph_features.h
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc