mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
os/bluestore_tool: handle fsck's returned status properly.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
parent
3befd56ec7
commit
c39a2d19ce
@ -329,8 +329,12 @@ int main(int argc, char **argv)
|
||||
if (r < 0) {
|
||||
cerr << "error from fsck: " << cpp_strerror(r) << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
} else if (r > 0) {
|
||||
cerr << action << " found " << r << " error(s)" << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
} else {
|
||||
cout << action << " success" << std::endl;
|
||||
}
|
||||
cout << action << " success" << std::endl;
|
||||
}
|
||||
else if (action == "prime-osd-dir") {
|
||||
bluestore_bdev_label_t label;
|
||||
|
Loading…
Reference in New Issue
Block a user