]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geli(8): Do not report error on resize to the same size.
authorAlexander Motin <mav@FreeBSD.org>
Wed, 18 Aug 2021 21:11:03 +0000 (17:11 -0400)
committerAlexander Motin <mav@FreeBSD.org>
Fri, 17 Sep 2021 01:39:21 +0000 (21:39 -0400)
commit3c1c3728f32cc71a3694f13be0610db5ff88519c
treee4a4bcc255ffec41160e4d416889224aa9d7f4ca
parent988f3108b6a85c76a5dadef7c11b73ea7baa886b
geli(8): Do not report error on resize to the same size.

Just validate the old metadata and exit.  Originally the check was
added to not thash the only copy of metadata, but we can achieve the
same just by skipping the writing/trashing.  The metadata validation
should protect user from wrongly specifying new size instead of old.

MFC after: 1 month
Sponsored by: iXsystems, Inc.

(cherry picked from commit c7cf100aafb4cb881e05a5153de152907f6c07f3)
lib/geom/eli/geom_eli.c