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
cmake: FreeBSD specific excludes in CMakeLists.txt part 2 #10973
cmake: FreeBSD specific excludes in CMakeLists.txt part 2 #10973
Conversation
set(parse_secret_files | ||
common/secret.c) | ||
add_library(parse_secret_objs OBJECT ${parse_secret_files}) | ||
if(LINUX) |
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.
@wjwithagen could you please note why this is not secret.c
is not buildable in FreeBSD? for example, keyutils is not available in FreeBSD?
and why krbd is not applicable to FreeBSD?
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.
@wjwithagen this is not addressed.
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.
i guess maybe we can check for KEYUTILS_FOUND
instead?
bfefa00
to
6eb9f7b
Compare
@tchaikov |
6eb9f7b
to
20e08ba
Compare
@tchaikov |
8e81c1c
to
4cc1fe2
Compare
@@ -696,7 +696,7 @@ install(PROGRAMS | |||
|
|||
add_subdirectory(bash_completion) | |||
|
|||
if(LINUX) | |||
if(KEYUTILS_FOUND) |
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.
could you squash this commit into 05d72fb ?
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.
@tchaikov
Done
- FreeBSD does not have keyutils or any kernel type security store So using secret.c is not really relevant here - Have common/secret.c depend on KEYUTILS_FOUND - This also excludes building mount.cephfs, Next to the fact that this is 100% linux bases mount stuff - krbd is the Linux kernel version for RBD based disks, but again completely Linux based and porting to FreeBSD, if any, has to follow a different route Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
- honor the WITH_RBD and WITH_LIBCEPHFS flags Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
- Honor WITH_LIBCEPHFS Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
- Honor WITH_AIO tests that depend on bluestore parts Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
4cc1fe2
to
2e9809a
Compare
pushed to gb as wip-10973. once gb are happy, it's good to merge. |
@tchaikov |
jenkins, retest this please |
- to avoid the scrub wave when the osd_scrub_max_interval reaches in a high-load OSD, the scrub time is randomized. - extract scrub_load_below_threshold() out of scrub_should_schedule() - schedule an automatic scrub job at a time which is uniformly distributed over [now+osd_scrub_min_interval, now+osd_scrub_min_interval*(1+osd_scrub_time_limit]. before this change this sort of scrubs will be performed once the hard interval is end or system load is below the threshold, but with this change, the jobs will be performed as long as the load is low or the interval of the scheduled scrubs is longer than conf.osd_scrub_max_interval. all automatic jobs should be performed in the configured time period, otherwise they are postponed. - the requested scrub job will be scheduled right away, before this change it is queued with the timestamp of `now` and postponed after osd_scrub_min_interval. Fixes: ceph#10973 Signed-off-by: Kefu Chai <kchai@redhat.com> (cherry picked from commit 5e44040) Conflicts: src/osd/OSD.cc
s/osd_scrub_interval_limit/osd_scrub_interval_randomize_ratio/ Fixes: ceph#10973 Signed-off-by: Kefu Chai <kchai@redhat.com>
Changes to the CMakeLists.txt files specific for FreeBSD building.
These are the items that can not (yet) be build on FreeBSD
Excluding build target based on