Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1258777pxb; Fri, 18 Feb 2022 04:10:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzATFeRNbv4Qg3uiZgXZoxopTCQ0BCZt+99OSOUe8ZFKReercBin32tuZwEXuYu/kCq7wWL X-Received: by 2002:a17:906:53c4:b0:6cf:d2a9:c77f with SMTP id p4-20020a17090653c400b006cfd2a9c77fmr6349154ejo.354.1645186203725; Fri, 18 Feb 2022 04:10:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645186203; cv=none; d=google.com; s=arc-20160816; b=he5yLGRxeE9gXA0jrBIYN4inh0GxabVIJK4cncwFH9vAdwJHNY3zjjyvFhoDCNLGhB 5Vi1at/2ZpFD9vZPM47PKGoL7YHcF0FEUl/4w6fRZibz0b4KoabpQroPmw+7/zsYbx82 4/mQUYWgfPB/0Pkp2of92ptq/FPBwNbItcGayf7DlPrHirCqaNkjG8lRCXTfJMXqy/9B iivmhdWFwTrOKCZM6+LH79HqRhRwA39tSfhbh2QA7Bl+q3G9azOYfAmmjvAziX845nsX pI+fgvAwbgWLu3Pw5Z0MbI7hd6UlrnA2M+XHORyZ795jz3lBQDVxhB4jT8GGkcI5xdKH u7gQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3QfnBNbtvsfT/us+WXyaCCapfpJQssFblYdRiMLuHIg=; b=pkU0jyN4lT4JcEo4tSrq+n2zM8bt8XH4tslnV5frSjD6KsGGp+5HfpGQ/flI3LJI8J jbNt8f8ydXlq9aZvamEbWww46q8omXJUV2nPkLBSUqqMrRWXUDtmlThiloZpLTa/l/Qx XmZJPR/7q121YBo/5jPBVUUltggNffb1B4G1G/ARTXYeYJTJAOh7tqH+Lr+O29YhXEui 9c7LPBzeP2lYCGoLLC3qzVx3Wj7XmCMjjr1Gn5AH0bTNxyWpAcBNwC5okh1yle9bRmbE E5OQj2cH9KVPFoAtmoSL54dCq4ay/D8e7vzvR8rBEG1wUafqcWxe63H5fJRev6/DYtlz cAaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ihqVEVsT; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12si3151859eji.1005.2022.02.18.04.09.27; Fri, 18 Feb 2022 04:10:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=ihqVEVsT; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234141AbiBRKq4 (ORCPT + 99 others); Fri, 18 Feb 2022 05:46:56 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234107AbiBRKqz (ORCPT ); Fri, 18 Feb 2022 05:46:55 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38A4513F77; Fri, 18 Feb 2022 02:46:39 -0800 (PST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21IAH6kA011920; Fri, 18 Feb 2022 10:46:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=pp1; bh=3QfnBNbtvsfT/us+WXyaCCapfpJQssFblYdRiMLuHIg=; b=ihqVEVsTR9wyULIitza+4g9YyomRkRgxOa7WFHC5ny7sqBwZGxwBXZ0qZFD+Z5Qube4H ZHld0NIXZHV7wp9/G3J1BfKplKIxyyIQ8XwigTcL+7aAkP+vY7T+1MsF1R6aaLbIPGHw nXz2mN61O25pzNX3wEiJI+uYEebAH1011kWqyCQxSy1ACqeFSJn14RgdsEH++2YZZohY ic7SG7/IUzN8LsysRc+O22b4K5Nfo7IPlG7ABTbFBmy0CyqgR29ZdJPiEBVxbI+4Yyz8 ZUsYF7/0qVUp1nub7+fBrWjuPRhmMwcAH6fSGBzpSgSRhnFOsJSoG28T8NlBvPzTn7gD lg== Received: from ppma06ams.nl.ibm.com (66.31.33a9.ip4.static.sl-reverse.com [169.51.49.102]) by mx0b-001b2d01.pphosted.com with ESMTP id 3ea9jqgj9p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Feb 2022 10:46:38 +0000 Received: from pps.filterd (ppma06ams.nl.ibm.com [127.0.0.1]) by ppma06ams.nl.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 21IAbwvU011111; Fri, 18 Feb 2022 10:46:36 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06ams.nl.ibm.com with ESMTP id 3e645khdt1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 18 Feb 2022 10:46:36 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 21IAkXMK43581848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 18 Feb 2022 10:46:33 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 915C95207A; Fri, 18 Feb 2022 10:46:33 +0000 (GMT) Received: from li-bb2b2a4c-3307-11b2-a85c-8fa5c3a69313.ibm.com (unknown [9.43.119.232]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 4B7D052077; Fri, 18 Feb 2022 10:46:32 +0000 (GMT) Date: Fri, 18 Feb 2022 16:16:22 +0530 From: Ojaswin Mujoo To: fstests@vger.kernel.org, linux-ext4@vger.kernel.org Cc: riteshh@linux.ibm.com Subject: Re: [PATCH 0/2] tests/ext4: Ensure resizes with sparse_super2 are handled correctly Message-ID: References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-TM-AS-GCONF: 00 X-Proofpoint-GUID: C80NW8ApAbLBP_VWXSprgYGVvf0YkYvI X-Proofpoint-ORIG-GUID: C80NW8ApAbLBP_VWXSprgYGVvf0YkYvI X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-18_04,2022-02-18_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 spamscore=0 phishscore=0 mlxlogscore=727 mlxscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 adultscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202180067 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hello, Just wanted to send a gentle reminder to look into this patchset and let me know if anyone has any suggestions or review comments. Thank you for your time, Ojaswin On Mon, Feb 07, 2022 at 01:55:32PM +0530, Ojaswin Mujoo wrote: > As detailed in the patch [1], kernel currently does not support resizes > with sparse_super2 enabled. Before the above patch, if we used the > EXT4_IOC_RESIZE_FS ioctl directly, wiht sparse_super2 enabled, the > kernel used to still try the resize and ultimatley leave the fs in an > inconsistent state. This also led to corruption and kernel BUGs. > > This patchset adds a test for ext4 to ensure that the kernel handles > resizes with sparse_super2 correctly, and returns -EOPNOTSUPP. > > Summary: > > Patch 1: Fix the src/ext4_resize.c script to return accurate error codes. > Patch 2: Add the ext4 test for checking resize functionality > > [1] > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b1489186cc8391e0c1e342f9fbc3eedf6b944c61 > > Ojaswin Mujoo (2): > src/ext4_resize.c: Refactor code and ensure accurate errno is returned > ext4: Test to ensure resize with sparse_super2 is handled correctly > > src/ext4_resize.c | 46 +++++++++++++------- > tests/ext4/056 | 102 +++++++++++++++++++++++++++++++++++++++++++++ > tests/ext4/056.out | 2 + > 3 files changed, 136 insertions(+), 14 deletions(-) > create mode 100755 tests/ext4/056 > create mode 100644 tests/ext4/056.out > > -- > 2.27.0 >