From patchwork Sun Mar 6 18:15:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Goffredo Baroncelli X-Patchwork-Id: 12770884 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 6768DC433EF for ; Sun, 6 Mar 2022 18:16:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232821AbiCFSRL (ORCPT ); Sun, 6 Mar 2022 13:17:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232756AbiCFSRK (ORCPT ); Sun, 6 Mar 2022 13:17:10 -0500 Received: from smtp.tiscali.it (michael.mail.tiscali.it [213.205.33.246]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 58A3865D38 for ; Sun, 6 Mar 2022 10:16:17 -0800 (PST) Received: from venice.bhome ([78.12.27.75]) by michael.mail.tiscali.it with id 36FE270011dDdji016FFc1; Sun, 06 Mar 2022 18:15:15 +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: Sun, 6 Mar 2022 19:15:12 +0100 Message-Id: <28310223e30fc7f44fb1f5e7974fbd3f63dbe2be.1646590206.git.kreijack@inwind.it> X-Mailer: git-send-email 2.35.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=1646590515; bh=qSM8QhaFpQPMUeUvvIuorJmrCscJervHgUpY3t3l2NU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:Reply-To; b=OiSdKM8mwCyJHirFAAWR2gQm8AsFGla3oN3+wKWTjfHmVF7o4eG7apCiStEQBtqn/ c1uhLnN0XJbye7sPFHkFDSd5B7NrvqSE+bY0vaq5TkHibFWC+IHSu8TFnq8SZblhUO /R4lxUlCLY9RqMpln0vAPLZ5uFHbiX832utM+dgI= 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.