Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1784414lqe; Mon, 8 Apr 2024 23:10:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXB3JFLVwR1OlfPrmozxkDzP2QX1Ar/WXudFvCDxuvvN5cEip/gHWx9tNGhCzkvoSWsTHD1B3Enw/ibRJvVKhkHEJYfyF7A/rXa5ufmfA== X-Google-Smtp-Source: AGHT+IGa07iqEOY2ittSFqna2x+Ja4ysaMBKDvmoQ+UDN0I3YEJxPXFgjA69Gss7PdbkR0YVuaxQ X-Received: by 2002:a05:6214:491:b0:698:ecae:429c with SMTP id pt17-20020a056214049100b00698ecae429cmr12151371qvb.56.1712643010330; Mon, 08 Apr 2024 23:10:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712643010; cv=pass; d=google.com; s=arc-20160816; b=sH3ZQ5ZfkaS5/uiDkorbSeVMml9kLDhW+E67vpLNhrC8aakdnpQhcqIiSlnWeqN3MY MKokBTPT2HVgh2N17BfW4/pilMLoJ8py66utdp6jb+enEW0l6N1dpqtkKZnYekYM6HXi N4BU+QiTB4HNrASto2V1RECG2Vn+6VKi3wN71VWk++1zFCJ1AhSudc+FPMyj3E9fCOwZ 33/+Mjc2HDMjw0z7GfRemjZwAmax2gnqw6KfNdiYPI5bcZPqWse4QbuWpClCHs2oo8Ix wz0sGO/TcV/CP4tsiyqhaDB+dhgOdyXs+mT/UWDhA7v+m/O3CWn9TFbftYAek4ikeU4Y 5GeQ== 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 :dkim-signature:dkim-signature:dkim-signature; bh=hSCcPjYf9Lk4xq7iPI/rjdmipMmPujy9hX6WDaQQGh4=; fh=DxMZ1BEUIN9ujW38OUVjHT0Otk3novgu94rwThYV94c=; b=S2f9tLaAm7DuTb2hSHJrT1jyHQdCzfO1Y0jluA/b/Hv70IyFnFZ769s5hAvXf8O1QF aQTseB1K/vQ6Z0w7hN2buLx7rEfXTVLQwbHa7FZnD/EdinTmCiNYl6coEMb11kkIBBLq PX2OZKLV5t0AflIAvq9LNzucnfuVGZpu/pjPkKBX7tLoI9A45NEFDxUjiMShRX3lgA9t 3n5Eqh5vojbHvGXtjVs4qm5qf1SiGiZHF37Twm2HlqQ/uamzv/8iqWTlkLef8OsCYco8 AKAparFJ2nmUuOetZ/cJdQv7MBzFADkBhTHg0FUo7UtnU1nIBKkjA9FdY2Z9DnXxV88V 7Lew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yeK5ttk0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yeK5ttk0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-136267-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s2-20020a0cdc02000000b006992f1b2fbesi9929726qvk.375.2024.04.08.23.10.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 23:10:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136267-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=@suse.de header.s=susede2_rsa header.b=yeK5ttk0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=yeK5ttk0; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-136267-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 072761C216D9 for ; Tue, 9 Apr 2024 06:10:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A32046FE06; Tue, 9 Apr 2024 06:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="yeK5ttk0"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="D+fwt4ZT"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="yeK5ttk0"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="D+fwt4ZT" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 EDAC14C69; Tue, 9 Apr 2024 06:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712643001; cv=none; b=fx0G8RqHy5IUfNN7HtHqZcEKNF5x1nY/mo+1VJYJqMh6ucPXeiARZlPggNJ3+Eya0lYxvdpwEo9ISyKSAbu90zXDL+rXDRAzcQcqr38STnesy3UdnuEXK6w73aPDXVzcG1+FAa3r2XD7mj+UTIsj1ayY0e7uWPHkvhjbzj4nZfk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712643001; c=relaxed/simple; bh=Fco9MlyEHsy7mhFviXbafrMc879Fz3eOcdblRV4eUbE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=eQx0NjgpdNTNe9IPJNzmDmDGkjohVIYGgA4L0koNOdbyATXJcBjLzKtRuVTSMfmW7eGBC8lCZ//wMCyAKFVwebC81qb5ZA44mb+DFcNyWCB/iOPG2TTmeN0b3sx40TZW/6iyqCTlBC/hfAAGVGc9T8zJsFAy/2xXUpUj56RkeeY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=yeK5ttk0; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=D+fwt4ZT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=yeK5ttk0; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=D+fwt4ZT; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 155353382A; Tue, 9 Apr 2024 06:09:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712642998; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSCcPjYf9Lk4xq7iPI/rjdmipMmPujy9hX6WDaQQGh4=; b=yeK5ttk0JoBlkCZtpZJWXkddSspxkBC326yN+bBMObzYUoMZWKrM+KrKEG+rNi5kRhlcSH XA+S14fUpvxxcPIbq/mp8LVxP8KfbTwdYT3d18xYFk7c7XIhC4ZD5jyxlNvK1O3ffytqkq SpPy0x7wqccgdQprE3NqtOdpbMmTw/Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712642998; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSCcPjYf9Lk4xq7iPI/rjdmipMmPujy9hX6WDaQQGh4=; b=D+fwt4ZTMAh9jvd67LKVhj9vA8GKG1hXKAKzWB3VsKGaME3w45lNoi5yqS0XBTaZYofYMb pRoxqa/VsAJRxfBA== Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1712642998; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSCcPjYf9Lk4xq7iPI/rjdmipMmPujy9hX6WDaQQGh4=; b=yeK5ttk0JoBlkCZtpZJWXkddSspxkBC326yN+bBMObzYUoMZWKrM+KrKEG+rNi5kRhlcSH XA+S14fUpvxxcPIbq/mp8LVxP8KfbTwdYT3d18xYFk7c7XIhC4ZD5jyxlNvK1O3ffytqkq SpPy0x7wqccgdQprE3NqtOdpbMmTw/Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1712642998; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hSCcPjYf9Lk4xq7iPI/rjdmipMmPujy9hX6WDaQQGh4=; b=D+fwt4ZTMAh9jvd67LKVhj9vA8GKG1hXKAKzWB3VsKGaME3w45lNoi5yqS0XBTaZYofYMb pRoxqa/VsAJRxfBA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id C8AD513313; Tue, 9 Apr 2024 06:09:57 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id rJfbLrXbFGamKQAAD6G6ig (envelope-from ); Tue, 09 Apr 2024 06:09:57 +0000 Message-ID: <6ef177d7-a565-4ddb-8522-81ffbfb5380e@suse.de> Date: Tue, 9 Apr 2024 08:09:57 +0200 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: Keith Busch , Lennart Poettering Cc: Linux regressions mailing list , Christoph Hellwig , linux-block@vger.kernel.org, LKML , Jens Axboe References: <54e3c969-3ee8-40d8-91d9-9b9402001d27@leemhuis.info> From: Hannes Reinecke In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spamd-Result: default: False [-1.52 / 50.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; BAYES_HAM(-0.23)[72.47%]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_SEVEN(0.00)[7]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns] X-Spam-Score: -1.52 X-Spam-Flag: NO On 4/9/24 00:41, Keith Busch wrote: > 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. > I'll side with Keith. Our management tools use 'ext_range' to find if a device is partitionable, and we've done that since the very beginning of sysfs. Cheers, Hannes