]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't use the whole free space when resizing partition to a larger size
authorAndrey V. Elsukov <ae@FreeBSD.org>
Thu, 8 Sep 2011 04:14:16 +0000 (04:14 +0000)
committerAndrey V. Elsukov <ae@FreeBSD.org>
Thu, 8 Sep 2011 04:14:16 +0000 (04:14 +0000)
commit6a0a87741b7f0a9dadaa6229c06eac3a535f6c6c
tree24ce23462b5024bc481a59cca4ac09d635baac24
parentfc4de9b7fcbfc6729ca663011d583374eda15751
Don't use the whole free space when resizing  partition to a larger size
on a disk with non zero stripesize (e.g. disks with 4k sector size)[1].
Also do not use automatic alignment when size is exactly specified, but
an alignment is not. Use automatic alignment only for case when user
omits both "-s" and "-a" options.

Reported by: Mikael Fridh <frimik at gmail> [1]
Approved by: re (kib)
MFC after: 1 week
sbin/geom/class/part/geom_part.c