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 mkfs #7704

Merged
merged 1 commit into from Mar 2, 2016

Conversation

xiexingguo
Copy link
Member

During the mkfs process, if we fail to read and sometimes rewrite the
op_seq, the mkfs process is abnormally terminated but we may
still return a positive answer to the caller, which is confusing and misleading.

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

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

During the mkfs process, if we fail to read and sometimes rewrite the
op_seq, the mkfs 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#14814
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Feb 19, 2016
…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 changed the title os/filestore: fix wrong scope of result code for error cases during mkfs osd: filestore: fix wrong scope of result code for error cases during mkfs Mar 2, 2016
liewegas added a commit that referenced this pull request Mar 2, 2016
osd: filestore: fix wrong scope of result code for error cases during mkfs

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