Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3777742ybb; Mon, 6 Apr 2020 15:46:21 -0700 (PDT) X-Google-Smtp-Source: APiQypL0Rq9eCOQolqo/iQ1ATRw2b8ywSU2A1HzzASgpabLLp3XC53sF8LZjjX2cficHWHXvonBW X-Received: by 2002:a05:6830:1dfa:: with SMTP id b26mr18664308otj.13.1586213181337; Mon, 06 Apr 2020 15:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586213181; cv=none; d=google.com; s=arc-20160816; b=0ZFQQGESLcX4D9XXLzAgKd9zapdaYo69KPCg0lE3HBfI1kV5k9EBERUKtfWjoKKq5q lbsjPe9q/nBQPu8Fzfi7xEfxMG6Q4LGI734XOJXjCa4LrDZKs3+pO4iM5uefhjjVYx65 H1owkwfZdO/Mny2YNd99houJCd2Wvd+ZB1y4EC4rgDTtG7sBy/o5Vl1BQ/ZRr9ysdbno QG+g5YO5CcaLBUG4s9dXRHXk3MjcKDKtaIBWtnw7cIC3vU+d40fZn0nXroE0iAzAbMGc QLdKbB3aZE0FonjT+mikS+WA1I4FRCrIaygjo4/K05MWZDkCvwH4wIiydEXgR55f/bmw e60A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:to:from:date; bh=yd0qzzOgRkT3EtqWqbon8K9/EvDEuEFKUDzl0byLqxk=; b=QZWLxIqeNFdcnd6p9M5Ji96T1H7L3wPO2csLl2BMMNjhlIOI5s3Zn9pMQQ9xHE0Coy pPpiwGQArrP+f7PGOh6egkh3GBqeuJpHYIV0UOD+q6RZ2F1G0knonN4PI0UmQCHPh00v XQhj6BZK1zKyHXL2VgGB4E2UqzSc0NKsl0+nd+redm1iuERwBcvtpEiB4j07Zh0PKjJE VXol+7ygZ7cX0QN56ODQpQvWQTR9FoouCeulVaU4JRcqwxxW3e/RW/s/krD+i4mET7/2 hQSD6HKYAJBaJOqjLg7BLm9+3LJTb7MxoJ9nJF8V3UOWl9BxaOW1+xLd1/r06ikFolYG oZ6g== 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 v17si399641ook.62.2020.04.06.15.45.56; Mon, 06 Apr 2020 15:46:21 -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 S1725933AbgDFWpk (ORCPT + 99 others); Mon, 6 Apr 2020 18:45:40 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:57777 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726393AbgDFWpk (ORCPT ); Mon, 6 Apr 2020 18:45:40 -0400 X-Originating-IP: 50.39.163.217 Received: from localhost (50-39-163-217.bvtn.or.frontiernet.net [50.39.163.217]) (Authenticated sender: josh@joshtriplett.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 246B9C0003 for ; Mon, 6 Apr 2020 22:45:37 +0000 (UTC) Date: Mon, 6 Apr 2020 15:45:34 -0700 From: Josh Triplett To: linux-ext4@vger.kernel.org Subject: Use case for EXT4_INODE_HUGE_FILE / EXT4_HUGE_FILE_FL? Message-ID: <20200406224534.GA668050@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org Under what circumstances can an inode ever end up with EXT4_HUGE_FILE_FL set? (Other than in an artificially constructed filesystem.) As far as I can tell, extents don't allow a file to get bigger than 2**32 filesystem blocks (because they store block offsets in an le32), which with the maximum filesystem block size of 65536 would be 2**48 bytes. That's lower than the file size limit that EXT4_HUGE_FILE_FL seems to exist to surpass; even without EXT4_HUGE_FILE_FL, the 48-bit "block" count in the inode would allow a file to have 2**48 512-byte "blocks" in it, or 2**57 bytes. Was EXT4_HUGE_FILE_FL just added for future extensibility, in case a future file storage mechanism allows storing files bigger than 2**32 blocks? How extensively has it been tested? (Related: are there any plans or discussions regarding a future extent format? Not necessarily just for that reason, but there are other limits in the existing extent format, such as the limit of 32768 contiguous blocks in one extent.) Thanks, Josh Triplett