Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1626058rwb; Wed, 16 Nov 2022 22:32:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf6wabeSlIi9Miu4mKyZWLR72+AoL2+TlNpJxDQyKNzk5B/qrNGSdZGifxguM5iITSPPlhXG X-Received: by 2002:a17:902:e94e:b0:172:f5b1:e73b with SMTP id b14-20020a170902e94e00b00172f5b1e73bmr1452382pll.58.1668666744332; Wed, 16 Nov 2022 22:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668666744; cv=none; d=google.com; s=arc-20160816; b=Egf3fJlHv/xAaWwJ6cHUv/i48pmWgdaICjSBC1rPKGZYwQXie0Q7RYqn9Fk8xJ3j6F E9tzaf5UsJfhDALFnbo/Jy/WhU7gJebJYs8ATZkgaQ2OaunmDwvPc44GO//bopYegv+x bughu3D3uH7b8aFG6FJFNEHZMS1XNHa3MrKAYGhZAGEnuT/e4HRmyjCqkpyjv5j0RoYL gMBfC7/lIiyapOfp+miGlNgXTdGmSP0+WBbTao8MGbRS0K7n6i3A2ISniP1Hct/jYRU+ +hnhK5f1KqA3liGghzexfhj84F85eFN9h7+OxFOhE71HlCSB2RhMwsV/XLkFY3ddTnUf qCZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fHV8C99I/AoA0afDaQTlC1+ocHHbTKqGLXuQDD4SZVQ=; b=KHnvbKY8WN0XyVtD4ttVbnnU2ee+tm0SwsD7HML/EcgGTMNaD3rOtAa2pav8y7F8WW eqWgrtK7X43OI7VMf1p/2qMYRl1nnyduAguIvOC5xLMLjsE21SoqrAbT++LSBCE4MFnb XBZHq3xEZEMMkKl+xWPeqSteyHogk/UkOdAHvwmAhW8NiDKnPnfp0Nu7nFThJz47Cuxo 0j1A8gpbG1Kc2TzgH1vh1vYmudJFkZ8/yMkI8SEAgfCDqXMKdMVqVk63F0POuJiHVpZk q8jwjNU6HedxU+G5WiFsEyhZYhOxoQjdo2stDBirMQvNooKY0oJfMkugiJojnL12ERjS NBvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xUZyKlM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 71-20020a63054a000000b004770d5ed157si206209pgf.313.2022.11.16.22.32.12; Wed, 16 Nov 2022 22:32:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=xUZyKlM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239165AbiKQF4p (ORCPT + 90 others); Thu, 17 Nov 2022 00:56:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239145AbiKQF4o (ORCPT ); Thu, 17 Nov 2022 00:56:44 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D32C66C85; Wed, 16 Nov 2022 21:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fHV8C99I/AoA0afDaQTlC1+ocHHbTKqGLXuQDD4SZVQ=; b=xUZyKlM+cvVD3VMjPnAYr6EqMG QZ2Z6eZE1aHyNZKXXpWGnNCKBLe9naR5d9jfRyXXn+NRegL+kFP44y4zlLlYioyjrSbYcFEfYX/aO g6wfzaNqk/3b4UspJcwodTmeoFsZtxlZHLI7+chfWr1C8PaYeRtQMNhi8UanlfxBUFRscZqA6y5fw xwwiYjgZNlFhXjaqhFu+A64ZWSp10WAqQa3z15r+j2q9yvdE4RO/RIuQOZ/SGii/Xyvl3TgfEtHPi cKxlAKoQ9p4hDvVZ558oErgHv2UrC5eKgg3m2tFE4zV6lTFJQDNzK6PXIOBYjDxNdGP2T73pVFtMV rgPmJ6bg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovXt7-00Aa6P-M0; Thu, 17 Nov 2022 05:56:37 +0000 Date: Wed, 16 Nov 2022 21:56:37 -0800 From: Christoph Hellwig To: Daniel Golle Cc: Christoph Hellwig , Jens Axboe , "Martin K. Petersen" , Chaitanya Kulkarni , Wolfram Sang , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/4] blkdev: add function to add named read-only partitions Message-ID: References: <2015e6097f7166915d829740ff33aab506948a0a.1668644705.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2015e6097f7166915d829740ff33aab506948a0a.1668644705.git.daniel@makrotopia.org> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,PDS_OTHER_BAD_TLD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 17, 2022 at 12:44:40AM +0000, Daniel Golle wrote: > Add function bdev_add_partition_ro() which can be used by drivers to > register named read-only partitions on a disk device. > Unlike the existing bdev_add_partition() function, there is also no > check for overlapping partitions. > This new function is going to be used by the uImage.FIT parser. Err, no. No on has any business adding partitions to the block device except for the partition parser.