From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 9CBC580031 for ; Thu, 19 Nov 2026 12:04:48 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJC3VcO023563; Thu, 19 Nov 2026 15:03:31 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJC3VcO023563 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=default; t=1795089813; bh=CPTedxqWGVc1RLOppi+oD2sM0i39dVM5Lw4ysfdPHRc=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe; b=jmhGWB7jnoVmuN8zpYfMdR/KrEnYTn/9mOVSgRiIpnt771pZHjdOURTRGcVUyKn17 G3QvUbqmIDSUfyKiEe4IHTQDx0R52Chrj+cM7lzZrA1sGjPO1vZ2AXaN73y+FTUl7F GdzNWcAlNQwLxsmQHw4PBxItG5UGqb3HTOZjo9MZvWdMBF8X9/+4CWZqtYU7ujW73l ON4eUJOnJUyGfpB+FWL67oj2xuTj1ZMDnnL46+Xfwqe5JroyZHmWQardGvKjnpO2kq /wAO5CWb6C53Hy05OC0x+UTOcFyjaCGttN2+a9oC/chqh0B90OheY1TgNXYQLsXBXF hx+Z0wMTbndzw== Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJC3TPS023557 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 15:03:30 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJC3TPS023557 Authentication-Results: mail.openvz.org; dkim=pass (2048-bit key) header.d=openvz.org header.i=@openvz.org header.b="Hb5DNPYA" Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-6b8b0fff76dso1356887a12.2 for ; Thu, 19 Nov 2026 04:03:30 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErFM8Y+NPaPMx/lraWb5hg/ZNZyruDVoxBLOFSTzbRGnHg2bVipDORt/nnoxlJ1hbJ+HAKAw/w==@openvz.org X-Gm-Message-State: APuU4Z/XuK5WpkNwvZPAkrdAGnUZwavvSOV3v1PJC4/yZ6PerFhjFDke 1EAEDAKxYiV60D+SgS9QUlX8XFtaV7//pFu647GsUB4TrUfg1BBiVjm3Fj1/5P/1Db0Tpq3+9Pa uTLvSHj4vMxbGR6GPZHu8Ocxm8fqBekmFwCJ6mboL5QhDurA1/AFYUg== X-Gm-Gg: AYBFou3PullTZsQzLU8yZiA7QUXRldFfNM/FF97V/dESKyTlNqbyjGICP66Wv6RmQD5 B4g/h8RdiizjdGLE2/N7r+WQDIgOUtsGXaC8aq78Yhxk4NP+NMVOzK0prbkfpKRINY8EpYze2Yo e7dqyfVRrZkWQQrEYAvvXoTxwzKKVaap1B/7pbJHvlj4bhQr51/Mpd/u6Ks36iHIMiZeWTxqR69 IboobqKhSN9/9gUZqgQ1dPKTCr0sAhxGebVZ6xhMCwjV4p2F10aWy/CURtWkYtzVVBEYEHLUuLL x39VoG4egg== X-Received: by 2002:a05:6402:2115:b0:6b9:c43e:19e9 with SMTP id 4fb4d7f45d1cf-6b9c43e2317mr2100623a12.16.1795089809529; Thu, 19 Nov 2026 04:03:29 -0800 (PST) X-Received: by 2002:a05:6402:2115:b0:6b9:c43e:19e9 with SMTP id 4fb4d7f45d1cf-6b9c43e2317mr2100585a12.16.1795089808986; Thu, 19 Nov 2026 04:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795089808; cv=none; d=google.com; s=arc-20260327; b=FTMM1uxcnLzuSlWNoyAaQC6xRbzmJxUHlREOdhmyqG1Q5SKzVf1qC4pAhlIrmfJs4g +qz42eakAxdclHQTGsnuOVCCxztAOSNHR3XJm0Xy9T2pTeSBG+hx4NKNCo+Re+SDs0oc +ObnEYp0ULFcs4QA+Gm6l1ZmFLTU87tq4vcMFRFntwpVv+mDTPqrCOgQMQdc+81fSm86 RGdNgMigpuw2rA7ESafGVLM3MXRK6+5c+DVvD7aABYKfpHdZA3qEeuc9heiwpwzg42v7 hZwSk4EjFowj/z1tIHRQYoM9Z5jPOfDvpaBDpSV+XF/E8Heclh3gu0x5Qfzhn+wpyFRW He+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=bKjKDgMhAZB8CwRreSt40hII4a2Vu6VRRFDinRAJZUM=; fh=izWF2eHad4+V1CGM0KxfbCpgtMGDBdlGS1vRbLBQcs8=; b=sMUuhShcHglo58pY4VXFTQ9uG0IU3+zGwFe1bCD18UsZY42ZUVmu3yWQhUeeEHK8mH j82LgReO150gqnSG3n6D+3tCypbZ0mMy6rdvmMYOsV5CrIuiaVARPNxzZb9BlbFJQF8k dR+c6uMaq6zUeIKIK+mrz+uS5XdZMxIEJYuDWTS/pN5MNoeUMvfbmjSOhhmaEHEzAvMR D9CWSlxZE+bQn3KGZCGR5VrEHKyigcwmB8CIj4ov+z3ZlTsWzOH0+aLM0BkKXOThfF+U 7EcWVsHGuEfXDmjtPOqXVUXFldBIDNPw7jQtv+jtlDx7N6dHpAjgGVVErdh/xLP2UaZt 68Bw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Hb5DNPYA; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 4fb4d7f45d1cf-6ba1f453841sor363061a12.5.2026.11.19.04.03.28 for (Google Transport Security); Thu, 19 Nov 2026 04:03:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) client-ip=2a06:5b06:b600:300:989f:a206:d03d:c3d5; Authentication-Results: mx.google.com; dkim=pass header.i=@openvz.org header.s=google header.b=Hb5DNPYA; spf=softfail (google.com: domain of transitioning den@openvz.org does not designate 2a06:5b06:b600:300:989f:a206:d03d:c3d5 as permitted sender) smtp.mailfrom=den@openvz.org; dara=neutral header.i=@openvz.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvz.org; s=google; t=1795089808; x=1795694608; darn=openvz.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=bKjKDgMhAZB8CwRreSt40hII4a2Vu6VRRFDinRAJZUM=; b=Hb5DNPYA7v+Qmcq7XmPsbVVZwOE3dJbqsDCrRkke5nx6eXAkL7xDoWiGQ4ZU/Ql216 wbNloFXC1F5lqiIXniI7n4P2NdZWzqg5CsxIRevfBT/hIEagSY4sUymwnUoTydzfCqQK 5FsDFFcO19w7QO1SktnRd8Nf0/bYedvQHAeuHVmZhx2KH2VehotKKWl/tx73zboLjy5T a884sq6rD0ev+8gGLaIskT7ah4I421PSA7W1kmMIyQhagg/mWcQiQt5YKAqGZLE5aNtW um/4rBYV6MpLsMe+Kzr0tyXXjtCa4ZKXqCPSye4m7yYAWx56qJadxYREXuKNhcFjOFXj Byjw== X-Forwarded-Encrypted: i=1; AL+hErFw1hAqjyGgh3EwrFJKIbUOfQTVTduzwVRmmefaF1xQFsHUEaPL/GDWnOWfHWwyIIJEseeArQ==@openvz.org X-Received: by 2002:a05:6402:180a:b0:6b8:ff75:9b45 with SMTP id 4fb4d7f45d1cf-6b8ff759d11mr2079068a12.24.1795089808454; Thu, 19 Nov 2026 04:03:28 -0800 (PST) Received: from artemis.sw.ru ([2a06:5b06:b600:300:989f:a206:d03d:c3d5]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4a65541f3f7sm11036112f8f.24.2026.11.19.04.03.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 04:03:27 -0800 (PST) From: "Denis V. Lunev" To: ptikhomirov@virtuozzo.com, vasileios.almpanis@virtuozzo.com Date: Thu, 19 Nov 2026 13:03:17 +0100 Message-ID: <20261119120325.792064-1-den@openvz.org> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 0/8] ext4: port the ioctls to set and get superblock parameters X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org libploop sets the reserved blocks of a mounted ext4 after a balloon resize with ioctl 'f' 44, the vz7-only EXT4_IOC_SET_RSV_BLOCKS. vz8 never got it, and since upstream 6.0 that number is EXT4_IOC_SETFSUUID, so on vz9 and vz10 the call fails and the reserved blocks keep the size of the old file system. 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. https://virtuozzo.atlassian.net/browse/VSTOR-155988 Tested in an HCI 8.2 VM: the reserved block count follows a balloon resize through the new ioctl, out of range counts are refused, fsck is clean, and the ploop test suite passes. Arnd Bergmann (1): ms/ext4: fix ext4_tune_sb_params padding Fedor Pchelkin (2): ms/ext4: fix string copying in parse_apply_sb_mount_options() ms/ext4: check if mount_opts is NUL-terminated in ext4_ioctl_set_tune_sb() Jiazi Liu (1): ms/ext4: fix incorrect function call when initializing s_resgid Theodore Ts'o (3): ms/ext4: avoid potential buffer over-read in parse_apply_sb_mount_options() ms/ext4: add support for 32-bit default reserved uid and gid values ms/ext4: implemet new ioctls to set and get superblock parameters guzebing (1): ms/ext4: only update tune mount options when requested fs/ext4/ext4.h | 16 +- fs/ext4/ioctl.c | 317 +++++++++++++++++++++++++++++++++++++- fs/ext4/super.c | 26 ++-- include/uapi/linux/ext4.h | 53 +++++++ 4 files changed, 388 insertions(+), 24 deletions(-) -- 2.55.0 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel