Skip to content

CLOS-2816: Cap disk image size to filesystem file size limit#63

Merged
prilr merged 2 commits into
cloudlinux:cloudlinuxfrom
prilr:CLOS-2816-actor-target_userspace_creator-tries-to
May 17, 2026
Merged

CLOS-2816: Cap disk image size to filesystem file size limit#63
prilr merged 2 commits into
cloudlinux:cloudlinuxfrom
prilr:CLOS-2816-actor-target_userspace_creator-tries-to

Conversation

@prilr
Copy link
Copy Markdown
Collaborator

@prilr prilr commented May 15, 2026

On systems with large partitions (e.g. /home on a SAN with ~19 TB free), the target_userspace_creator actor tried to create a sparse disk image whose apparent size exceeded the 16 TiB maximum file size of ext4 (4K blocks), causing dd to fail.

Add _get_max_diskimage_size_mibs() which uses os.pathconf's PC_FILESIZEBITS to determine the actual file size limit of the disk images filesystem, then cap each disk image size to that limit in _prepare_required_mounts().

prilr and others added 2 commits May 14, 2026 19:19
On systems with large partitions (e.g. /home on a SAN with ~19 TB free),
the target_userspace_creator actor tried to create a sparse disk image
whose apparent size exceeded the 16 TiB maximum file size of ext4 (4K
blocks), causing dd to fail with exit code 1.

Add _get_max_diskimage_size_mibs() which uses os.pathconf's PC_FILESIZEBITS
to determine the actual file size limit of the disk images filesystem, then
cap each disk image size to that limit in _prepare_required_mounts().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@prilr prilr merged commit 3fbc8cb into cloudlinux:cloudlinux May 17, 2026
1 check passed
@prilr prilr deleted the CLOS-2816-actor-target_userspace_creator-tries-to branch May 17, 2026 17:07
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.

2 participants