Skip to content

Remove LCOW (step 5): volumes/mounts: remove LCOW code#42517

Closed
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:remove_lcow_step5
Closed

Remove LCOW (step 5): volumes/mounts: remove LCOW code#42517
thaJeztah wants to merge 1 commit intomoby:masterfrom
thaJeztah:remove_lcow_step5

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

splitting from #42170

Both "windows" and "linux" parsers were previously compiled on all platforms, so that both semantics could be handled; now that LCOW is removed, renaming these files back to be compiled only on the matching platform.

With the OS-specific handling being removed, the "OS" parameter is also removed from daemon.verifyContainerSettings().

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added status/2-code-review kind/experimental area/lcow Issues and PR's related to the experimental LCOW feature labels Jun 11, 2021
@thaJeztah thaJeztah added this to the 21.xx milestone Jun 11, 2021
@thaJeztah
Copy link
Copy Markdown
Member Author

thaJeztah commented Jun 11, 2021

looks like there a test / file missing a build tag to skip it on windows

=== RUN   TestConvertTmpfsOptions
--- FAIL: TestConvertTmpfsOptions (0.00s)
    parser_unix_test.go:35: could not convert {SizeBytes:1048576 Mode:-rwx------} (readOnly: false) to string: windows does not support tmpfs

edit: fixed

Both "windows" and "linux" parsers were previously compiled on all platforms,
so that both semantics could be handled; now that LCOW is removed, renaming these
files back to be compiled only on the matching platform.

With the OS-specific handling being removed, the "OS" parameter is also removed
from `daemon.verifyContainerSettings()`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah force-pushed the remove_lcow_step5 branch from 11ba763 to d99fa02 Compare June 11, 2021 20:33
@thaJeztah
Copy link
Copy Markdown
Member Author

I'm gonna try a slightly different alternative as well, where I keep the code to do the cross-platform mount (validation), but by default do "native" (so that we don't have to punch through the "os" in all code.

@thaJeztah
Copy link
Copy Markdown
Member Author

Closing this one in favour of #42520

@thaJeztah thaJeztah closed this Jul 8, 2021
@thaJeztah thaJeztah deleted the remove_lcow_step5 branch July 27, 2021 13:34
@thaJeztah thaJeztah mentioned this pull request Jul 12, 2023
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/lcow Issues and PR's related to the experimental LCOW feature kind/experimental status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants