Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp684125pxv; Thu, 15 Jul 2021 13:24:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7ZJm6Prdh6yo3E4Rg/VcoaQ6aZN3ZpyTSGHW3+3Wu0HTmCYslVZ36Y+OyErbwIpotYUj+ X-Received: by 2002:a5d:9958:: with SMTP id v24mr4532528ios.4.1626380679567; Thu, 15 Jul 2021 13:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626380679; cv=none; d=google.com; s=arc-20160816; b=yv/4Ky6IP9fge1iw8wzWFSITg4RF5cjmdJRAyPZHBPtR3flQp2iOvxpbfy3EN5IRkL XS++CdbxFkixF4fGeNHlqVnZVZf7ReANa7HS14bb1wVkwIRRS/zYHc8mTKVSMquWe+eQ L/Y5PZmaDZTY0OFx3H/mtuHasDapZHyojyOckUR3iNGTvwmh4ju107miOY9lBSuIW+h8 /dAhDOdYlI4rZeQSIn65g3yetJ9YOFnCdyZjRJSfsx3E3GwgkN3L5EWHFTNm6akSIWgp glrkO/ymEvmT0xxc41DJtGBm1s39AOa68C7nWZPU/icxrvYRXbn/NidI2Sb5awxViTYe 7cIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5aHOdlU/2L/54/3zHXa8OhKj5BX9a+lmYl8Ye4JMN18=; b=usHe9/zVFxqeNGWtYWmdnCZY6BhqJw/tTjt4+ChjJSNCB6EB5Xd791WPpcNnilDQE6 K/VmLHPVMhO5qmQ1JXiAClp2QwDi6ANkxlNI3UGei/jUWnCYf7VXlWCD0qay5G0VtJSG eVHkvh+7yUQR3sq9bnJEl34MSYguL1LxLPIm25+74if4PxTAwUivlYb54w2peJ81vYNc R3lzTi3x3tzx+fHE2h62TneofX11zeCCTee+Xxa4evoqTp4e8yTPnvuFyyRfFucOkhLR Qsms0/zL3GmDT09UqEbewRvqzGx2Xl4f7/SeWB9cY51EO3GP0WlE3CEbGHGCYUn9aR7R Roxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si9374003ila.58.2021.07.15.13.24.27; Thu, 15 Jul 2021 13:24:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231285AbhGOU0o (ORCPT + 99 others); Thu, 15 Jul 2021 16:26:44 -0400 Received: from mail-pg1-f173.google.com ([209.85.215.173]:46658 "EHLO mail-pg1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhGOU0l (ORCPT ); Thu, 15 Jul 2021 16:26:41 -0400 Received: by mail-pg1-f173.google.com with SMTP id w15so7663014pgk.13; Thu, 15 Jul 2021 13:23:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5aHOdlU/2L/54/3zHXa8OhKj5BX9a+lmYl8Ye4JMN18=; b=q6065wRohwotdJ8VVOvEvDbAKP2AdTuw79cdfLy7rn6nxwDkXyypY/ycpyH8oRFKss 2WP6gCkKgtjAIFaF4t2bKhzenZrv4DYR0+g9MaoGOboGJrld753v+aN/6vLh0MgJaJhi UEY3Gh6utVzAmWnhUIHQp2ogTK27etV0tYUAHyIausT8gJjy+MyuVWZjL3ARCmMjGt8y SwgVL5a8l5r/HB3XI2jZMAZxvSUjpxMUW9JzgrVBX0rZogoqXZjxwxuCJMMGjt2A5DWO Y22VMbYE+CAzKtdXrqYkukyeXhvls8WHnQ9bXKw3o57J/QhK8PBwQbVfvecsrD11Scg1 sD3Q== X-Gm-Message-State: AOAM531ivF3XQ13Oa/Kj9PX+9tbfykdo21ZcQbA4VhlTLH/zUOup8RUd 33Mh0BuD3N+rptvV2HoS5m4= X-Received: by 2002:aa7:8593:0:b029:32b:c173:cd96 with SMTP id w19-20020aa785930000b029032bc173cd96mr6293315pfn.63.1626380627327; Thu, 15 Jul 2021 13:23:47 -0700 (PDT) Received: from localhost ([191.96.120.37]) by smtp.gmail.com with ESMTPSA id p24sm8335768pgl.68.2021.07.15.13.23.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Jul 2021 13:23:46 -0700 (PDT) From: Luis Chamberlain To: axboe@kernel.dk Cc: hare@suse.de, bvanassche@acm.org, ming.lei@redhat.com, hch@infradead.org, jack@suse.cz, osandov@fb.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain Subject: [RFC 1/6] genhd: update docs for GENHD_FL_UP Date: Thu, 15 Jul 2021 13:23:36 -0700 Message-Id: <20210715202341.2016612-2-mcgrof@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210715202341.2016612-1-mcgrof@kernel.org> References: <20210715202341.2016612-1-mcgrof@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The GENHD_FL_UP is used internally so we can know when we can add and remove partitions, so just clarify that. Right now it has this 1980's description comparing it to network drivers "ifconfig up" idea, and that can easily lead to invalid uses. Signed-off-by: Luis Chamberlain --- include/linux/genhd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/genhd.h b/include/linux/genhd.h index 51f27b9b38b5..dc07a957c9e1 100644 --- a/include/linux/genhd.h +++ b/include/linux/genhd.h @@ -61,7 +61,7 @@ struct partition_meta_info { * Affects responses to the ``CDROM_GET_CAPABILITY`` ioctl. * * ``GENHD_FL_UP`` (0x0010): indicates that the block device is "up", - * with a similar meaning to network interfaces. + * and we can add / remove partitions. * * ``GENHD_FL_SUPPRESS_PARTITION_INFO`` (0x0020): don't include * partition information in ``/proc/partitions`` or in the output of -- 2.27.0