goto ignore;
}
- if (m->sb.fsid != mon->monmap->fsid) {
- dout(0) << "preprocess_boot on fsid " << m->sb.fsid << " != " << mon->monmap->fsid << dendl;
+ if (m->sb.cluster_fsid != mon->monmap->fsid) {
+ dout(0) << "preprocess_boot on fsid " << m->sb.cluster_fsid
+ << " != " << mon->monmap->fsid << dendl;
goto ignore;
}
int ret;
ObjectStore *store = NULL;
OSDSuperblock sb;
- sb.fsid = fsid;
+ sb.cluster_fsid = fsid;
sb.whoami = whoami;
try {
void OSD::handle_osd_ping(MOSDPing *m)
{
- if (superblock.fsid != m->fsid) {
+ if (superblock.cluster_fsid != m->fsid) {
dout(20) << "handle_osd_ping from " << m->get_source_inst()
- << " bad fsid " << m->fsid << " != " << superblock.fsid << dendl;
+ << " bad fsid " << m->fsid << " != " << superblock.cluster_fsid << dendl;
m->put();
return;
}
__u8 v = 3;
::encode(v, bl);
- ::encode(fsid, bl);
+ ::encode(cluster_fsid, bl);
::encode(whoami, bl);
::encode(current_epoch, bl);
::encode(oldest_map, bl);
string magic;
::decode(magic, bl);
}
- ::decode(fsid, bl);
+ ::decode(cluster_fsid, bl);
::decode(whoami, bl);
::decode(current_epoch, bl);
::decode(oldest_map, bl);
class OSDSuperblock {
public:
- uuid_d fsid;
+ uuid_d cluster_fsid;
int32_t whoami; // my role in this fs.
epoch_t current_epoch; // most recent epoch
epoch_t oldest_map, newest_map; // oldest/newest maps we have.
whoami(-1),
current_epoch(0), oldest_map(0), newest_map(0), weight(0),
mounted(0), clean_thru(0) {
- memset(&fsid, 0, sizeof(fsid));
}
void encode(bufferlist &bl) const;
inline ostream& operator<<(ostream& out, const OSDSuperblock& sb)
{
- return out << "sb(" << sb.fsid
+ return out << "sb(" << sb.cluster_fsid
<< " osd." << sb.whoami
<< " e" << sb.current_epoch
<< " [" << sb.oldest_map << "," << sb.newest_map << "]"