Re: [PATCH 12/32] xfs: verify AGF blocks as they are read from disk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave, you botched a copy & paste here:

On Mon, Nov 12, 2012 at 10:54:04PM +1100, Dave Chinner wrote:
> +	agf_ok = agf->agf_magicnum == cpu_to_be32(XFS_AGF_MAGIC) &&
> +		XFS_AGF_GOOD_VERSION(be32_to_cpu(agf->agf_versionnum)) &&
> +		be32_to_cpu(agf->agf_freeblks) <= be32_to_cpu(agf->agf_length) &&
> +		be32_to_cpu(agf->agf_flfirst) < XFS_AGFL_SIZE(mp) &&
> +		be32_to_cpu(agf->agf_fllast) < XFS_AGFL_SIZE(mp) &&
> +		be32_to_cpu(agf->agf_flcount) <= XFS_AGFL_SIZE(mp) &&
> +		be32_to_cpu(agf->agf_flcount) <= XFS_AGFL_SIZE(mp);

See: 
> -	agf_ok =
> -		agf->agf_magicnum == cpu_to_be32(XFS_AGF_MAGIC) &&
> -		XFS_AGF_GOOD_VERSION(be32_to_cpu(agf->agf_versionnum)) &&
> -		be32_to_cpu(agf->agf_freeblks) <= be32_to_cpu(agf->agf_length) &&
> -		be32_to_cpu(agf->agf_flfirst) < XFS_AGFL_SIZE(mp) &&
> -		be32_to_cpu(agf->agf_fllast) < XFS_AGFL_SIZE(mp) &&
> -		be32_to_cpu(agf->agf_flcount) <= XFS_AGFL_SIZE(mp) &&
> -		be32_to_cpu(agf->agf_seqno) == agno;

-Phil

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux