Commit Graph
8 Commits
Author SHA1 Message Date
Akihiro Suda 317286ac00 Merge pull request #12581 from ticpu/fix-12549-ctr-image-mount-fails-no-such-device
Fix ctr image mount failing with no such device
2026-01-28 02:50:36 +00:00
Jérôme Poulin d2593b6477 core/mount/manager: add tests for WithTemporary option
Add tests for the WithTemporary mount activation used by `ctr images mount`.
Covers bind mount and overlay scenarios to catch regressions like #12549.

Signed-off-by: Jérôme Poulin <jeromepoulin@gmail.com>
2025-11-26 18:42:38 -05:00
Gao Xiang 190ed6b677 Avoid using redundant loop devices to run mkfs for mount manager tests.
mkfs.ext4 supports creating filesystems from regular files.

Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
2025-11-19 11:50:01 +08:00
Derek McGowan 0d62c71885 Update loopback test to make initialization more robust
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-10-19 13:38:40 -07:00
Derek McGowan 25c3871baa Switch mount manager tests to ext4
Reduce the size of the test files. Even using sparse files, the reported
large size may cause issues in some test environments.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-10-16 16:58:37 -07:00
Derek McGowan be9f183f45 Add mount transformers to mount manager
Extend the mount manager to support more transformers than format. The
transformers allow altering the mount before it is passed to the mount
handlers. These could be one-time actions which are needed to perform
the mount.

Adds mkdir and mkfs actions which can be used to prepare the arguments
for a mount. The actions can be limited to actions within the target
mount directory or plugin directories.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-10-14 16:35:53 -07:00
Derek McGowan 8db3010865 Add mounts api service
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-09-29 17:08:31 -07:00
Derek McGowan 4d34b01ce0 Add loopback and overlay mount manager tests
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-09-29 17:08:31 -07:00