Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2024847ybg; Thu, 24 Oct 2019 03:45:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsy9YYk85Iszwk1K1SZFEXo2IKuU3NJMDILBpXmYMM9RAsk0IAt8tjTnvXdveNSO09+wg+ X-Received: by 2002:a50:f7cc:: with SMTP id i12mr30473171edn.81.1571913917886; Thu, 24 Oct 2019 03:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571913917; cv=none; d=google.com; s=arc-20160816; b=e20ENPhp8526L0A2lb2MObrqhha+394fQXZXYqvaFlEopiV10hxCYWWmAi1o6aoEua kFh98Pm0OEMFDC1CqNq7q2OBQTN2v5ZbUbMPpjcG3WdRlVZDUzJ6O4UbLA1gQTkrGIG6 xVFtUHSFAb+JZdS0ygUwh2KFb4HYtqe1s676I7qxqIdcwEW0dAB3lanHPKk/S47dhETh XGNZUijqv7oxXzt3RZiIb3Zi7iTV6+UuZPiJEpbe1oTPSumOj1phJIUlE7d0H+rFrymM afSNGN/wvvTH7CeDJgGC6YZ6YZHuDz6l6Fx7SkRCPOEdPaQfKEljBFlGUJbZR18Z1SjH fHGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UPyTdKjZPc5MIE6WmY6UjPIAduVQ6f+yOIRZXzM9fVA=; b=sK1jD9/38G2K9jbjux4UfQ/adHbuvoRmRF441w8eopGvN8Sx0MWX8VIWOD0TG8MJPU pvzyK03mHOWDhITulqdape2I3PFlpSb+LxSeX8qpPHB2xVrwaR3tqAa/AEH6++yMOWVk Ost8Ei0gK1u7ne3W24KCuAfarTzKBfUXFsw1KRsJSn2rAHfPqfK2xVLefbma4CPoHOGw p10YgxO/8JTN7lhXQ2okdda1YAHVwAi9UdvlHg5gsjXkm+EpSU0yZjwROdNy65gJn9No Fh9iXHvnmoXO5k6pIboYCuqt3GZ5u52QHW3hNEV3zSQDP3QNx8LZAl+9IdDu6hWkujsU uCuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si16656730eds.389.2019.10.24.03.44.46; Thu, 24 Oct 2019 03:45:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392722AbfJWW6g (ORCPT + 99 others); Wed, 23 Oct 2019 18:58:36 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:34567 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2392721AbfJWW6g (ORCPT ); Wed, 23 Oct 2019 18:58:36 -0400 Received: from callcc.thunk.org (guestnat-104-133-0-98.corp.google.com [104.133.0.98] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id x9NMwPcW028147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 23 Oct 2019 18:58:26 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id CB9B4420456; Wed, 23 Oct 2019 18:58:24 -0400 (EDT) Date: Wed, 23 Oct 2019 18:58:24 -0400 From: "Theodore Y. Ts'o" To: Petr Vorel Cc: Andreas Dilger , Jan Kara , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Cyril Hrubis , Yong Sun Subject: Re: "New" ext4 features tests in LTP Message-ID: <20191023225824.GB7630@mit.edu> References: <20191023155846.GA28604@dell5510> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191023155846.GA28604@dell5510> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Oct 23, 2019 at 05:58:46PM +0200, Petr Vorel wrote: > ext4-inode-version [4] > ------------------ > Directory containing the shell script which is used to test inode version field > on disk of ext4. This is basically testing whether or not i_version gets incremented after various file system operations. There's some checks about whether i_version is 32 bit or 64 bit based on the inode size, which seems a bit pointless, and also checking whether the file system can be mounted as ext3, which is even more pointless. The i_version increment check can be done in a much more general (file systme independant) way by using the FS_IOC_GETVERSION ioctl (there is also an FS_IOC_SETVERSION). > ext4-journal-checksum [5] > --------------------- > Directory containing the shell script which is used to test journal checksumming > of ext4. This is basically checking whether you can mount an ext4 file system with the journal checksum options. Seems kinda pointless to me. I'm guessing that perhaps the test authors were trying to hit some artificial code coverage metric, perhaps? > ext4-nsec-timestamps [6] > -------------------- > Directory containing the shell script which is used to test nanosec timestamps > of ext4. This basically tests that the file system supports nanosecond timestamps, with a 0.3% false positive failure rate. Again, why? > ext4-online-defrag [7] > ------------------ > Directory containing the shell script which is used to test online defrag > feature of ext4. We already have tests of online defrag in xfstests: ext4/301, ext4/302, ext4/303, and ext4/304. And they do a much better job of stress testing the defrag code than the very simple "let's tickle the code paths to hit the code coverage metric" style of testing in this script. > ext4-persist-prealloc [8] > --------------------- > Directory containing the shell script which is used to test persist prealloc > feature of ext4. We have lots and lots of fallocate tests in xfstests. what is in ltp is just "let's run fallocate in the happy path, without any stress tests" style test. There's a reason why a lot of people really like to hate on pointed-haired managers who push for code coverage metrics.... > ext4-subdir-limit [9] > ----------------- > Directory containing the shell script which is used to test subdirectory limit > of ext4. According to the kernel documentation, we create more than 32000 > subdirectorys on the ext4 filesystem. This is a valid test, although it's not what I would call a "high value" test. (As in, it's testing maybe a total of four simple lines of code that are highly unlikely to fail.) > ext4-uninit-groups [10] > ------------------ > Directory containing the shell script which is used to test uninitialized groups > feature of ext4. The uninitialized block group feature is enabled by default for ext4 these days, and we do extensive testing with it enabled. I also test in ext3 compatibility mode, which tests the "not unitialized groups case". The oldalloc mount option is a no-op these days, so the fact that the ltp test tries to test orlov versus oldalloc is pointless. Cheers, - Ted