Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3172537rdh; Mon, 27 Nov 2023 07:57:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7sIwa+IjFguD/cBSTuNX/Xx5DrjwulVIsXVXP0fYWLSdjfru7ESLGliGT8WsBA0ivI+e4 X-Received: by 2002:a17:902:f68e:b0:1cf:9bd1:aaea with SMTP id l14-20020a170902f68e00b001cf9bd1aaeamr14207400plg.11.1701100627363; Mon, 27 Nov 2023 07:57:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701100627; cv=none; d=google.com; s=arc-20160816; b=yVoiMmMivB4zC8CwC6wKvdMtlkVFwJiYzYb9y3JDqLs+yBrTAgqfD5ksPQ5TfyKIlN mUjfnVymKJY+LR+hNi4qCnUcAQcMxQQJXi8mCLE5l7J0imwEvKNU9njtbGsXDSYss3FT yfUOdJ4PRl+O7pcY8kynuL1ffF1qByf+CgfKEEtS30BElpz+xCX6Pwj9VsR207zXf+Os +K/gh3NkgjaFRJUswbYeGgTJNAiaj3dksyUrxsxzm/0372kCBu0HOsQ7BdjJU19u8Vm4 DkmTZZsAHHhQC2CB0qbJOc6C7gP5wbK6/Po867R4dW9y9qw3+qEFuLg3n0mxYVG/w66m UVCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=eIOKD+FY+FEdP4H+POn6mN4+645LcKCDE25yrI69ycU=; fh=Rs7LA2DzDy0nYW9l/f8PlLUcqFd727e+KVytYlvjosk=; b=PcQOfKunAVMXLRRXxt2kVy6z1USOUA5NmjszlWHzvCti/lo19DRvtcQ9j/IHggxU3q QHtuqGWADFF91kqE25rM6MLV1oN4vsnswTM6Cd0TgBooQVHPGXhrvVb78J83LYnzI9V9 q95zzQ7COVaTWqZWPJGqXDjIMyZd6QVbDIqYxHzTGPQgm4odZCrDZ48yhjPyVr5qT1aw wHkglRevpdct9atecyXN7Tf6BFfT7EisfDpmI1g2/H7f2lqBt+o5zkhKQBp9v84KR7F4 JjQhzxIzI6s1QLuB3w/LOp/1d+GN+FEY/fMho6V/DWOfN45frivshtlinJLqGbtuT8yU 13Dg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id i1-20020a170902cf0100b001c9e765e151si10435842plg.116.2023.11.27.07.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:57:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 07BE5805CEB2; Mon, 27 Nov 2023 07:57:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234169AbjK0P4u (ORCPT + 99 others); Mon, 27 Nov 2023 10:56:50 -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) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:57:05 -0800 (PST) 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?