Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3821148ybi; Fri, 5 Jul 2019 14:52:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqweeyycsnH67SeAzHj3TxIJg8HpsC+dE1+jDdNDu45i0wJzQ2TjaGkLUswpM6ZTmGvSqE3l X-Received: by 2002:a17:90a:a407:: with SMTP id y7mr8049528pjp.97.1562363565774; Fri, 05 Jul 2019 14:52:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562363565; cv=none; d=google.com; s=arc-20160816; b=ElBB218mLncjJSu9TKqWfjnGh4mFP1DgImP1LVqPX0NfUZrqtv+NtygMBV2sKB0i0x 0Vwie/C9PZ14SnVa4jfNozu36shuT24q2X8oaIV5v2a+h2lPnIc6u7ptMHtNhgiWQth+ l2zfnzhzI+LHa+fDGoBBxvuMo5AJyX+K0SLImxtueKDm6VFitwP9jSJ1LnFwg8j4wcTI JYp8Mf2Fiv6UssbDRTdVjkU8/pYbtZEuPz0YqCCouZjcmsh0v3K7BNR1VwIMp01Le+La KKM1EbfGtHw5/2EF1fsfG1ZxjG52Cq0wn3Y6ZiMoK4Xd4J529NR4ccriD8xRHJjM/u0y jUwg== 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:dkim-signature; bh=N0Xj0V7McXFWZJIEb4PS0gMpz9E6oJverdvCiNgsT24=; b=LgklM1Fs7/uc1bWsmHlZfl3E8Jvp7pUJpDwbfoG6dTw5kc/QE040BiAWjNrtcn5lJL GBHiRWrTfJazRSKTrQ7lNyweJpG3QRjpDrYNoFl8Gf7UYw1kC6rZYtoe28qn0Q50GDTI tlJ+P654ebPGQjXP/v6jNqvEe4kN5lsvcNfXkBV7vlMXcHNFWZoCrvdaxL7MngTrjTQX vdomCFlVkgXXqyIE2TAspuqFJ1dylGQgd+uZaji4q4Sp8rBKfk2LOjoD78qai8gXaPBs 8qwdokRfwD8sq98wuybds0MqtMjIEugRasYbtQfFLn0MLBoWhXyeRPZ68cN/KlNe7AlI fajg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=1fHUiSCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si10191359pgp.424.2019.07.05.14.52.25; Fri, 05 Jul 2019 14:52:45 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=1fHUiSCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728207AbfGEVnU (ORCPT + 99 others); Fri, 5 Jul 2019 17:43:20 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:59946 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbfGEVnU (ORCPT ); Fri, 5 Jul 2019 17:43:20 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x65LdCZ4047322; Fri, 5 Jul 2019 21:43:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=N0Xj0V7McXFWZJIEb4PS0gMpz9E6oJverdvCiNgsT24=; b=1fHUiSCgQ3/Oo4+qpeQZhYdPyQESNPPEJgin9+woFwEllfl3Y8W2NiWeY8CRSH7GDhjR 9FMmzL4Tnwxxt7WYreRInEZBUqf28NtDmK6HinaBkuJcqSKrHud/Hk8xqKJhryFu93as xOR6YmYnsOJcHpUoUGbxmmhYWykth6++sioTy3U9HzVveds09MKxOi0sLqdtlh8Lftba 9UXVZ3sh0AwvC6h6RWzR1kin015MUAKl+fRZZv94LR5K5AVOIlLMX5BLAgUc+caDuVw/ rqQfHYbkBmp0FirdYxDi7Dgasgwbu6YoADadt+yQ4f9l6wQEe5R1/O6kSov6S5zfouz2 qw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 2te5tc4mb9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 Jul 2019 21:43:02 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x65LbRX8036346; Fri, 5 Jul 2019 21:41:02 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 2th5qmxfqs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 05 Jul 2019 21:41:02 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x65LexAA014956; Fri, 5 Jul 2019 21:40:59 GMT Received: from localhost (/10.159.235.234) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 05 Jul 2019 14:40:59 -0700 Date: Fri, 5 Jul 2019 14:40:58 -0700 From: "Darrick J. Wong" To: James Bottomley Cc: Matthew Wilcox , "Theodore Ts'o" , linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Parisc List Subject: Re: Question about ext4 testing: need to produce a high depth extent tree to verify mapping code Message-ID: <20190705214058.GD5161@magnolia> References: <1562021070.2762.36.camel@HansenPartnership.com> <20190702002355.GB3315@mit.edu> <1562028814.2762.50.camel@HansenPartnership.com> <20190702173301.GA3032@mit.edu> <1562095894.3321.52.camel@HansenPartnership.com> <20190702203937.GG3032@mit.edu> <1562343948.2953.8.camel@HansenPartnership.com> <20190705173905.GA32320@bombadil.infradead.org> <1562352542.2953.10.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1562352542.2953.10.camel@HansenPartnership.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9309 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907050274 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9309 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907050274 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Fri, Jul 05, 2019 at 11:49:02AM -0700, James Bottomley wrote: > On Fri, 2019-07-05 at 10:39 -0700, Matthew Wilcox wrote: > > On Fri, Jul 05, 2019 at 09:25:48AM -0700, James Bottomley wrote: > > > Now the problem: I'd like to do some testing with high depth extent > > > trees to make sure I got this right, but the files we load at boot > > > are ~20MB in size and I'm having a hard time fragmenting the > > > filesystem enough to produce a reasonable extent (I've basically > > > only got to a two level tree with two entries at the top). Is > > > there an easy way of producing a high depth extent tree for a 20MB > > > file? > > > > Create a series of 4kB files numbered sequentially, each 4kB in size > > until you fill the partition. Delete the even numbered ones. Create > > a 20MB file. > > Well, I know *how* to do it ... I was just hoping, in the interests of > creative laziness, that someone else had produced a script for this > before I had to ... particularly one which leaves more randomized gaps. If you don't care about the contents of the file you could just build src/punch-alternating.c from xfstests and use it to turn your 20M file into holy cheese. (Granted if you actually need 5,120 extents then you probably ought to make it a 40M file and /then/ run it through the cheese grater....) --D > James >