]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
mkfs: factor writing AG headers
authorDave Chinner <dchinner@redhat.com>
Wed, 6 Dec 2017 23:14:27 +0000 (17:14 -0600)
committerEric Sandeen <sandeen@redhat.com>
Wed, 6 Dec 2017 23:14:27 +0000 (17:14 -0600)
commit0ff1b0ed515a0c70d2a445ca9f79edecfdd7829e
tree90d267dba6202887b1253cddb4b1911e0ea920d1
parente99bf83d96b805e142010ea91dfee83cdf8b4248
mkfs: factor writing AG headers

There are some slight changes to the way log alignment is calculated
in the change. Instead of using a flag, it checks the log start
block to see if it's different to the first free block in the log
AG, and if it is different then does the aligned setup. This means
we no longer have to care if the log is aligned or not, the code
will do the right thing in all cases.

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
mkfs/xfs_mkfs.c