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 0D82DC4332F for ; Wed, 8 Nov 2023 16:27:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229581AbjKHQ1C (ORCPT ); Wed, 8 Nov 2023 11:27:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjKHQ1B (ORCPT ); Wed, 8 Nov 2023 11:27:01 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC943D41 for ; Wed, 8 Nov 2023 08:26:59 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 392A6C433C7; Wed, 8 Nov 2023 16:26:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1699460819; bh=MGiSfKu+ppUDpHyrUi7qN5X0vifL9e+kEkDMo8QHIJQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YEhS9ra2qup1iIAFXl/DcvOrd/st3uMCPaNM/yWCbrjM4cj1QWxgrLSnLvVIjI0gp AE/1NqHv3xmLpMB5XcRkMflolUsf225WBFsr8DGVZWfnma7vraYY7vZf5CrGN1L+3H g39GbMb2VB7iXnhfu/en0HSh90tE9//9msYDcYtzIUtHy10PoGycwvQhZufXvb1uMr ya3KJX5AgdjEjm+RK1vQseneB48UdyfZLvtdHpPgeOM56r4THYPqmZLslcQMkBYHml BDBuZB+NuiVVuf9nEna5LI70RwvpMlwpfDEEl9u7PdI7/JUq+gxDxXBQdQy4a1kSkM YCGqV+9gnJXTg== Date: Wed, 8 Nov 2023 08:26:58 -0800 From: "Darrick J. Wong" To: Chandan Babu R Cc: linux-xfs@vger.kernel.org, cem@kernel.org Subject: Re: [PATCH V2 1/2] metadump.asciidoc: Add description for version v1's mb_info field Message-ID: <20231108162658.GU1205143@frogsfrogsfrogs> References: <20231108083228.1278837-1-chandan.babu@oracle.com> <20231108083228.1278837-2-chandan.babu@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231108083228.1278837-2-chandan.babu@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Wed, Nov 08, 2023 at 02:02:27PM +0530, Chandan Babu R wrote: > mb_reserved has been replaced with mb_info in upstream xfsprogs. This commit > adds description for valid bits of mb_info field. > > Signed-off-by: Chandan Babu R Looks good, Reviewed-by: Darrick J. Wong --D > --- > .../metadump.asciidoc | 23 ++++++++++++++++--- > 1 file changed, 20 insertions(+), 3 deletions(-) > > diff --git a/design/XFS_Filesystem_Structure/metadump.asciidoc b/design/XFS_Filesystem_Structure/metadump.asciidoc > index 2bddb77..2f35b7e 100644 > --- a/design/XFS_Filesystem_Structure/metadump.asciidoc > +++ b/design/XFS_Filesystem_Structure/metadump.asciidoc > @@ -21,7 +21,7 @@ struct xfs_metablock { > __be32 mb_magic; > __be16 mb_count; > uint8_t mb_blocklog; > - uint8_t mb_reserved; > + uint8_t mb_info; > __be64 mb_daddr[]; > }; > ---- > @@ -37,8 +37,25 @@ Number of blocks indexed by this record. This value must not exceed +(1 > The log size of a metadump block. This size of a metadump block 512 > bytes, so this value should be 9. > > -*mb_reserved*:: > -Reserved. Should be zero. > +*mb_info*:: > +Flags describing a metadata dump. > + > +[options="header"] > +|===== > +| Flag | Description > +| +XFS_METADUMP_INFO_FLAGS+ | > +The remaining bits in this field are valid. > + > +| +XFS_METADUMP_OBFUSCATED+ | > +File names and extended attributes have been obfuscated. > + > +| +XFS_METADUMP_FULLBLOCKS+ | > +Metadata blocks have been copied in full i.e. stale bytes have not > +been zeroed out. > + > +| +XFS_METADUMP_DIRTYLOG+ | > +Log was dirty. > +|===== > > *mb_daddr*:: > An array of disk addresses. Each of the +mb_count+ blocks (of size +(1 > -- > 2.39.1 >