Actions
Bug #14228
closedMemStore: error code other than ENOENT not processed
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
int MemStore::mkfs()
{
string fsid_str;
int r = read_meta("fs_fsid", &fsid_str);
if (r == -ENOENT) {
uuid_d fsid;
fsid.generate_random();
fsid_str = stringify(fsid);
r = write_meta("fs_fsid", fsid_str);
if (r < 0)
return r;
dout(1) << func << " new fsid " << fsid_str << dendl;
} else {
dout(1) << func << " had fsid " << fsid_str << dendl;
}
Updated by xie xingguo over 8 years ago
- Status changed from New to Resolved
Actions