-
Notifications
You must be signed in to change notification settings - Fork 8
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
env: make the new mount options opt-in #1183
Conversation
f08ed1e
to
c0100ac
Compare
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.
Another consideration is if to make the way we determine the length limit configurable:
Line 1151 in 799e700
match nix::unistd::sysconf(nix::unistd::SysconfVar::PAGE_SIZE) { |
256 should still be long enough in most cases, but will require more layer flattening. Can we determine the correct limit at runtime?
crates/spfs/Cargo.toml
Outdated
# https://github.com/spkenv/spk/issues/968 | ||
legacy-mount-options = [] | ||
new-mount-options = [] |
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.
Consider changing this name to mount_options_allow_append
since we all know "new" things don't stay that way.
Thoughts from the meeting today:
(these could both be separate tickets/ follow ups) |
Rocky 9.4 does not support the `lowerdir+` mount option. Make the new mount options an opt-in feature. Related-to: spkenv#968 Related-to: spkenv#1164
c0100ac
to
5e673f9
Compare
Sounds good. I renamed the feature flag for now. I can follow up in a separate PR with (1) and (2). Since Once I do that, then we can reorient this from a feature flag to runtime behavior. My other thought is that this approach can probably be then extended to #1181 to eliminate the need for (2) at all, since doing the direct syscalls should avoid any length limits whatsoever. At that point, I kinda wonder whether the version check will even be needed. In theory, I may be able to get this working without any limits since we'd be using direct syscalls, and it's possible that it might work using the current I'll have to test that. If using syscalls eliminates the errors w/out So.. initially:
Then, if syscalls works with just
So that's three different configurations. Pseudocode:
I'm 🤞 that the syscalls can work out without having to have an extra branch in there for whether or not to use Let me know if that sounds good. For now, this PR has been updated with the review notes so it might be okay to merge as-is. I'll plan to re-appropriate #1181 to implement the plan laid out above if we y'all agree. I'd do that after this is merged so I can rebase against this as its base. |
Superseded by #1192 where this has gone from a feature flag to a runtime probe. |
Rocky 9.4 does not support the
lowerdir+=
option.Make the new mount options an opt-in feature.
Related-to: #968
Related-to: #1164