Repository navigation
Conversation
Two of these files include <endian.h> and neither uses anything from it: there is no htobe*(), be*toh() or __BYTE_ORDER anywhere in the component. Drop it. It is a glibc header, so this is also what stops proxy_link.h from being included at all on Darwin, and with it every file that reaches for the link layer. proxy_mount.c does use PATH_MAX, for the thread-local buffer that proxy_path_iterator_resolve() resolves symlinks into, and never includes <limits.h>. It is reaching the definition through some other header on Linux; ask for it directly. Assisted-by: claude-code:claude-opus-5 Signed-off-by: Dan van der Ster <[email protected]>
This was referenced Sep 18, 2026
xhernandez
reviewed
Sep 18, 2026
wjwithagen
reviewed
Sep 18, 2026
proxy_helpers.c hashes with EVP_sha256() and is built into both the daemon and the client library, but only the daemon is told about OpenSSL. The client library gets away with it on Linux because /usr/include is searched anyway and a shared library is allowed to leave the symbols to be resolved at load time. Neither holds everywhere. Homebrew keeps openssl@3 keg-only, so the headers are not on any default search path and the compile fails outright with 'openssl/evp.h' file not found - for the client library only, the daemon having brought the include directory in with the target it already links. Assisted-by: claude-code:claude-opus-5 Signed-off-by: Dan van der Ster <[email protected]>
libcephfsd shares a single libcephfs mount between processes over a Unix socket, for the container cases that want it, and is written to Linux throughout: it marshals fscrypt's UAPI structures by size from <linux/fscrypt.h>, holds an unnamed file open with O_TMPFILE and names it later with linkat(AT_EMPTY_PATH), and asks recvmsg() for MSG_CMSG_CLOEXEC. None of that has a Darwin spelling, and O_TMPFILE and AT_EMPTY_PATH are absent on FreeBSD too, so the component cannot have been building anywhere but Linux. Spreading conditionals through it to make it compile elsewhere is the wrong answer - nothing on a macOS developer's cluster wants the daemon. Gate it the way the mount helper immediately above it is already gated. Suggested-by: John Mulligan <[email protected]> Assisted-by: claude-code:claude-opus-5 Signed-off-by: Dan van der Ster <[email protected]>
dvanders
force-pushed
the
wip-macos-4-cephfs-proxy
branch
from
September 23, 2026 05:54
a86f3ff to
65cee23
Compare
tchaikov
reviewed
Sep 24, 2026
anoopcs9
approved these changes
Oct 1, 2026
xhernandez
approved these changes
Oct 1, 2026
Contributor
|
This PR has been added to wip-yuri-testing-20261109.210713-main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Split out of #71232, which reviewers asked to see in smaller batches.
Based on main; independent of the other six.
libcephfsdshares a single libcephfs mount between processes over a Unixsocket and is written to Linux throughout: it marshals fscrypt's UAPI
structures by size from
<linux/fscrypt.h>, holds an unnamed file openwith
O_TMPFILEand names it later withlinkat(AT_EMPTY_PATH), and asksrecvmsg()forMSG_CMSG_CLOEXEC. None of that has a Darwin spelling, andO_TMPFILEandAT_EMPTY_PATHare absent on FreeBSD too, so the componentcannot have been building anywhere but Linux.
Gate it the way the mount helper immediately above it in
src/CMakeLists.txtalready is, rather than spreading conditionals throughit — @phlogistonjohn's suggestion on #71232, and the right one.
Two fixes come along because neither is about Darwin:
cephfs_proxycompilesproxy_helpers.c, which hashes with EVP, so itneeds OpenSSL; only the daemon was being given it
<endian.h>was included in two files that use nothing from it, while<limits.h>, whichproxy_mount.ctakesPATH_MAXfrom, was notincluded at all
Checklist
🤖 Generated with Claude Code