Write last disk sector, not last 512-byte block, when testing validity
authorkrw <krw@openbsd.org>
Wed, 30 Apr 2014 14:28:48 +0000 (14:28 +0000)
committerkrw <krw@openbsd.org>
Wed, 30 Apr 2014 14:28:48 +0000 (14:28 +0000)
commitff1cd9579cc00ac8e0e51c0e5b47601c962eb002
tree029fa582d03f5a131fbcb469fe2fa2a3193c3e06
parent5071407dbedd4bba77fcb54f04a84b73d450244b
Write last disk sector, not last 512-byte block, when testing validity
of new partition limit.

Fixes growfs on 4K-sector disks.

Reported by and fix tested by David Vasek via misc@.
sbin/growfs/growfs.c