]> git.karo-electronics.de Git - karo-tx-linux.git/commit
libceph: handle new osdmap down/state change encoding
authorSage Weil <sage@newdream.net>
Tue, 3 May 2011 19:52:05 +0000 (12:52 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 18:30:23 +0000 (11:30 -0700)
commit4d99c0275f26228389de30acac9204838f46c72d
tree24a7ba0ccb293370025313d1f3f645b6e859c276
parent9950bb2a4719cc77e428578cfa1b56669d3a909f
libceph: handle new osdmap down/state change encoding

Old incrementals encode a 0 value (nearly always) when an osd goes down.
Change that to allow any state bit(s) to be flipped.  Special case 0 to
mean flip the CEPH_OSD_UP bit to mimic the old behavior.

Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/osdmap.c