Bug #14228
MemStore: 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;
}
Associated revisions
os: fix unhandled error other than ENOENT
Fixes: #14228
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
History
#1 Updated by xie xingguo about 8 years ago
- Status changed from New to Resolved