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>
Tue, 24 May 2011 18:52:09 +0000 (11:52 -0700)
commit7662d8ff57d2b00ce8f7fe0b60a85efbb2c05652
treec87fd023ab2d4749ea32619034bcc813cba9504a
parent9db4b3e32778400555d5cc6fb61d4058902d37f7
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