Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1536540lqe; Mon, 8 Apr 2024 11:43:29 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd40XBEk2bWUHq+jWXxLWLn/H/eVFRnD8AkiXyRruSOeQ/Z9h1S639q4AFDPFuFtEh/1PpBsla83c3IdsOR34WWKK/T3zXnckuKxSS4A== X-Google-Smtp-Source: AGHT+IFI/9D+As+CaWBVtkQ+QqbXHgjAlkU4U1DdgDfrBw7h0DOtDcDsrmIpfW0qAM1zCKIvfNyU X-Received: by 2002:a05:620a:24d4:b0:78a:5a5a:f123 with SMTP id m20-20020a05620a24d400b0078a5a5af123mr11712311qkn.22.1712601809625; Mon, 08 Apr 2024 11:43:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712601809; cv=pass; d=google.com; s=arc-20160816; b=L6vNxmhw5KENKNLawbns9ULniCbU4ucXiVhTb5kUkXYi2hMlzGq3KdScGpQg8NMsLK RqF4AdEHOAiADffxacUjqvAscXDSA070Js1Y5YfeKDVSFj9aimdWYasp3uwdfYCs7mST lckXtltdbgD1C1SfJI8+JA+Bia52TyQxXlScUo6NU0IVDv9SNsgdR2OfZv8ILk8iVuiv BKhM+sAkLkdpwnQWM0hkRK0izGAkskjW0pN1/suvt7l9vmnkUeDTtr5fH0RBN6s1rpB6 PjvZ/iNQdtqi+8qo9kdI7bccvBhiL0lxDCbpgX3pTZ7S3fLGGJphkTWnDxJjwvvr0uG5 dGFQ== 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=0iFnsLFx0rmTEzn/g0Zlwx35H6BzwK8jmHCYPowSVgc=; fh=kAgioPAhWk+S9MwS012YRVteO9/43a3uHzjzh8L94oo=; b=sh8+S20kvNf4vHXnUFWYN306S29K2mw3L1e1oyGbjeMch1fiQMVfOCJ3SmOrum1oo3 oQ8vJpR3C6w7iPkZlRHY9D44uYgXvmPmDNRmhyQYpo75jlwZChoccKM/fmgxKHM3Woto 1AM7Gh9lY+lEfpHASSNVReIPALcUFIRN0C1Z/4gopFfs/9wz0gerQrmRk93/0Sm8wWZY ATOmVGUWJOHlptSkX5b3QMBzIckFHFIzEJqwFeFF3kPGVJwJdLKqR1i2QaTAWRBEmnIz 02aNAuLtKUaaBUicYpNepCNxsj9yg/B7rQhvAD9c5BRl+XfB+tSXgQr/qbcfybOhB7VU pLMw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tPddvwU9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135831-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a14-20020a05620a16ce00b0078d614bd39dsi4192628qkn.529.2024.04.08.11.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 11:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tPddvwU9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-135831-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135831-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 BB82A1C23F54 for ; Mon, 8 Apr 2024 18:43:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E8FB146595; Mon, 8 Apr 2024 18:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tPddvwU9" 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 8BCFE142658; Mon, 8 Apr 2024 18:41:43 +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=1712601703; cv=none; b=WWVvB8LIJ9mc1FSgS1Y+gSL3wInjrkMZLDuUC8U1wTLRDmbQKyeDwb3imXe25SA7gYwpUIQpGvTtiutLLlqtNS7fX+XgRYs0ZZtcFVVLzR7fwcZtmTSB3PV3MLSSVHaLdt3Ux666l1jgA4X4CU0QkrFtMMS43fox36+r6hMM2i4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712601703; c=relaxed/simple; bh=kvkQSlddqci/+RUhxhBMoeQfL8gXtcjlyJF3nXAwetw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UtOu0fKWa3UmEHPaa5zveuU46600KaTxJBCdhtMxUi6kAbJwXwDTbm864KbbI8bPbZ7OTYAMD11ne6/54eOQPxUQ+KWV5xgiz/FkkpDWnnFDXssbdEY69gj49JVxjcCqFLQwwqAMr930fRHeiFVoWeTaDaBCXdyPKxxhhAedE5I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tPddvwU9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA929C433F1; Mon, 8 Apr 2024 18:41:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712601703; bh=kvkQSlddqci/+RUhxhBMoeQfL8gXtcjlyJF3nXAwetw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tPddvwU9dRrZQRHPi6LGS+Yc36cwkojFEvpaSzqJx816Mhy0fSs5APEpMl+Yq2BfC QN/vDvOismURCY5nOEeX2UVqyE0K6ePgmxxMaXoh7SlsOg0DDVOo49Yq9eBHDOgDaZ Xt+eRhZingpzg5CWoNMusN4lWjykAp7LmbuIqRPwEI3VmTy9qt+ZrfjGImX9Dz9LI5 B2GJZYzTbW5I/vu5DwZ284Fy6mP9YzSGZKNlEQq2eHeetimCs2kaxJF1uMNizTY83+ SORuj56kSyIuXN3Xur51aW43vHzyNhlobrsTi9pQ/XfY/pWR6V4DiL3Otqf2K8s3mw LDRXJF9VfJJtw== Date: Mon, 8 Apr 2024 12:41:40 -0600 From: Keith Busch To: Linux regressions mailing list Cc: Christoph Hellwig , Lennart Poettering , 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: <54e3c969-3ee8-40d8-91d9-9b9402001d27@leemhuis.info> On Mon, Apr 08, 2024 at 07:43:04PM +0200, Linux regression tracking (Thorsten Leemhuis) wrote: > [adding the culprit's author to the loop; also CCing everyone else in > the Signed-off-by chain and a few lists that should be in the loop, too] > > On 08.04.24 17:13, Lennart Poettering wrote: > > > > So this broke systemd: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e81cd5a983bb35dabd38ee472cf3fea1c63e0f23 >> > > We use the "capability" sysfs attr to figure out if a block device has > > part scanning enabled or not. There seems to be no other API for > > this. (We also use it in our test suite to see if devices match are > > expectations, and older systemd/udev versions used to match agains it > > from udev rules.) > > > > The interface was part of sysfs, and documented: > > > > https://www.kernel.org/doc/html/v5.5/block/capability.html > > > > While it doesn't list the partscan bit it actually does document that > > one is supposed to look into include/linux/genhd.h for the various > > bits and their meanings. I'd argue that makes them API to some level. > > > > Could this please be reverted? Just keeping the relevant bits (i.e. at > > least the media change feature bit, and the part scanning bit) is > > enough for retaining userspace compat. > > > > (Please consider googling or a github code search or so before removing > > a public API like this. This compat breakage was very much avoidable > > with a tiny bit of googling.) That is unfortunate wording in the sysfs description. How were keeping in sync with the changing values before? The setting you seem to care about is now defined in a different file, with a different name, and with a different value. Or are you suggesting all those things should have been stable API?