]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osdmap: store a uuid for each osd
authorSage Weil <sage@newdream.net>
Tue, 1 May 2012 23:12:02 +0000 (16:12 -0700)
committerSage Weil <sage@newdream.net>
Tue, 1 May 2012 23:12:02 +0000 (16:12 -0700)
commitca4311e5e39cec8fad85fad3e67eea968707e9eb
treee70d7ada5a1b327400b26f71ed878c6db42b3493
parentc3fb68ee1bcefb4518e2c2154674ca3cd191cf8c
osdmap: store a uuid for each osd

Rev the extended section of the map to store it.  Dump it when the osd
exists.  Zero it out if an osd is destroyed.  Provide some accessors to
identify an osd given a uuid (linear search).

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.cc
src/osd/OSDMap.h