]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: Don't ever try to set the device blocksize
authorEric Sandeen <sandeen@sandeen.net>
Wed, 23 Feb 2011 16:28:55 +0000 (10:28 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Wed, 23 Feb 2011 16:28:55 +0000 (10:28 -0600)
commit29622975322678fc5fa875ed02879e7c37b83b07
tree5a4feb266d26cae5a95d17d1cb12b768ad871a4f
parentbd5683fe13e8b83ac84aeeda30801ba413076bba
xfs_repair: Don't ever try to set the device blocksize

On 4k devices, we get this warning from repair:

# xfs_repair /dev/sdc2
xfs_repair: warning - cannot set blocksize 512 on block device /dev/sdc2: Invalid argument
Phase 1 - find and verify superblock...
...

but things proceed without trouble after that.

I'm unable to find any history or reason for setting the
device blocksize at the beginning of repair, and in any case,
things clearly work without doing so.  So, let's just remove it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
repair/init.c