Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2054957lqe; Tue, 9 Apr 2024 08:19:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU/PBEy3fPBd1eYs39D/LiR4eblFMHPB6MfwCTr76Nq9AqtK3TCGWaH4XPOqtVvZ0DjKIKPfTQJa/wQFntBeZ/qbgkQ5F34qp040yUnxQ== X-Google-Smtp-Source: AGHT+IHB/FqA1lwPRtaBPHIU4lrWz38QXzr719c1QfjMNM+o9Zqh4DjdXKC9vRTLYzgm8U6enG7J X-Received: by 2002:a05:6102:3f13:b0:478:8580:3bc0 with SMTP id k19-20020a0561023f1300b0047885803bc0mr13169617vsv.32.1712675988844; Tue, 09 Apr 2024 08:19:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712675988; cv=pass; d=google.com; s=arc-20160816; b=pWdi6NyS+55YheWig7+41xtAJCCXs2ESlpuq/rD9tl06Sm1FDOMW2bDrgl8zFkEA3q tDtP4dONGH8OHWew8ep0N9fzwZrtht0Wtc1c3NShZctt/tN7SwYFCnOfgtpVOHlEGkAc fkK9ZtFMpFr57bDKm3v9QOzclikgH+F0rJoCykWINPm7edUtNruMDfPcIx2Z7gcCMs3w szo0Hy/zwINSUeCc4Ud+EXBaNfg9nhzn35X/pvxWu8Ig7WgSvOprO2eybfIqsIMgKZTN 5ZHC7nyjG3+GaYOWbAFpLedHnL7zbTuR2tHQ7n/nwMLreFDvWccq7wZHzXUf7jntPMaf p0XA== 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=CFN5ra1aznPU86rqQVA8b3ykCxoSF9HNqWhAYFl+4RQ=; fh=Cc6MOnpVMC7YmwXEFnS2gI09otf1Oh+NEmk3vBoH8G8=; b=yYwa0Mmp4rO6kWHYsWdUu5toqzGzmb/ATSyBoYFjbbu/pA8mQ1RIJsGV4HdV+upRVb N7gZ+phPoVSriT+0hGWE2hcTn74pSYnaHWo1UT/zHz9uTgP78Yd1anwnp2YUkhUyGTxX hzmqFNqs2U2GZPa0iMYFTafi+4MaUtIMV0yBVms3W999RHO4mYMLfQkBsYBkK008zg7a XXvU85V3rq9Roo/yZTXXWBZZwH2a6VMnlcf6Br4NqUISz9KmQSQ9eeiuZT3VQCpy3dRQ UVnqRbQk4BW2ABO5+a+AAG5q23jphr4RY+NKOzVmZB+LFmfQojFgbRjPQq8k8iQE7Yho 1P4A==; 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=i3SQKtc7; 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-137199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137199-linux.lists.archive=gmail.com@vger.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 cu19-20020a056102161300b0047a201365b2si122321vsb.794.2024.04.09.08.19.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 08:19:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137199-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-dk.20230601.gappssmtp.com header.s=20230601 header.b=i3SQKtc7; 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-137199-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137199-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3C17F1C21CAF for ; Tue, 9 Apr 2024 15:19:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37D5B13665E; Tue, 9 Apr 2024 15:17:08 +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="i3SQKtc7" Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (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 85768135411 for ; Tue, 9 Apr 2024 15:17:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675827; cv=none; b=E3jjP+2Nei42N6As5af/5BFYMv0AyJFW385eqKEkUIm8ucb+DUZmyXaEWXPXEFN4BhgjkqgspR9cY3lQ2iEC+VO85OWa5OPfGF7miUmYm+NWXJffBLO0hMwf936HMj4TRvZxvVpu2QLeE+QQSooaJ8+34s6gFIY6dTpenPk5ZWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712675827; c=relaxed/simple; bh=GpV2fHcAbppCLh2u5U1+w9Mj9ggp/1FWwmBurNKmVg4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=mrUvLSZiP4qBWLzSotIe4DzPA9/BIOO7V7QH8AugRg1AkjEjNBSJht6p5cGsC7gVGo6nKTSKgpIQq2Fy3hoPgc7xoJ738p08cgAjtQzix6EIVVO4MRDAxCSsPGW/FY5KQf9KnCePoDGtlrbGBZbjOUg1XF28OJXXtEqKu+t4v/Q= 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=i3SQKtc7; arc=none smtp.client-ip=209.85.214.179 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-pl1-f179.google.com with SMTP id d9443c01a7336-1e45f339708so4304295ad.0 for ; Tue, 09 Apr 2024 08:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1712675825; x=1713280625; 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=CFN5ra1aznPU86rqQVA8b3ykCxoSF9HNqWhAYFl+4RQ=; b=i3SQKtc7P/thvm9kGI8liCG9FOjophegSPeyiNb/uRjkg17xstMHL87hCGasu3QQHQ 8mEeJ61BoPO3DgfZRpWtkadOR+GnL7Zs09bh6VA8/FFfLIHP93FiLgvKhSc7vfDyZiNW Xz94pfZroZYYZzlDWi0iHpm8pI7YJ9ny6dKrHWQdnhvCkpHPvTQY/dDqJIwzQD2JBqhD izGClQjVKzVEOdw0jRNJr8J8zzaHuakCZc1BEjecx9e/RFWxtNyEQTBe6X2AWHR1h6cl bcd3lDRh0j+6AVytlPf14H08JMKLIcL8o4mq/13eenzYQxS+k25WhrkA/dZUoL+xD/rr k5eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712675825; x=1713280625; 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=CFN5ra1aznPU86rqQVA8b3ykCxoSF9HNqWhAYFl+4RQ=; b=WdVjRTDpslWPt928mnD4as3Y3gPxdqvq/cBU534uHczpEretHnSQZvwBT77md/2/wa ll6CrNnx91hzZAZZzpcMU4G4lh22FqtRxGuwoqxN/0c3qR0RJUYm7Ac6KlOYEhAYpWjA CIhb3lIq47OB2+Is+S5gs9uy/wJtGS7piG9TZNM99fdmR2NdudjhLnaoUDXzhqYNoaLv /ykkKvh10X0+HgP2y4E46ld1sPK9018B3KcX4WBmhzCSXlvGxfY+Yf6BLKPVR5IP6Ztv CAqeC5FqQcrv15c2kX8hiHQEZzmoo1cl9apgYgu4CO79bhguBbfZttrWe5CHEas37hTp QRNg== X-Forwarded-Encrypted: i=1; AJvYcCW8WKjyAysjirjrMVcYCPORAmfLY8n1vQPW7Esnil/rfaAKzAdJsI+1nuglkhiK61kKK+MdGmzlZALUqYVOFvuUa+VWKuLGwMgd9gbI X-Gm-Message-State: AOJu0YyMNEiR6IRQTtpZFZRUjtpZDGbyiU5He7+k34XZTKFYMfy31kRa uDYQNfubVt8EdJmImLqrefdIWmq39cfNMdAu2eAVaAJfvHhtons7YNhQdrIrg48= X-Received: by 2002:a17:903:22c8:b0:1e0:b5f2:3284 with SMTP id y8-20020a17090322c800b001e0b5f23284mr115142plg.0.1712675824751; Tue, 09 Apr 2024 08:17:04 -0700 (PDT) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id b13-20020a170902ed0d00b001e0e8e4f7e3sm8947433pld.206.2024.04.09.08.17.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 09 Apr 2024 08:17:04 -0700 (PDT) Message-ID: Date: Tue, 9 Apr 2024 09:17:02 -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: Christoph Hellwig , Lennart Poettering Cc: 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: <20240409141531.GB21514@lst.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. > At this point we're just better off with a clean new interface. > And you can use the old hack for < 5.15 if you care strongly enough > or just talk distros into backporting it to make their lives easier. We should arguably just stable mark the patch adding the above simple interface. -- Jens Axboe