Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp908395pxt; Thu, 5 Aug 2021 14:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydkGCs8JTj9iJ/rjaNa/wxEcCw99pfUdqgmo8xy94Lq9efsfu1vp3Uh0c8rCKjtHA3PUPl X-Received: by 2002:a05:6602:2044:: with SMTP id z4mr37327iod.128.1628200790982; Thu, 05 Aug 2021 14:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628200790; cv=none; d=google.com; s=arc-20160816; b=nNmiHQ6Qt0yqsFBVFFM4+i1YTbhyneRr8gcpsEGtQDjHn2SypKUm7j3BZqTrkVT3im ipYzQBcMVO9C5OehWuAFieKC47Lrrc/Kx/GUdNdJun76nI8PVMIQbPoQ6zV7a913o+6q kvyjP6WQ7Je0jwDw2QhSdRP4gnX1orOe0PGnTTUeJELqrIygW/AIrLH5194l1PLOOCZS 5AaxeThml235Yom3Qsq4nm4DkREkS31c4LzmsJcHf0UYPj+nU1+hDxH4SA6BtUAjBEI+ YW5xjQD8kAPItEfF0pPDij3x2CH2fBHqwH7MOslXTXIvthtAueK40zv16R/Stz7K/Qb3 9aZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:organization:subject:cc:to:from; bh=jq0DvLgRb9uSG6lkV1sHtFjwQAjTxJYX+cIK+4tCiv8=; b=Y2rnZ69/exJO427KILRC2KYRPBb1YAmvm2wqujc+OUGK6hLQGpx/yQWwihtzrQHMLb NrhEDm7kk4X2veGmeHNvXLk2LwLN+Ku0VCxrWTJbpEqIr96U+N5G8RtBh+689lRpgbMp dAWdHLLtYogwVtfpf9QTnazeuGkAsxwoN+xx8bvl74lrvc2SuQy1bYywsjjtB2nb+gd1 brKtNx4Ia1xcEH5AOLX36twGz8q8B1ApEByoauP0QX+xkpEnpeP7LSPRgHsCrDg8pjlM eP+W31VCYtHnoFXPIy27z/oEMwjBeW94a3roE0KA5fDYyFOgZGA3bAthfgfwqC+3kFwT gXTA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si7446213ilu.13.2021.08.05.14.59.32; Thu, 05 Aug 2021 14:59:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231529AbhHEVud (ORCPT + 99 others); Thu, 5 Aug 2021 17:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231371AbhHEVud (ORCPT ); Thu, 5 Aug 2021 17:50:33 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F3CC0613D5 for ; Thu, 5 Aug 2021 14:50:18 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: krisman) with ESMTPSA id 8988E1F44365 From: Gabriel Krisman Bertazi To: Amir Goldstein Cc: LTP List , Jan Kara , Ext4 , Khazhismel Kumykov , kernel@collabora.com Subject: Re: [PATCH 6/7] syscalls/fanotify20: Test file event with broken inode Organization: Collabora References: <20210802214645.2633028-1-krisman@collabora.com> <20210802214645.2633028-7-krisman@collabora.com> <87k0l1hkuz.fsf@collabora.com> Date: Thu, 05 Aug 2021 17:50:11 -0400 In-Reply-To: (Amir Goldstein's message of "Wed, 4 Aug 2021 08:27:46 +0300") Message-ID: <87tuk3ef3g.fsf@collabora.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Hi Amir, thanks for the review. Amir Goldstein writes: > Well, I would not expect a FAN_FS_ERROR event to ever have 0 error > value. Since this test practically only tests ext4, I do not think it > is reasonable > for the test to VERIFY a bug. It is fine to write this test with expectations > that are not met and let it fail. This gave me a good chuckle. :) I will check for a EXT4_ERR_EFSCORRUPTED and propose a fix on ext4. > > But a better plan would probably be to merge the patches up to 5 to test > FAN_FS_ERROR and then add more test cases after ext4 is fixed > Either that or you fix the ext4 problem along with FAN_FS_ERROR. > > Forgot to say that the test needs to declare .needs_cmds "debugfs". > > In any case, as far as prerequisite to merging FAN_FS_ERROR > your WIP tests certainly suffice. > Please keep your test branch around so we can use it to validate > the kernel patches. > I usually hold off on submitting LTP tests for inclusion until at least -rc3 > after kernel patches have been merged. As requested, I will not send a new version of the test for now. I published them on the following unstable branch: https://gitlab.collabora.com/krisman/ltp -b fan-fs-error The v1, as submitted in this thread is also available at: https://gitlab.collabora.com/krisman/ltp -b fan-fs-error-v1 Thanks, -- Gabriel Krisman Bertazi