xfs
[Top] [All Lists]

Re: [PATCH] xfs_copy: fix minor sparse endian nit

To: Eric Sandeen <sandeen@xxxxxxxxxx>
Subject: Re: [PATCH] xfs_copy: fix minor sparse endian nit
From: Carlos Maiolino <cmaiolino@xxxxxxxxxx>
Date: Mon, 20 Jun 2016 12:41:50 +0200
Cc: xfs-oss <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <a51bba5e-01ba-d73b-6fe6-ac3a411c7283@xxxxxxxxxx>
Mail-followup-to: Eric Sandeen <sandeen@xxxxxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx>
References: <a51bba5e-01ba-d73b-6fe6-ac3a411c7283@xxxxxxxxxx>
User-agent: Mutt/1.5.24 (2015-08-30)
On Fri, Jun 17, 2016 at 11:44:44AM -0500, Eric Sandeen wrote:
> The intermediate variable should not have been endian-annotated;
> it is the local cpu representation not the on-disk representation.
> 

Looks good, you can add:

Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx>

> Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx>
> ---
> 
> diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c
> index 2119a0b..1bc5163 100644
> --- a/copy/xfs_copy.c
> +++ b/copy/xfs_copy.c
> @@ -506,7 +506,7 @@ sb_update_uuid(
>        */
>       if (!uuid_equal(&tcarg->uuid, &ag_hdr->xfs_sb->sb_uuid) &&
>           xfs_sb_version_hascrc(sb) && !xfs_sb_version_hasmetauuid(sb)) {
> -             __be32 feat;
> +             __uint32_t feat;
>  
>               feat = be32_to_cpu(ag_hdr->xfs_sb->sb_features_incompat);
>               feat |= XFS_SB_FEAT_INCOMPAT_META_UUID;
> 
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

-- 
Carlos

<Prev in Thread] Current Thread [Next in Thread>