Received: by 2002:a05:7208:3228:b0:82:47:81bb with SMTP id cb40csp2632746rbb; Tue, 16 Apr 2024 07:20:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4b2dvQMGuKSNc0I9TdWIs8+6mP5BJbWsHltU7inuCFrzqxZvof59XkkWkwXWHVpYmT3cVApYhmsG85jxYd0AMsIfVAdKThntK9iPj+g== X-Google-Smtp-Source: AGHT+IFEAPGd1yluS4XV7JUWZi0US7GyPlI8qz0tnI3D2pCqoyh70cPgCvUFuJyySF9rT8Ba1reL X-Received: by 2002:a50:d557:0:b0:568:c6a2:f411 with SMTP id f23-20020a50d557000000b00568c6a2f411mr10647170edj.32.1713277224468; Tue, 16 Apr 2024 07:20:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713277224; cv=pass; d=google.com; s=arc-20160816; b=kFDF/DuD9blKbsE2e32xZ1EuUle7up8E9u2GruFasMo3aT5XgvAHDlhuzoyANpuM6h dKYrU8eeSN2BP5Jbt7xrY3MZdGb6xCLb8U8osaJKgY5S3sx7HIdFKAx9irwTwP0ed83d dT3ig3N7Az/Xwjibo+4Yx4HDsmwtuWwlerBpbpf2mP/hhKXldRLPUUx2W0or64YuMegd Uwumpblo19igGyQCzlAlLtLECkbOJX96hZ485NVmBq2RFhZfPmamBVucX+9N86nKdD/O YZKtjQvXJhtU7rbVDaTx/0Yz84uanP1+mavnKzyXl1VICjyNOalxwb6+KrbU6fNpsHSY wfKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date; bh=cD37T59aEkLC1V37YKhVxgH6MPLClBUqzyZJEc80Wso=; fh=FWKGrpIJ/mVGum51EZF33+ul/ztCAPc8vZwtDDWUm9g=; b=cTcnb7N2tnUn2lcT9VWEE/vE8VZg9O2jgIDrqc6vdb1Ky6WFccOgL/gtNnLGFVWyPw Fu1PBmX3BjbgdIWK3YRt9DzT1iwS9YTBvnpwwsqPvF9Hr7HEyU6rdvvPMfRxl8hHnq+b hKg8uneXtzOnmP08dSy8mpwEgrWkBo6QUsTP5mHzuYRJTVlWCRJ3RUCPozpxkEnsZR6l kZ3/TmYX/8LFUGQvUZKfScM4G+JxDNoOtN2Ld+bn6KcSeFYadmnXw8pbr+TmKww1pWna T2j2t5U/7y5pAIhuGD5iJYMnLKT7O8M7eTVjbchIv+ZwgGqlF8QUBAZt4ZYeraL17fxf HFPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=0pointer.de); spf=pass (google.com: domain of linux-kernel+bounces-146984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146984-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n20-20020a509354000000b0056e2f95e09dsi5686419eda.612.2024.04.16.07.20.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:20:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=0pointer.de); spf=pass (google.com: domain of linux-kernel+bounces-146984-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146984-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3AA7D1F220C4 for ; Tue, 16 Apr 2024 14:20:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E47FA12D75D; Tue, 16 Apr 2024 14:18:22 +0000 (UTC) Received: from gardel.0pointer.net (gardel.0pointer.net [85.214.157.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A335F128805; Tue, 16 Apr 2024 14:18:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.157.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713277102; cv=none; b=FNN1V8w8XeKZQwKx8zy0qZq7WQwX25O6wG7MyyeTFt18+yiBWhmSIG4LPcbKekleSdlmezcgBua7o98GdxrZPMda1RSripbL4sP1tHCK+CWqTo7ZqPWjPUbrhFoOevwDaauBnRfMS82PPdWiNfrR9/ydz9+cYy1/2n6v9/Olsk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713277102; c=relaxed/simple; bh=cD37T59aEkLC1V37YKhVxgH6MPLClBUqzyZJEc80Wso=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V+g3ui6X6nXm4htNdE6BV7V55HSdmmbtP6dwwlTPGIBHW2ysqEMMXwloxZqZSJz+aFEOUa5xkQKKi4uk+EemraQpyW2yL/x6mG746P3K0Bo33HyJldmEljpLzfrMkJ9sCQ7kXaAeZHVo4eS4qizxLYaPv0oVOhOH3WHVV3cmuSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0pointer.de; spf=pass smtp.mailfrom=0pointer.de; arc=none smtp.client-ip=85.214.157.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0pointer.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0pointer.de Received: from gardel-login.0pointer.net (gardel-mail [IPv6:2a01:238:43ed:c300:10c3:bcf3:3266:da74]) by gardel.0pointer.net (Postfix) with ESMTP id 66AE3E803C0; Tue, 16 Apr 2024 16:18:15 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 1B2A81602F7; Tue, 16 Apr 2024 16:18:15 +0200 (CEST) Date: Tue, 16 Apr 2024 16:18:14 +0200 From: Lennart Poettering To: Jens Axboe Cc: Christoph Hellwig , Keith Busch , Linux regressions mailing list , linux-block@vger.kernel.org, LKML Subject: Re: API break, sysfs "capability" file Message-ID: References: <54e3c969-3ee8-40d8-91d9-9b9402001d27@leemhuis.info> <20240409141531.GB21514@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Di, 09.04.24 09:17, Jens Axboe (axboe@kernel.dk) wrote: > On 4/9/24 8:15 AM, Christoph Hellwig wrote: > > On Tue, Apr 09, 2024 at 10:19:09AM +0200, Lennart Poettering wrote: > >> All I am looking for is a very simple test that returns me a boolean: > >> is there kernel-level partition scanning enabled on this device or > >> not. > > > > And we can add a trivial sysfs attribute for that. > > And I think we should. I don't know what was being smoked adding a sysfs > interface that exposed internal flag values - and honestly what was > being smoked to rely on that, but I think it's fair to say that the > majority of the fuckup here is on the kernel side. Yeah, it's a shitty interface, the kernel is rich in that. But it was excessively well documented, better in fact than almost all other kernel interfaces: → https://www.kernel.org/doc/html/v5.16/block/capability.html ← If you document something on so much detail in the API docs, how do you expect this *not* to be relied on by userspace. Lennart