From patchwork Wed Jan 26 20:32:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 12725737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F2B5C63684 for ; Wed, 26 Jan 2022 20:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230455AbiAZUcb (ORCPT ); Wed, 26 Jan 2022 15:32:31 -0500 Received: from michael.mail.tiscali.it ([213.205.33.246]:59436 "EHLO smtp.tiscali.it" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230444AbiAZUcb (ORCPT ); Wed, 26 Jan 2022 15:32:31 -0500 Received: from venice.bhome ([78.14.151.50]) by michael.mail.tiscali.it with id nYYU2600t15VSme01YYVSM; Wed, 26 Jan 2022 20:32:30 +0000 x-auth-user: kreijack@tiscali.it From: Goffredo Baroncelli To: linux-btrfs@vger.kernel.org Cc: Zygo Blaxell , Josef Bacik , David Sterba , Sinnamohideen Shafeeq , Paul Jones , Boris Burkov , Goffredo Baroncelli Subject: [PATCH 2/2] Update man page for allocator_hint property. Date: Wed, 26 Jan 2022 21:32:27 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Reply-To: Goffredo Baroncelli MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tiscali.it; s=smtp; t=1643229150; bh=R/Etb+t4DvZ/zcqe6oL86h3y7J2uz9HUzMv7pqaZsP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To; b=JgM/zguFpcaQEYJJw+sMoRENYgif11JIXmFLb/1aHfGFUQRmjnF3AlyjfkEkZtaLs q6GvMfTRp5kT+zUu52aVsYIknbcokJ2GyDmkSotE+xkt407dOb+nPfvFTW/lTgmzG4 BKMfAjXEbf2CjFrHtoup+zuEgg22i2UAM/AOlgbM= Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org From: Goffredo Baroncelli Update the man page of the btrfs property subcommand to show the use of the device property "allocation_hint". Signed-off-by: Goffredo Baroncelli --- Documentation/btrfs-property.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/btrfs-property.rst b/Documentation/btrfs-property.rst index 5896faa2..155839fe 100644 --- a/Documentation/btrfs-property.rst +++ b/Documentation/btrfs-property.rst @@ -48,6 +48,27 @@ get [-t ] [] compression compression algorithm set for an inode, possible values: *lzo*, *zlib*, *zstd*. To disable compression use "" (empty string), *no* or *none*. + allocation_hint + a device property that instructs how and when the allocator should use a + block device. + Possible values are: + + METADATA_PREFERRED + the device has an higher priority when a new metadata + chunk is allocated. Data chunk is allowed only if there is no other + possibility. + METADATA_ONLY + the device is used only for metadata chunk. + Data chunk is never allowed. + DATA_PREFERRED (default) + the device has an higher priority when a new data + chunk is allocated. Metadata chunk is allowed only if there is no other + possibility. + DATA_ONLY + the device is used only for data chunk. Metadata chunk is never allowed. + + The default is 'DATA_PREFERRED'; if all the disks have this setting the + allocator uses all of them with the same priority. list [-t ] Lists available properties with their descriptions for the given object.