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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF6ABC433E0 for ; Tue, 16 Jun 2020 13:47:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D89D920A8B for ; Tue, 16 Jun 2020 13:47:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728899AbgFPNrp (ORCPT ); Tue, 16 Jun 2020 09:47:45 -0400 Received: from mx2.suse.de ([195.135.220.15]:51888 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbgFPNro (ORCPT ); Tue, 16 Jun 2020 09:47:44 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id E196FAD25; Tue, 16 Jun 2020 13:47:46 +0000 (UTC) Date: Tue, 16 Jun 2020 15:47:41 +0200 From: Daniel Wagner To: Keith Busch Cc: linux-nvme@lists.infradead.org, linux-block@vger.kernel.org, Jens Axboe , Damien Le Moal , Christoph Hellwig , Matias =?utf-8?B?QmrDuHJsaW5n?= , Sagi Grimberg Subject: Re: [PATCH 1/5] block: add capacity field to zone descriptors Message-ID: <20200616134741.zvs55r6pga5w2pvo@beryllium.lan> References: <20200615233424.13458-1-keith.busch@wdc.com> <20200615233424.13458-2-keith.busch@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200615233424.13458-2-keith.busch@wdc.com> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Tue, Jun 16, 2020 at 08:34:20AM +0900, Keith Busch wrote: > From: Matias Bjørling > > In the zoned storage model, the sectors within a zone are typically all > writeable. With the introduction of the Zoned Namespace (ZNS) Command > Set in the NVM Express organization, the model was extended to have a > specific writeable capacity. > > Extend the zone descriptor data structure with a zone capacity field to > indicate to the user how many sectors in a zone are writeable. > > Introduce backward compatibility in the zone report ioctl by extending > the zone report header data structure with a flags field to indicate if > the capacity field is available. > > Signed-off-by: Matias Bjørling Reviewed-by: Daniel Wagner