From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89D841B5BA for ; Mon, 15 Jan 2024 23:08:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="K/nnx8fV" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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; bh=Su7AgvzzQv/od8BSfTTf7y3bhWF/Y1PzmFUYIBjyfZY=; b=K/nnx8fV6XpuGQsH4SMUNAZXVP hhTgy/+SumHaaKO8zOXnqg0ZnF53K+A3QtOzX+18ohjW2UkX20mryXYU2k2PSLJo2BGOnh/P/1wR6 zj+CKiVAU5NoeoFdH4WK3AyTThXagQxBwI9czfACjhTHI28EIDDXHLwBjyeq+v1PRQAv3gQvvFgTN YVrqTAkt1qBHFpX0o7FDf0mBZcqpfMY5ZS1G3SuGB/rio0dxw5gYt32mZysjuxNcY5l3RcomyDsbH GKfoPBsR4tDeyKpObLths77RJQaQyTjg6yaMmbNkIZTglRIf09AQusyjc+imFG6ipylGRhRXqn9BH SCrKFLYg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rPW4T-00B7CN-3X; Mon, 15 Jan 2024 23:08:45 +0000 Date: Mon, 15 Jan 2024 23:08:45 +0000 From: Matthew Wilcox To: Al Viro Cc: Bruno Haible , Evgeniy Dushistov , linux-fsdevel@vger.kernel.org Subject: Re: ufs filesystem cannot mount NetBSD/arm64 partition Message-ID: References: <4014963.3daJWjYHZt@nimes> <20240115222220.GH1674809@ZenIV> <20240115223300.GI1674809@ZenIV> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240115223300.GI1674809@ZenIV> On Mon, Jan 15, 2024 at 10:33:00PM +0000, Al Viro wrote: > On Mon, Jan 15, 2024 at 10:22:20PM +0000, Al Viro wrote: > > On Mon, Jan 15, 2024 at 11:05:51PM +0100, Bruno Haible wrote: > > > > > Whereas this partition can be mounted fine on FreeBSD, NetBSD, OpenBSD. > > > FreeBSD 11: > > > # mount -r -t ufs /dev/ada1s2 /mnt > > > NetBSD 9.3: > > > # mount -r -t ffs /dev/wd1a /mnt > > > OpenBSD 7.4: > > > # mount -r -t ffs /dev/wd1j /mnt > > > > > > The source code line which emits the > > > ufs: ufs_fill_super(): fragment size 8192 is too large > > > error is obviously linux/fs/ufs/super.c:1083. > > > > Lovely... Does it really have 8Kb fragments? That would be painful > > to deal with - a plenty of places in there assume that fragment fits > > into a page... Wouldn't surprise me if netbsd/arm64 had decided to go with 64kB PAGE_SIZE and 8kB fragments ... > FWIW, theoretically it might be possible to make that comparison with > PAGE_SIZE instead of 4096 and require 16K or 64K pages for the kernel > in question; that ought to work, modulo bugs in completely untested > cases ;-/ > > Support with 4K pages is a different story - that would take much > more surgery in fs/ufs. Possibly not too much more. With large folios, we're most of the way to being able to support this. If there's real interest, we can look at supporting large folios in UFS.