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 C27FCC4167B for ; Mon, 27 Nov 2023 15:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234175AbjK0P4v (ORCPT ); Mon, 27 Nov 2023 10:56:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234093AbjK0P4u (ORCPT ); Mon, 27 Nov 2023 10:56:50 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC18CBE for ; Mon, 27 Nov 2023 07:56:52 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 3DA8067373; Mon, 27 Nov 2023 16:56:49 +0100 (CET) Date: Mon, 27 Nov 2023 16:56:49 +0100 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Daniel Wagner , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Sagi Grimberg , Hannes Reinecke Subject: Re: [RFC v1] nvme: add cse, ds, ms, nsze and nuse to sysfs Message-ID: <20231127155649.GA1403@lst.de> References: <20231127103208.25748-1-dwagner@suse.de> <20231127141857.GA25833@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 27, 2023 at 08:44:52AM -0700, Keith Busch wrote: > > I'd probably spell out metadata_size, or probably even better > > metadata_bytes to match the unit postfixes elsewhere in the block code. > > Should this even be an nvme specific attribute? I thought we should have > blk-integrity.c report its 'tuple_size' attribute instead. That should > work as long as we're not dealing with extended metadata at least, but > that's kind of a special format that doesn't have block layer support. Reporting the tuple size is a good idea. But is that enough for the existing nvme-cli use case?