Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp741611lqb; Wed, 17 Apr 2024 09:23:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUF676osCU2HLlw+re/VOrQGFfaHm5tvbNb4J4G5tHSCpSKa/agfTBOaTxtcdC8NSJQERewiVokHpPhv9R/44T1xjatNsvO1S/Oy2OIew== X-Google-Smtp-Source: AGHT+IEek0doxn8cQrot0lrrwRDVSdYabEI0OtprYUBEvtAsCA6Jhbmr6iY9ToXVAXd79ioplQya X-Received: by 2002:a50:d593:0:b0:568:9cfe:1974 with SMTP id v19-20020a50d593000000b005689cfe1974mr76940edi.18.1713370981453; Wed, 17 Apr 2024 09:23:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713370981; cv=pass; d=google.com; s=arc-20160816; b=DEBXGnlfCCDKSgA+aZ0mbcxnn967OZMJf7UXWstBMzAcTBWO7eJi2vZnMnMMtYt+Rb /2+uRbZaLVfE2K5yWoSnzZIWqUxXOBpqN3jEvuNlH8eQyJf3Lsn9Nb4cdJ/yWg3vUU0d D9BgwrzK7dj5bDF7kJYjqHDCn5Ig5dxTHNOe0vk6yZCzPZrYIM3z/wiOrk3kPiOxG25q bVnLqbDTSRZs4zdveYGeEYlriP6JQodXFQ3a5ueahBW87b37BRCxXYkYSeamcHMqt9Us u4LvXHOCNZK2/hnI+HRDNX0xspBNyowMok5BoIi7izkhgfxWQabXGuatOwRmNaoCuKu9 uZgA== 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; bh=XQ9fCuzu7b2R6YqySZkiwHxXxXnlyHJQna0OXa4bBfM=; fh=XD1yoBCtW/Ct9dYbHuGYGfdOhALjKVhHFTTrDrOBL7g=; b=I+dLNHQ9DHa4xVJAm2652pRFn/+8wYtxawF98QthHwpyOyhNKcB/rKiUFxbxmnQXPb Y9NhycHdeBBkU7mlPDTLukyuzNF9F7XcDpt0XrmbUamm3TN1UEEh1YGLPTuSnZrzoqtV 6FwlIpDzDVodzFN9qGLqeMBfbxz07PRB5l6eGztwtliifnHC7Y/Ki5NeSib96cqiVLsI CPCqnGlEFzbxGMuu8lKw0wPCG7fyBJ+DOU2MRow+WkOxH5pJITMN8kjEoIMtr8CieJ3o Vx9/2HCiV9jcUBkrfUqXpPtk4DV0X4oew+m1Z1up0Ny0H8ySHrxHWrDQQtXx2s+RqsSc DIoA==; 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-148885-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148885-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 t30-20020a50d71e000000b0056e6b4ea654si6932532edi.110.2024.04.17.09.23.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 09:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148885-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-148885-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148885-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 4AE241F254F8 for ; Wed, 17 Apr 2024 16:12:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFDBD15E7FF; Wed, 17 Apr 2024 16:10:26 +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 AE52114EC79; Wed, 17 Apr 2024 16:10:23 +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=1713370226; cv=none; b=c7Ll6oRj7NjruDlNb54Z+6qQOe1wdzpQr4bE+fSH+o6P/f7CsbOSMldH2xizsl5xCdmvXGBFboLdpvQgBY8kL7IsrhQaeykYT42VjXOQb6eWC58p6aABaCCjkRaqwSx+ej+DhsU+gGtxmkelbrW2/4HK/n2x+mU0UYr7yy6F8aU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713370226; c=relaxed/simple; bh=gSfe2mh9bkp+vU+sT4Snqq3+U6upnEe1SHDBCsuBkkk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e15exCaT8DqaXmuNjmJyZzyPFW7tWlfPnP2WiBhA15aNX5R+hSN2EtE1tOvuTk3f2JfsrDfMnNxtf/5oDb+RPmeuXVB8cRBvgtDmfj+uhlbQn4Br/+k7FqDJ5zf+QZ8hP+YmHWliKxWy9/wTNdfz1KiRkP+gFsVRQ9UU/tFerhU= 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 [85.214.157.71]) by gardel.0pointer.net (Postfix) with ESMTP id 8987CE803C0; Wed, 17 Apr 2024 18:10:21 +0200 (CEST) Received: by gardel-login.0pointer.net (Postfix, from userid 1000) id 430131602F7; Wed, 17 Apr 2024 18:10:21 +0200 (CEST) Date: Wed, 17 Apr 2024 18:10:21 +0200 From: Lennart Poettering To: Christoph Hellwig Cc: Keith Busch , Linux regressions mailing list , linux-block@vger.kernel.org, LKML , Jens Axboe Subject: Re: API break, sysfs "capability" file Message-ID: References: <20240409141531.GB21514@lst.de> <20240417151350.GB2167@lst.de> <20240417155913.GA6447@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=us-ascii Content-Disposition: inline In-Reply-To: <20240417155913.GA6447@lst.de> On Mi, 17.04.24 17:59, Christoph Hellwig (hch@lst.de) wrote: > On Wed, Apr 17, 2024 at 05:48:16PM +0200, Lennart Poettering wrote: > > Block devices with part scanning off are quite common after all, > > i.e. "losetup" creates them by default like that, and partition block > > devices themselves have no part scanning on and so on, hence we have > > to be ablet to operate sanely with them. > > Maybe and ioctl to turn on partition scanning if it is currently disabled > or return an error otherwise would be the better thing? It would > do the right thing for the most common loop case, and with a bit more > work could do the right thing for those that more or less disable it > graciously (ubiblock, drbd, zram) and would just fail for those who are > so grotty old code and slow devices that we never want to do a partition > scan (basically old floppy drivers and the Nintendo N64 cartridge driver) Well, there are plenty of other block devices with part scanning off, such as DM, including dm-crypt, dm-integrity and so on. And that's certainly stuff we want to cover for this. Lennart -- Lennart Poettering, Berlin