Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1641096lqe; Mon, 8 Apr 2024 15:41:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxOcef+DMtRbwj/O+agQuOHwS9jGRgs1ZgD3M4r4nij5J1xOSiH9L0YUW+EVJQehLf1Oe2aPsYfJk8JJDSFi1JH7Kw0zOOi553FFKlAw== X-Google-Smtp-Source: AGHT+IEAeBEglmiOCF8vjGg1SntSeZ6EdhTlAxsUC4E/O3Iw/7gEkQRDtnIMmyI0oAgba3W3OoAx X-Received: by 2002:a05:6808:23c2:b0:3c5:ecb5:4d8 with SMTP id bq2-20020a05680823c200b003c5ecb504d8mr8229512oib.23.1712616090328; Mon, 08 Apr 2024 15:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712616090; cv=pass; d=google.com; s=arc-20160816; b=xBo7ddVBsTVuMnrr2GXV37tw/0KdCFnvmAX6uE7+c3d5R0FFgfUsOs8XtsV5yNoO/P SaCM9cJLhBKq00VFj8jUM9ruvJj8KVutLksr2AI7cjXm2MQfKvWJVgjwvKCCseO+weox sW6xIyx+EyE+U0QQzjyLbt4g3MxYBFdsL8LDKeFPuoYBa8oTUtWvZzJaSnY8PJFZACiF CPNPy7bHvH5l01aEX//rA4RLB5Q3u3zORKtXiKz3mM10vnddICPLjt5BTFkOZUcaUtr+ T2JnBB74csjpAwu3xBsW+D8c22HUD7CStb4nkuzvOObM5FhVh8Zuu5PUDOqhO0N6YIq4 p8BA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uq+iuZWFJeFjkBxY9LAE5aFyS6mStouA09bvmO1Xduk=; fh=rF91QUdWyW2wzHn7/3CmiT2hhzO9leUYveZbviN8P08=; b=iWM0GcAdQ8ko83QXvN/AvcsZcNyeW7N4e+exKf+v0O6tuFAmD3CN30JQmc7NyAglfn zCiBUqjpvwZXxCUzEl33lrLF1jEhMVb8xZZxLVH5vKWoqU9Gv7+S27/+XEwb2ToE+TCd fXTcMK6FkdBvLK+LWuaunzx+jWxa/Y0+Rm8V38TqHaBC/GsGX+NyPh7Y0tTUUrR4rnF9 /acXsGCPEuTBciPQGwwagLJceO2/gxBH0+Loflp29dC32O1/Ryb5JlSaU5dIDbM+KvTD kmQddIpbYJs/JFaBYe2cAc1MUDQntDJ6BywQ6qQTIYxiCJAxihEvzz7yDnw08XSJ8HmU ZXfw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tEKHOMvY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t12-20020a05622a148c00b00434c4dba61csi1414191qtx.684.2024.04.08.15.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 15:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tEKHOMvY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 0DBE91C2118C for ; Mon, 8 Apr 2024 22:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CDD0762CD; Mon, 8 Apr 2024 22:41:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tEKHOMvY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 36A82381AD; Mon, 8 Apr 2024 22:41:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712616072; cv=none; b=mKOIp4M3opmCBEE6VU6ex8VJ7aNE7SqM2IPTsJyPgUydlZdxgY9iMrv+9VCKFcHAMvLyiMJ8r88un1OGPirceHmRd4hUnnMcFWaxZdws6sv/vKvNm1HJeHNCfjGtv4yvpfNkVb6LbM5niQzJnnO0uN1px1gFVzGO2xGJnfndPNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712616072; c=relaxed/simple; bh=uq+iuZWFJeFjkBxY9LAE5aFyS6mStouA09bvmO1Xduk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Lwl0glV8XOqkOT7OpFkq9iwQ5Z7KPOvWpLE87rqFaoZ6qk8BZp03wjNSFDQr5uRrbRMf+NnLF8v9TFllhmPk9eg1bMcdIWUtBqzUer9MZ3guW4QW2GubZu3tc29goa/9NiYKy1urbt63m+OH3GoUcVzrN4obDcURGvXEgZhgZK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tEKHOMvY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5515EC433C7; Mon, 8 Apr 2024 22:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712616071; bh=uq+iuZWFJeFjkBxY9LAE5aFyS6mStouA09bvmO1Xduk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tEKHOMvYUum8eYAsZcQaVxVMVx/WPybI5+LjUwRKgwoGCBYs2NiqfITsfLF4GRg3j jWAR4EygzbUY1QA4UGSEzrD+NJ6/z62iXMf84eFyoIS+Thhla8Yi+U3Z02J9Bj+Uge RF9hQnEgU0PJu6lTl+lgJPX/X3rs0ZLPJ5QueHi9EE5pyMmB7NT4WZAB5SX2q+ULcV vTy6EpqL/qEXpdlP/DlBG+fQJC6UYxv34rGaPThX9gPCrGxclzl7mZIZq/Z8LZlnMY yq0NU0O/sj12i9qFtSaVeJkpHzU9X7+c7nVKNzaQFO2nGtUQtBOsx1ps4hy16VHp3x lclfJetttHdaw== Date: Mon, 8 Apr 2024 16:41:08 -0600 From: Keith Busch To: Lennart Poettering Cc: Linux regressions mailing list , Christoph Hellwig , linux-block@vger.kernel.org, LKML , Jens Axboe Subject: Re: API break, sysfs "capability" file Message-ID: References: <54e3c969-3ee8-40d8-91d9-9b9402001d27@leemhuis.info> 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=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Apr 08, 2024 at 10:23:49PM +0200, Lennart Poettering wrote: > Not sure how this is salvageable. This is just seriously fucked > up. What now? > > It has been proposed to use the "range_ext" sysfs attr instead as a > hint if partition scanning is available or not. But it's entirely > undocumented. Is this something that will remain stable? (I mean, > whether something is documented or not apparently has no effect on the > stability of an API anyway, so I guess it's equally shaky as the > capability sysattr? Is any of the block device sysfs interfaces > actually stable or can they change any time?) The "ext_range" attribute does look like an appropriate proxy for the attribute, but indeed, it's not well documented. Looking at the history of the documentation you had been relying on, it appears that was submitted with good intentions (9243c6f3e012a92d), but it itself changed values, acknowledging the instability of this interface. So what to do? If documentation is all that's preventing "ext_range" from replacing you're previous usage, then let's add it in the Documentation/ABI/stable/sysfs-block. It's been there since 2008, so that seems like a reliable attribute to put there.