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
FreeBSD related fixes #7170
FreeBSD related fixes #7170
Conversation
8f52a25
to
ca35ec6
Compare
@adamemerson ping? |
ca35ec6
to
8dcc002
Compare
@tchaikov thanks for the remainder. Rebased. |
@@ -86,11 +87,6 @@ libcommon_internal_la_SOURCES += \ | |||
common/pick_address.cc | |||
endif | |||
|
|||
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.
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 I don't have a Solaris to check, but linux_versoin.c uses uname(). It looks like it is present on Solaris too and compatible.
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.
@trociny agreed . see http://www.opensolarisforum.org/man/man2/uname.html @rohanmars could you help confirm this?
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.
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.
@rohanmars But it is also used by FileStore. Isn't FileStore built on Solaris?
8dcc002
to
3a39bb1
Compare
lgtm unless @rohanmars thinks otherwise. |
@@ -103,10 +99,8 @@ libcommon_internal_la_SOURCES += \ | |||
endif | |||
|
|||
# used by RBD and FileStore | |||
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.
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.
@rohanmars Sorry, my previous message (it is also used by FileStore) actually was for this comment.
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.
@trociny, no FileStore is not built for client side as I understand. Due to limitation on Makefile.am syntax, probably best to add another if FREE_BSD or something. Not sure why WITH_RBD guard was taken away.
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.
probably because it is used by FileStore and BlueStore. can we guard it with WITH_OSD
and `!SOLARIS?
@rohanmars @trociny @tchaikov |
@wjwithagen you are right, if our goal is to port the ceph client, maybe we can guard "common/linux_version.c" with
|
@tchaikov Now the problem is when such a block of code tries to call OS specific functions. Looking at the code in ./src/os/filestore/FileJournal.cc there are errors/warnings printed that are not relevant on other platforms and those might confuse a admin. Even text that is highlighted in RED. BTW: calls are at: |
Ok, I tend to agree that linux_version.c should be included only on linux platform, and get_linux_version() (together with linux only relevant code around it) be ifdefed. As for blkdev.cc I think it should be included for all platforms with os specific things ifdefed in blkdev.cc. I will come with the patch later. |
@wjwithagen agreed! |
3a39bb1
to
72993f4
Compare
rebased after updating the patch for linux_version.c and blkdev.cc handling. |
72993f4
to
87ba670
Compare
Rebased after updating stop.sh |
@trociny could rebase the PR against master, and i think it's ready for needs-qa. |
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
- export CC and CXX, so the same compiler is used - use NPROC Signed-off-by: Mykola Golub <mgolub@mirantis.com>
On freebsd <malloc.h> has been replaced by <stdlib.h> Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(excluding linux specific features) Signed-off-by: Mykola Golub <mgolub@mirantis.com>
`$(CC) -dumpversion` works for clang too, as it supports gcc compatibility for -dumpversion option. Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
87ba670
to
27f2d80
Compare
rebased against the recent master |
lgtm with qa run. |
tested at http://pulpito.ceph.com/kchai-2016-03-11_19:18:43-rados-wip-kefu-testing---basic-smithi/ , failed tests are known issues and not related to the tested changes: |
FreeBSD related fixes Reviewed-by: Kefu Chai <kchai@redhat.com>
@tchaikov |
No description provided.