Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp512775rdb; Mon, 15 Jan 2024 04:57:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IHa06aqtA0cLxn0iGHZLrQ4XJkz9qwoKVdMaKYLy7CrwGqzu22po6Tt5g4uaoyV4YQ/HUE5 X-Received: by 2002:a81:8341:0:b0:5ff:2f62:3df8 with SMTP id t62-20020a818341000000b005ff2f623df8mr944492ywf.102.1705323471006; Mon, 15 Jan 2024 04:57:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705323470; cv=none; d=google.com; s=arc-20160816; b=GAgXI+bBgcTDvjFieZX/Ylw3iQEgbbq0D7N5AXBP3MUjEpY9MAMGzDAdJ2s5w0ZIbB GEXkZtznu+9mIv+xmS8qtIMSEOKRdW68QvLHGIabgH8HH7nxvsy12huoHOTC/XHJCBdW bmbz7j8ybmd1dvbmY20tpKHZTH/TJTl3V5hWhM/j2EXQ8rIZXpvZvRrtthrIMaOYUMkw vkqg2eT0RSdk9FRyy0l55bj4BWR3x5QMCEkMgwKfji4L82RWsOZ1OiJRbRnsSMVLbKOl XRv5qk3U0Qxh+qlNvPOLG0Aemg1DB3+tUMC8xFDr6aD+NMc5i/rIEntMVxwvMQkiX8Q0 6njw== ARC-Message-Signature: i=1; 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=ltWg76fzJ09dpizAOzuCHqBRC4qeYPGA7mst/OlP3nI=; fh=9A4GhE0Hw9CBehxBgis8Fe/jWC4DAkw1W4c29GQPPyc=; b=ydDWoeQNxSmPVPxIjW3rlvbLUqswsdSNPyiJLUw78sQzKZycBdn7V93aLtTdCLdutL cit9zAVDParlg62ZmlMxTtDFB6hB8yTwOobivQfEgxPV2Q1XV0hW6voyaSrkgHuLVxhB QkWjYP+K5LKByTRREUEHVnbUgftrZVmdo82m1f918pwdK1ZSGMqEvOhtUFc18+EZS4WH /+R9/DLpSQ6j0Pktmw299ldcnmtFCTxNs3JMrBlUUtS+43LQnE8bdiHiH9kqSzz5Zq2p 7989KaAS4xmzPFox23UAl4pHJ0tLcxAomH2ZDhC5GNMJ3qp90rqXpjNfR5hL8QBcU+GH gawA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H62xpYkp; spf=pass (google.com: domain of linux-kernel+bounces-25980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c11-20020a05620a268b00b0078355737727si3644974qkp.427.2024.01.15.04.57.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 04:57:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25980-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=@redhat.com header.s=mimecast20190719 header.b=H62xpYkp; spf=pass (google.com: domain of linux-kernel+bounces-25980-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25980-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 9325C1C2165F for ; Mon, 15 Jan 2024 12:57:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC0A1171A3; Mon, 15 Jan 2024 12:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="H62xpYkp" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D0EFD168B8 for ; Mon, 15 Jan 2024 12:57:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705323447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ltWg76fzJ09dpizAOzuCHqBRC4qeYPGA7mst/OlP3nI=; b=H62xpYkp0MBIVoVnIbR3HpXsI880gX+f21EJ6NKFWvM5+xVNwkaylOoU3iEe8r1yOu5j5T x5PQDoPuRIaDSUEGhnQ2x4IYkGSTdq7BDyp/1Ufi4VmLFqY0Or6jT/pdTsTUlQ6DbUQdEc h0j+5Ulb5k72gjSTBjU5KdvL+/zAIoc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-311-wC7gr7Z5OLmI0qw29xUGQw-1; Mon, 15 Jan 2024 07:57:25 -0500 X-MC-Unique: wC7gr7Z5OLmI0qw29xUGQw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 452F583B86C; Mon, 15 Jan 2024 12:57:25 +0000 (UTC) Received: from ws.net.home (unknown [10.45.226.22]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C7C5111D785; Mon, 15 Jan 2024 12:57:24 +0000 (UTC) Date: Mon, 15 Jan 2024 13:57:22 +0100 From: Karel Zak To: Allison Karlitskaya Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Jens Axboe Subject: Re: PROBLEM: BLKPG_DEL_PARTITION with GENHD_FL_NO_PART used to return ENXIO, now returns EINVAL Message-ID: <20240115125722.bwumutabu4itbrho@ws.net.home> References: 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: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 On Mon, Jan 15, 2024 at 01:13:49PM +0100, Allison Karlitskaya wrote: > hi, > > [1.] One line summary of the problem: > BLKPG_DEL_PARTITION on an empty loopback device used to return ENXIO > but now returns EINVAL, breaking partprobe Note that partx from util-linux also assumes ENXIO, and this errno is interpreted as non-error ("ignore this partition"). Karel -- Karel Zak http://karelzak.blogspot.com