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

Conversation

xiexingguo
Copy link
Member

…ount

This pr is similar to #7704
but I feel like making a new one in case they need to be treated separately,
such as one needs to be backported while the other does not, and vice versa.

During the mount process, if we fail to read op_seq or create a no-snap-fn,
the mount process is abnormally terminated but we may
still return a positive answer to the caller, which is misleading.

This patch is provided to solve the above problems by correctly setting
'ret' correspondingly under these cases, which is the final answer to
be passed out for caller.

Fixes: #14815
Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

…ount

This pr is similar to ceph#7704
but I feel like making a new one in case they need to be treated separately,
such as one needs to be backported while the other does not, and vice versa.

During the mount process, if we fail to read op_seq or create a no-snap-fn,
the mount process is abnormally terminated but we may
still return a positive answer to the caller, which is misleading.

This patch is provided to solve the above problems by correctly setting
'ret' correspondingly under these cases, which is the final answer to
be passed out for caller.

Fixes: ceph#14815
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@liewegas liewegas added this to the jewel milestone Feb 22, 2016
@xiexingguo xiexingguo changed the title os/filestore: fix wrong scope of result code for error cases during m… os: filestore: fix wrong scope of result code for error cases during m… Mar 3, 2016
@liewegas liewegas changed the title os: filestore: fix wrong scope of result code for error cases during m… osd: filestore: fix wrong scope of result code for error cases during mount Mar 11, 2016
liewegas added a commit that referenced this pull request Mar 11, 2016
osd: filestore: fix wrong scope of result code for error cases during mount

Reviewed-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 56fe749 into ceph:master Mar 11, 2016
@xiexingguo xiexingguo deleted the xxg-wip-14815 branch March 11, 2016 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants