xfs: make growfs initialise the AGFL header
authorDave Chinner <dchinner@redhat.com>
Mon, 12 Nov 2012 11:54:00 +0000 (22:54 +1100)
committerBen Myers <bpm@sgi.com>
Tue, 13 Nov 2012 22:40:59 +0000 (16:40 -0600)
commitde497688daaabbab425a8a969528272ec1d962a6
tree31721e42e4d6382d338867f18f70dfd0bb09fa9e
parentfd23683c3b1ab905cba61ea2981c156f4bf52845
xfs: make growfs initialise the AGFL header

For verification purposes, AGFLs need to be initialised to a known
set of values. For upcoming CRC changes, they are also headers that
need to be initialised. Currently, growfs does neither for the AGFLs
- it ignores them completely. Add initialisation of the AGFL to be
full of invalid block numbers (NULLAGBLOCK) to put the
infrastructure in place needed for CRC support.

Includes a comment clarification from Jeff Liu.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by Rich Johnston <rjohnston@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_fsops.c