[Devel] [PATCH hci-8.2 0/8] ext4: port the ioctls to set and get superblock parameters

Konstantin Khorenko khorenko at virtuozzo.com
Thu Nov 19 19:49:40 MSK 2026


Applying the series as is.

Separate patches, not needed for this series. I created a task for it:

1. 5/8, as in mainline: SET_TUNE_SB_PARAM accepts casefold even
   without CONFIG_UNICODE, which vz10 does not set. The call returns 0,
   and every later mount of that file system fails in
   ext4_feature_set_ok(). With CONFIG_UNICODE it enables casefold
   without loading the encoding (Sashiko's NULL dereference). Host root
   only, but it should be refused upstream first.
   https://virtuozzo.atlassian.net/browse/VSTOR-156073

On Thu, 19 Nov 2026 13:03:17 +0100, Denis V. Lunev wrote:
> Port EXT4_IOC_GET_TUNE_SB_PARAM and EXT4_IOC_SET_TUNE_SB_PARAM from
> upstream 6.18, with the two commits they build on and the upstream
> fixes to all three. They set the reserved blocks and other tune2fs
> parameters on a mounted file system. libploop will use them and fall
> back to tune2fs on kernels without them.

For the libploop side of VSTOR-155988:
- issue 'f' 44 on vz7 only: on vz9 and vz10 it is EXT4_IOC_SETFSUUID
  and fails with EINVAL or EOPNOTSUPP, not ENOTTY, so the tune2fs
  fallback never runs;
- zero struct ext4_tune_sb_params (or fill it from GET) before SET:
  6/8 checks that mount_opts is NUL-terminated even when the mount
  options flag is not set;
- on the grow path with a balloon, tune_fs() runs before resize_fs(),
  so the kernel scales the new reserve with the resize, and a count
  above half of the old size is refused.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list