Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp23073lqb; Tue, 16 Apr 2024 07:50:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUt/QzwKiK2XnXrAfS58ICcMjUFvkvcV2RQYKQdmii9AYr3ZiAQ2vCvyUNAJX1fsBC7v9RqB5RUY+uas8fcWn/Sy54hGAOi+JaN9DZX1Q== X-Google-Smtp-Source: AGHT+IFuc/JdyHsaNe1X+m1TNtOgUMulbgQfrkzQ2EZnoQ+QETFbWn2YEx0SHFTbvBgX2CfIfVf+ X-Received: by 2002:a05:6a20:bf1a:b0:1a7:7d2f:6c01 with SMTP id gc26-20020a056a20bf1a00b001a77d2f6c01mr12080787pzb.48.1713279044341; Tue, 16 Apr 2024 07:50:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713279044; cv=pass; d=google.com; s=arc-20160816; b=bXJakf03aCF9kP1eswVD4lS2RdgT96JeaYrI/DZPmPrx6T6asdWcYNBCEtQNpsXJiD FPi3ZG2IaK+elYcSw9kEue0ZWGJ7xbEQzKVJFmtP90uSHOW9l/zuyhPyb5Synte3VhU6 l1sjB2S0PkROmJRRH1gbU9Ja6zPRYZQRKNZMIKE056y8k2K3S/B923ckGnxQk/EI1uq0 7RBBuSOYkt2d5EQSjypgmFKwUx0NWmMcAyO5bCGa6SM6HsY6U9LazIDoQMZ6gGJ6UolJ yx5mr8W6vhMhkKBVJDVbq2P+NgBFQw0MASQKdPEY0x21jYHW9Cv+2ExLqGW+GUawwfCu 4w6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=f2fMNvEI24QOeRYU2Q7J/gXsOX3YqVKsrm8shQ/4hw8=; fh=x9bx9KtKG1+8G5dDotkc6edrJi4g01YaINZNTCT71Ac=; b=faoBcknK3ci5CzkrFHkHssSVvh6S3NZWqtfriOWM/s4Drf9iVTiyx85jFesgaEKJo5 mGqErpwZc5tD7pUkpFQ1AGMioRm87ALeQebfW+Cx9MQSSAaeiFXn0JrTEejw2Wd59q12 0O6VU/LE3PzxR3Ia98eIqzgYpTAO0WLGK7JZIxfHRw8jTSFAsfgPwHx1TftthIvmqe59 BjRFgye1NHyC/PVyes5OKuCFsB904pUVOUJHdVwgwLXvks/DXXXSThiTk7lLpT4SoU1K SCGUnpKWtu0SeRvzQhJaU3COk0PYodxdr+geIiMNr6IXoGwljHEFqi5/Inso83SWWs01 FZIw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b="f/jiEdZ+"; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-147003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147003-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t28-20020a63225c000000b005e438e94d31si9695503pgm.385.2024.04.16.07.50.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 07:50:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b="f/jiEdZ+"; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-147003-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147003-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 56CDFB21962 for ; Tue, 16 Apr 2024 14:26:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E02FE12FF72; Tue, 16 Apr 2024 14:22:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="f/jiEdZ+" Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3778F12C54B for ; Tue, 16 Apr 2024 14:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713277378; cv=none; b=L0i9YNWCmbLHpb+BNIPK0e15QxNEsAuqNWu2J/dIxQHCZKzh0Mq/LVDX/8ibdNUxBkCSBlbv3SbSJ8500C9XzBKqENwngzZcB7ifkORjGhUe4nT1blK2ClUzyBVoSqLdPo5hziuksAhIBi+IyU+6b2rxXHSXEKL2gp8luyK8CDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713277378; c=relaxed/simple; bh=KkhLAavCbkxsrMJ/g+XwkIEHN5YZSrFkpEyCXUbE+yw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eWE2nzZ1ESzx8xxoCmjy68EqHB7Pp1BaODvLkyWSOrxed2oPeIgvqm2PETx1PGa0hKq433DPXn8YGCvdMpmLhDzuicS67Ny6Ky7r6sYoveXgtK8/9L3SWjgUyxv/qRcsekCkHLOgfSCU/EWg6bUVhA87+o8WtYAnLy28gN99cf0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=f/jiEdZ+; arc=none smtp.client-ip=209.85.166.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-7d6b362115eso71775839f.0 for ; Tue, 16 Apr 2024 07:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1713277375; x=1713882175; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=f2fMNvEI24QOeRYU2Q7J/gXsOX3YqVKsrm8shQ/4hw8=; b=f/jiEdZ+puxc2vACOmS4yHpNeRWkI3dQKzuHhOJ2Jm4NtOW0nZnQEL1lpRX0w+U7Lw Y53F6Xsx+Tfqu+B9B+ooeOqUXGWeDkb7vw4o8hlJNQ9sJjj4izUqJCleldgaN/EN+6rs AXeYUqSIb7zRWPMygyCD2UZ2STWah8pJjpmHOODYVqxkQDnSxrtDr77gsYjRFNUdtdFK 015mqTE0d8V7vc4EL9iXMpwrTAw8HzwH43XyLqolx1nAIv4eu66vIt4swyujee/K7MNr EC3rKLEM/mdxK/tZOLTlgAiZFr68CEiVx9uAZvzzmCeMZX/UKUBn2P/95uycq0i+4O7v r/xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713277375; x=1713882175; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f2fMNvEI24QOeRYU2Q7J/gXsOX3YqVKsrm8shQ/4hw8=; b=Nnl7P8qk2mMUJ0GbFP9THDd90xRyf2gheKE7Vu45EmVWjjeWazIjpMiFH0YbTJxTFx 1fGJeGAS09SemEq+a7rf8WO8A3jRO7yQ8fu84SwdhtERphaTa2r3249LebNL75XJazGi +SfBAV9Q8w2mk3QVFk0Edzk/Bhaghvlv/5seynDbMPRCu8vCQn7iqwfYW4BLEtnRz8ay jbAGVDj8NC5Bz69/fb4/OhXeoYiZiQXRLOcuvXWq8kZwE/znlCXgzBjwzcp1UVQbrCae PSlTc3V/E4sTiKluJj9ycj/hxfLX3YNkhTpnAnTY0nDHUZxnKIEGWFZiHl2poW736VEU nFxg== X-Forwarded-Encrypted: i=1; AJvYcCV2bFxO4oevBU87cOxBEU0HDgptvJbK3Y3zrdxQDQKk4+bHxBMJx6pjCDN0c0QrRCpcUSb1/aM6pSetlmcg8ADRMdNjTWrwMED7+jkT X-Gm-Message-State: AOJu0YwDqKiHnF8Yqyaq2jSDvKfondutoXE3RudUGgc9LUDeRf8md8UR tk3SIWb23ay85ucfYeV7Bfej8ydvB8W5VNilk3bhZ+y8MwT+yqTAWSKHTGL6UyU= X-Received: by 2002:a05:6602:4ed7:b0:7d5:ddc8:504d with SMTP id gk23-20020a0566024ed700b007d5ddc8504dmr12062089iob.0.1713277375372; Tue, 16 Apr 2024 07:22:55 -0700 (PDT) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id b9-20020a05660214c900b007d95d6ef5c0sm1671531iow.9.2024.04.16.07.22.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Apr 2024 07:22:54 -0700 (PDT) Message-ID: Date: Tue, 16 Apr 2024 08:22:54 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: API break, sysfs "capability" file Content-Language: en-US To: Lennart Poettering Cc: Christoph Hellwig , Keith Busch , Linux regressions mailing list , linux-block@vger.kernel.org, LKML References: <54e3c969-3ee8-40d8-91d9-9b9402001d27@leemhuis.info> <20240409141531.GB21514@lst.de> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 4/16/24 8:18 AM, Lennart Poettering wrote: > 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. This is _internal_ documentation, not user ABI documentation. The fact that it's talking about internal flag values should make that clear, though I can definitely see how that's just badly exposed along with other things that document things that users/admins could care about. -- Jens Axboe