Skip to content

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Jun 3, 2025

This adds an experimental setting to enable inotify support (only on darwin/linux), using the support that Lima already provides.

Includes a BATS test (in a second commit).

Fixes #8717

@jandubois
Copy link
Member

The description includes an "info" icon that doesn't seem to be doing anything.

And the line needs to be separated from the radio button group above:

CleanShot 2025-06-03 at 16 00 23@2x

Should looks similar to container engine type and WASM support:

CleanShot 2025-06-03 at 16 01 25@2x

So maybe use the same idea, moving the text to the title, and just using "Enabled" for the checkbox?

I don't think we want to follow the naming convention and append a .enabled to the name. It is already too long as-is, and I don't see us having any suboptions for it.

run ctrctl run \
--volume "$HOST_WORK_PATH:/mount:rw" --pull never \
rd_bats_volume_inotify
assert_output --regexp "/mount.*foo"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is probably good enough as-is, but I think it becomes clearer when you specify the full line:

Suggested change
assert_output --regexp "/mount.*foo"
assert_line "/mount/ ATTRIB foo"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that is too rigid; if we later get proper MODIFY instead of ATTRIB, that should still pass.

Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to keep the tooltip, we should use the same icon we use elsewhere:

CleanShot 2025-06-03 at 16 21 52@2x

@jandubois
Copy link
Member

I don't know what to do about it, but having inotify enabled results in a bunch of popups from Rancher Desktop requesting access to various protected folders, including Music and Photos libraries.

I can't think of a robust way to deal with this. 😞 I mean, we could try bind-mounting some directories read-only into themselves, but that feels brittle/hacky.

@mook-as
Copy link
Contributor Author

mook-as commented Jun 3, 2025

The info icon thing is fixed by ca6624a in #8730. But I can move the text into the UI directly instead of a tooltip; having two icons next to an option isn't great.

I'm going to ignore the macOS-specific issue for now, because there's nothing I can do about it (that would be reasonable).

@mook-as
Copy link
Contributor Author

mook-as commented Jun 4, 2025

Current screenshot:
image

mook-as added 3 commits June 12, 2025 14:46
This adds the hooks to allow the user to experimentally enable Lima's
`mountInotify` setting.

Signed-off-by: Mark Yen <[email protected]>
Don't use a tooltip for inotify description; having two icons next to the
option is too confusing.

Signed-off-by: Mark Yen <[email protected]>
@jandubois jandubois marked this pull request as draft July 30, 2025 22:36
@Anutrix

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement inotify support on Linux and macOS

3 participants