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
doc: Update CephFS disaster recovery documentation #12370
Conversation
@jcsp Could you take a look at this one? |
@jcsp Could you take a look at this one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The doc changes look good, but the instances of "dendl" in DataScan.cc need to change to just newlines.
@@ -32,14 +32,16 @@ void DataScan::usage() | |||
{ | |||
std::cout << "Usage: \n" | |||
<< " cephfs-data-scan init [--force-init]\n" | |||
<< " cephfs-data-scan scan_extents [--force-pool] <data pool name>\n" | |||
<< " cephfs-data-scan scan_inodes [--force-pool] [--force-corrupt] <data pool name>\n" | |||
<< " cephfs-data-scan scan_extents [--force-pool] [--worker_n N --worker_m M] <data pool name>" << dendl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The replacement of "\n" with "<< dendl;" is incorrect here (and does not compile)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure? It compiled I thought and the tests say so. I will change it anyway.
@wido wow, did I really leave this for so long? Sorry! |
428c458
to
67e3017
Compare
@jcsp No problem! How does this look now? |
@@ -33,14 +33,16 @@ void DataScan::usage() | |||
{ | |||
std::cout << "Usage: \n" | |||
<< " cephfs-data-scan init [--force-init]\n" | |||
<< " cephfs-data-scan scan_extents [--force-pool] <data pool name>\n" | |||
<< " cephfs-data-scan scan_inodes [--force-pool] [--force-corrupt] <data pool name>\n" | |||
<< " cephfs-data-scan scan_extents [--force-pool] [--worker_n N --worker_m M] <data pool name>" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This whole section is one statement, like std::cout << A << B << C;
What you're changing it to is something like std::cout << A << B << std::endl; << C;
, it doesn't make sense.
You could do it by using std::endl and a trailing "<<" instead of ";", but really I'd just use "\n" like the original code.
The reason it looks like it compiles is that the checks that run on PRs are the unit tests: they don't actually build the whole tree (maybe we should change that) |
Better documentation about spawning multiple workers to speed up the recovery proces. Signed-off-by: Wido den Hollander <wido@42on.com>
67e3017
to
d0c8d8c
Compare
@jcsp: Argh, dôh. Compiling takes such a time on my systems that you sometimes look at the code only. Fixed now. |
@jcsp: Small ping again? ;) |
Better documentation about spawning multiple workers to speed
up the recovery proces.
Signed-off-by: Wido den Hollander wido@42on.com