From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02EB8C433F5 for ; Wed, 5 Jan 2022 02:20:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236035AbiAECUx (ORCPT ); Tue, 4 Jan 2022 21:20:53 -0500 Received: from drax.kayaks.hungrycats.org ([174.142.148.226]:39654 "EHLO drax.kayaks.hungrycats.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234474AbiAECUx (ORCPT ); Tue, 4 Jan 2022 21:20:53 -0500 Received: by drax.kayaks.hungrycats.org (Postfix, from userid 1002) id 8054E13ACBF; Tue, 4 Jan 2022 21:20:45 -0500 (EST) Date: Tue, 4 Jan 2022 21:20:16 -0500 From: Zygo Blaxell To: Eric Levy Cc: "linux-btrfs@vger.kernel.org" Subject: Re: "hardware-assisted zeroing" Message-ID: References: <2193547e-d88e-9f53-6777-793b58130afd@gmx.com> <18d02df50fc7f9c63ff07b5433a445d911538be6.camel@ericlevy.name> <9dbeb4327f5e42f0fd45ee4a348bff3f34c6e3f9.camel@ericlevy.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9dbeb4327f5e42f0fd45ee4a348bff3f34c6e3f9.camel@ericlevy.name> Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Tue, Jan 04, 2022 at 08:37:54PM -0500, Eric Levy wrote: > On Tue, 2022-01-04 at 20:33 -0500, Zygo Blaxell wrote: > > > That's up to the host filesystem implementation. ZNS devices require > > filesystems that speak ZNS protocol. They don't implement a > > traditional > > LBA-oriented interface (or if they do, they provide a separate > > logical > > device interface for that). > > The entire file system must fit on one device, even the allocation > data. How would the host find the allocation information, if its > location has been remapped? For ZBD devices, a linear read of a superblock log zone can provide the root pointer for the filesystem. The rest of the trees arise from that root. ZNS filesystems can do something similar. The location of the data is not entirely unknown. It is written somewhere within the zone designated by the filesystem--only the bottom N bits are filled in by the device.