Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osd: filestore: fix wrong scope of result code for error cases during mount #7707

Merged
merged 1 commit into from Mar 11, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/os/filestore/FileStore.cc
Expand Up @@ -1466,6 +1466,7 @@ int FileStore::mount()

op_fd = read_op_seq(&initial_op_seq);
if (op_fd < 0) {
ret = op_fd;
derr << "FileStore::mount: read_op_seq failed" << dendl;
goto close_current_fd;
}
Expand All @@ -1482,6 +1483,7 @@ int FileStore::mount()
// from it.
int r = ::creat(nosnapfn, 0644);
if (r < 0) {
ret = -errno;
derr << "FileStore::mount: failed to create current/nosnap" << dendl;
goto close_current_fd;
}
Expand Down