Skip to content

Conversation

learmj
Copy link
Collaborator

@learmj learmj commented Sep 26, 2025

Improves handling of the config variable that defines the target device storage sector size (basically now enforces 512 or 4096)
Encourages mkfs.ext4 to use a minimum block size of 4K if that variable indicates a 4Kn device.

The capacity validator allowed suffixed values (e.g. "4K"), but
mkfs.vfat -S accepts only plain digits, causing failures.

Restrict sector_size to numeric values (512 or 4096) and update the
description to define it as the target device's logical sector size,
with context on 512n/512e/4Kn.
mkfs.vfat already uses IGconf_device_sector_size, but try to encourage
mkfs.ext4 to use a minimum block size of 4K if this variable specifies a
4K sector size.
No change to BTFS filesystem creation.
@learmj
Copy link
Collaborator Author

learmj commented Sep 26, 2025

Hi @martamomotko @timg236 @roliver-rpi

The only functional difference here is if IGconf_device_sector_size is 4096, -b -4096 is added to the mkfs.ext4 args to ensure a minimum block size of 4K for all ext4 filesystems.

IGconf_device_sector_size is already being passed to mkfs.vfat via -S.

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.

1 participant