Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3634841ybi; Fri, 5 Jul 2019 10:53:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7whGkSf7I0U359M1DMBhFM3QJcZU+F1P5PNuChfuVs/uXzknyfR2EXntJPv8FzXIWkInp X-Received: by 2002:a63:f150:: with SMTP id o16mr6863255pgk.105.1562349184589; Fri, 05 Jul 2019 10:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562349184; cv=none; d=google.com; s=arc-20160816; b=sZKg7r+usgaJVR5DdobXnEKunPez9aOEQrW+27YxXwQwFkFEQWtBnfyiPnIcXBHmBu gWJHiy7oqbBKD19B6slsBsrsxUxLLnrn/+e/cEZy76iudQk3MN3MkUAJZf2lhTZvXQsZ oEfVKBo4XGnjslnXaGLupNzKNvBmsOLhrLBNB/mSSdT5JKyaFp6eF0RPXl84hR3K/fYU UITKYIBDpxsqbvCY0oi7ZPtnlkKZmAH2fFhP3l9x1NFtgvsI7SX0Ky1mIuV4w7PzRfLU AHYEMAk3hpuqdmNvoRXR1Q9T0kd0n8++Y7nNte2vWT6jJdYdYq1qqFkzWmTHu57z3aJC 4GVQ== 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=/uC5M3ierRS+Hhs1DpFJF+UTUe2DRAKcMjsTpsN7uZU=; b=cTaULctbm0cG5yLvammpLdZkXIJtcm9dGgJOmz7ZxnQwFNCm4TFmfGGouZ1qgvgx+X gkpvkYf0wvcSd6XPBFg8VDniN5LueN/taqUr9Y6n2u8yZooCErsNUYvU6GGrI+w7Tczn AmjibhGQtdaSyDovockbOSw85DOwefSewNVbiqco1nzUjAA20qpRVCjWbtF7OP8+qRFb U73H1qWxjdGKSt1EyDBfcSe4iCy6y68E5Adjsu0X+XDnFBzA5HQ0tSarKgMvDCiYaNX5 Fc6nUkzvA8jK6bD5/BoNY4wJ5wQmbhaYhnSUudolFeb28GQTtYRuFf9VtseriBfKmMSq iyVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PIZNiJ1W; 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 h15si9442737pgf.512.2019.07.05.10.52.41; Fri, 05 Jul 2019 10:53:04 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=PIZNiJ1W; 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 S1728080AbfGERjJ (ORCPT + 99 others); Fri, 5 Jul 2019 13:39:09 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53722 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728000AbfGERjJ (ORCPT ); Fri, 5 Jul 2019 13:39:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/uC5M3ierRS+Hhs1DpFJF+UTUe2DRAKcMjsTpsN7uZU=; b=PIZNiJ1WxKKIRw+vM1xmzPDsL sos6egHIMaJUiMNPTIuMXWSQ37rv6LOoI+JVLpTJ8X73yb8qeUREX3Ec7OesnOKF0USoCH3iC+LR0 2w1ENFIGOYQDbVL3vMwOjBlrXLTWp3oKFhTmcv1+O4eQcFIx0zQuGXvJwu05JnBPuZDtvg0MqVG5O FfsrPh6pURk8BqtN/JPBvgNNr3g7r/02ag/RkW/R++nWwo2NJF17XXyJPr472WQ/1o5NySoaF15BR aT9dpouC9xEof94S20lQs3Qa7jeXW5CqJizZIuoo/jU/Rpqa/Qi6EkxlM0HsnldJ6M/RTdSZ2LQH3 0Cmlqc4OA==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hjSAs-0006Q6-3F; Fri, 05 Jul 2019 17:39:06 +0000 Date: Fri, 5 Jul 2019 10:39:06 -0700 From: Matthew Wilcox To: James Bottomley Cc: 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: <20190705173905.GA32320@bombadil.infradead.org> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1562343948.2953.8.camel@HansenPartnership.com> User-Agent: Mutt/1.11.4 (2019-03-13) 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 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.