HomeFreeBSD

geli(8): Do not report error on resize to the same size.

Description

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.

Details

Provenance
mavAuthored on Aug 18 2021, 9:11 PM
Parents
rGc261b6ea4e2e: iscsi: Teach the iSCSI stack about "large" received PDUs.
Branches
Unknown
Tags
Unknown