Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4340763rwb; Mon, 16 Jan 2023 22:40:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXseMij1szb22vCTZyOXvwgut8twKdcOxJvodiVPSnB0uuXrNbuvoeiJsBFAb+RyAq6yAmu/ X-Received: by 2002:a17:90b:80f:b0:220:bad8:b4e7 with SMTP id bk15-20020a17090b080f00b00220bad8b4e7mr2145723pjb.7.1673937657522; Mon, 16 Jan 2023 22:40:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673937657; cv=none; d=google.com; s=arc-20160816; b=FKv+wgauu9vrfjKee6JkxYL4WovtGZu18FHS/zjYqFI/VjKnUzi24K3A98M7+l5Yad kJ0RqaJTZ+eDghSnTPArdAj+8g1qcNznsF0ghy3iEJFzLv6b70HBHTl34QK8z/uMO3Ih WrE4I4YGHqEFF8Carz+eqHmYkwNzhsi8GjTFLCqBWEHrYkIXF2ykTmZVxq0jerdHkXTi 2xh7aPHGO369PZajzhcQ70JHSfPe9fIGnZ3Sx/lE5uEtVw7AluoPa255jaS2sSbHt+Po NsiX7zAI3a+EYK/j1l5CAhB/KY5uqVkpBCOLwkUJ+m19L790HvBnhvvIkfk8SeMevgTf DU1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i95Bj8Tr9xoekMAaCSBax6WW3QQZv9faY/6wdPnW11s=; b=qT0pXqLAQnJIWHzQJxcTNx1kC+CFMi7HNIExKFFZWZJjNodYEn8iCM9Q2NOplDYkXY 9ENxEadpAe54f2rVJ2XAvWBhNrsHm3V281SXGliESinXYgbKIT9+C6x+ru+st7lczfVl C//3mXbVBN5dwDs1MhznskGYKR1NkuuIrv/Abw+A3x4GeEyoiJrcI8zeskhZwgvv3gJr cmzsmDT1cIDT2hbPW61hFTTkXqorGZcIqozCS3S9CM0h7zANtXE0KnYVdSpatLCCRDpg KcoanZckNVPvN53/b38b7kJFtBcXk3ftib0Ni2zdnoRJodLnRoEpOccUhUwAkrIV6sN0 5xRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Smxr3cdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pq8-20020a17090b3d8800b00225cb856740si12846559pjb.59.2023.01.16.22.40.51; Mon, 16 Jan 2023 22:40:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Smxr3cdF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235635AbjAQGFN (ORCPT + 50 others); Tue, 17 Jan 2023 01:05:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235612AbjAQGFH (ORCPT ); Tue, 17 Jan 2023 01:05:07 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F7A91F92D; Mon, 16 Jan 2023 22:05:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; 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=i95Bj8Tr9xoekMAaCSBax6WW3QQZv9faY/6wdPnW11s=; b=Smxr3cdFUm9ViiON7uzeg4qGsE BdfsUYfz3/shimYz3oS8mWvTEJhlNzv+h24NFO+Cz/ytdgRQjE9E9K0gFSAs1FnmnjTp/l9dV1T31 2R75ugt6CBbP5+bJ7Fh/5EpXTTFH1yNzqmgc/HEPIgw44wlmwfMg9WiCK6msTORG/nOuq8V8fEUn/ xZKt7zPfODx9iZjMNs0daJWmW2WKh+M14X81BF1Y8q5EvMPuPLCARQYYCSLvmjD/fyw3ZvEpqB0u2 hqoxanDurkJH+yxesKMWLhLw43wRWUGvq0IFJ1ZQSC4+pKHzkycYN2ASc7KE5WnvWaQfaCXok+PUk PLStB4gA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHf5g-00D26l-Ai; Tue, 17 Jan 2023 06:05:00 +0000 Date: Mon, 16 Jan 2023 22:05:00 -0800 From: Christoph Hellwig To: Fabio Fantoni Cc: Christoph Hellwig , corbet@lwn.net, axboe@kernel.dk, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Sergei Shtepa Subject: Re: [PATCH v2] documentation: fix Generic Block Device Capability Message-ID: References: <20230110132104.12499-1-fantonifabio@tiscali.it> <62a18c7d-93d9-657e-48fd-1af06d6d1d9e@tiscali.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62a18c7d-93d9-657e-48fd-1af06d6d1d9e@tiscali.it> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 16, 2023 at 07:14:41PM +0100, Fabio Fantoni wrote: > Il 16/01/2023 18:53, Christoph Hellwig ha scritto: > > On Tue, Jan 10, 2023 at 02:21:04PM +0100, Fabio Fantoni wrote: > > > - * ``GENHD_FL_REMOVABLE``: indicates that the block device gives access to > > > + * ``GENHD_FL_REMOVABLE`` (0x01): indicates that the block device gives access to > > The numberic values really do not belong into the documentation. They > > are just implementation details. > > > Thanks for reply, if values are not into the documentation see from > /sys/block//capability output what flags are enabled will require look > to source code of include/linux/blkdev.h and > Documentation/block/capability.rst will be less useful, or I'm wrong? Urgg. I think this file is generally just a bad idea. The flags are kernel internal and not isolated from userspace. It seems nothing broke with the various renumbering lately, but we need to isolate it from the implementation details. And if it really should be a user API we need a text version of it.