]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geli init with multiple providers - fix init and fix -B "none"
authorBen Woods <woodsb02@FreeBSD.org>
Mon, 10 Sep 2018 14:50:34 +0000 (14:50 +0000)
committerBen Woods <woodsb02@FreeBSD.org>
Mon, 10 Sep 2018 14:50:34 +0000 (14:50 +0000)
commite45068e3c90b43d2d4692b509c4ee2383c3d8e51
treef9660668c5fc75e1b34e30ff332ba02ba129e3c7
parent2c208ed867fb021766bf70f9a8e62ed6a0d34c6a
geli init with multiple providers - fix init and fix -B "none"

Apply some fixes post rS336659, which allowed multiple provders to be
initialized in a single command.
- Fix issue where second and subsequent providers would fail init.
  This was due to the metadata struct being zeroed after the first
  provider init was completed, despite containing common data required
  for subsequent providers.
- Fix issue where -B "none" would still result in the metadata being
  backed-up if multiple providers had been specified. This was due to
  the backupfile of "none" being incorrectly made unique for each
  provider by appending "-<prov>".

Approved by: asomers
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D17096
lib/geom/eli/geom_eli.c