Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp563050rdb; Mon, 15 Jan 2024 06:25:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGuxBRpVTRyIum7LE2lb75Jo7CMGTR9+4XsOlhmDxdC/uf9J+L+bpX6BVnmAuLKKinmt3D8 X-Received: by 2002:a17:902:e548:b0:1d5:bb1c:2815 with SMTP id n8-20020a170902e54800b001d5bb1c2815mr1393778plf.133.1705328740547; Mon, 15 Jan 2024 06:25:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705328740; cv=none; d=google.com; s=arc-20160816; b=gTR8K/CCna7djGK8Aqt5EL/WQe3t4pLW3/vJGnGKS3I2poiF4ykkp/gzzyS81HFQ/0 ekyVCgye7qAk0XzdQFpY5VfzjiuXsC0Y4oPxvGHj8xdH8wvui20GQd8ikP/FYAPcmjka Z/enD+Rdtj0cQv9G/J2udpCUl2ofGHBkwSg6+UqWZ7/vhm4indatBLhTu9RGTBYX2KU5 /PAYEKpSf9glTvsx/JRp23FS54hfFWp/eb3GCB6bObRdMayy6VIEHaxUCn0/LiyoZmPV 9uqCT56md5ncQfusozJPV/UgWDGlnbnGnj25ESPEh2Ab9RtDAITbYByeHZ1vDh0tk1nk YR7A== ARC-Message-Signature: i=1; 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=BTyVfmz2hJiEVhEw5q632zLaT46LN9kFqtDeoZ21t38=; fh=bUv5GbShP3xANA7JalFdT22BCsuQxIiFk4bSdGnQNKs=; b=spgFT7Fv3e8leSDnLiyst/B75Bap785YjjPiNokrab0fKC1NeRwDQ4IwACae3AI+dK 2k3LAOp5bDh231eIVwqnTUqC1YfA9yaGYoyz2LEuG/HAwiB329nACXemFc3qfZjDVIox agGnUQvAjVZ+AI2OmT3T/acenyGQqPtRKKgtpmgAHOKs6dL/Q3Civ6BsXcDYh8+NV0+M UsGuBxl1+Fwga5IrlM24xaYtKJhtfJVY4uV5Uq+CmbmXPoev91edhNm9EhbbOwRyKgz+ Q2nbvxQGC+LLo8Xaj5/5Af7fHGuns3rl+el7W110j4wRb3Rv/P5McztyLb/V/GOIHLPz DWdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=KoexH+w2; spf=pass (google.com: domain of linux-kernel+bounces-26081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26081-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 11-20020a170902c14b00b001d5d1a77bb2si1659883plj.461.2024.01.15.06.25.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 06:25:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-26081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=KoexH+w2; spf=pass (google.com: domain of linux-kernel+bounces-26081-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-26081-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 50E51281718 for ; Mon, 15 Jan 2024 14:25:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 747031758F; Mon, 15 Jan 2024 14:25:27 +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="KoexH+w2" Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 53F1017587 for ; Mon, 15 Jan 2024 14:25:25 +0000 (UTC) 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-pf1-f175.google.com with SMTP id d2e1a72fcca58-6d9bd8adb9aso1236858b3a.0 for ; Mon, 15 Jan 2024 06:25:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1705328725; x=1705933525; 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=BTyVfmz2hJiEVhEw5q632zLaT46LN9kFqtDeoZ21t38=; b=KoexH+w2oSte6g5cT7KETen9CTcd7grY2LqVcfQlZwKJwsloGdDXVrgOuT+PX/8z3d lDFTcUCucjEzcnt3E385WfVmT4SzFbLTU3Uh2nQlmhVg24xo7uHm9HCwXNFhmSVt16Q/ Ip9ovgLD6RKVEunXVKeYz9Pc0Bz8I9UkyT+iZqjcZHryeYmj/8lZx+Vn1MQAOeagkB1r S7uAYVyv5yCukNdf5WTYKyc01EV/nRw07MAm3eK+9fB74bh3VtADF3pNwAvp10VIQu4k uOHUQqttILKdjN6wgDX+e6n6JSegUUcFcuBg43t5JEqNj9MWcat21SmVRs3ABSftalfU GU4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705328725; x=1705933525; 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=BTyVfmz2hJiEVhEw5q632zLaT46LN9kFqtDeoZ21t38=; b=iXL6zLFlaqvbpHhze0CKNrPmaZ0S5OT7XCggtCYBy1QRbhkEoEATeClUDuP3D4zuch vph1jTFc+0acWZi/YzX3VhGV+YaMjK7mYCow1VFPntPLFrWLZukIKJDrD525xiUq4pJG nYlpvIdVjBpopbGX/y5oR2rqrEKGn11lBxJaIDgWzgtOLoT/HP3AZMsiIfxmSaqJxBso NhS4+Jdxlq2ataExs19I8+ZuqBJ0eevuZ4eGahA4cIoRmQTTBoucPdfY9yvDLPckIirr B6gI+5YY0q7xCu2GOwiYWxI2wvJET3IK2cmm2/93jSMaeLPxTk5+vlJAMP87odXBVrLd yd6A== X-Gm-Message-State: AOJu0YxzlXs5yZ4LjKcO4sXaDzaRinb27NBZzl3YIOoLFHVUyv1aKk1b hHbAzRAzF6BJZ1stJEi9dfj+ZE+TKVRwSg== X-Received: by 2002:a05:6a00:2d94:b0:6da:83a2:1d5e with SMTP id fb20-20020a056a002d9400b006da83a21d5emr13067220pfb.2.1705328724591; Mon, 15 Jan 2024 06:25:24 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.194]) by smtp.gmail.com with ESMTPSA id j5-20020aa783c5000000b006d99f930607sm7895860pfn.140.2024.01.15.06.25.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jan 2024 06:25:24 -0800 (PST) Message-ID: <603ce174-4307-4425-a597-60236c237fdc@kernel.dk> Date: Mon, 15 Jan 2024 07:25:22 -0700 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: PROBLEM: BLKPG_DEL_PARTITION with GENHD_FL_NO_PART used to return ENXIO, now returns EINVAL Content-Language: en-US To: Karel Zak , Allison Karlitskaya Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org References: <20240115125722.bwumutabu4itbrho@ws.net.home> From: Jens Axboe In-Reply-To: <20240115125722.bwumutabu4itbrho@ws.net.home> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/15/24 5:57 AM, Karel Zak wrote: > 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"). Can someone send a patch for this? -- Jens Axboe