diff options
author | pjd <pjd@FreeBSD.org> | 2008-08-29 18:10:18 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-08-29 18:10:18 +0000 |
commit | eb18064487ed6a8c0ca47f06cec5edffb701eaf4 (patch) | |
tree | ae13fdadfbbe981bbb8657afa529a68844db7293 /tools/regression/geom_eli/setkey.t | |
parent | fb302986669162fa39b6310d7852659f6df20b2e (diff) | |
download | FreeBSD-src-eb18064487ed6a8c0ca47f06cec5edffb701eaf4.zip FreeBSD-src-eb18064487ed6a8c0ca47f06cec5edffb701eaf4.tar.gz |
By default backup geli metadata to a file. It is quite critical 512 bytes,
once it is lost, all data is gone.
Option '-B none' can by used to prevent backup. Option '-B path' can be
used to backup metadata to a different file than the default, which is
/var/backups/<prov>.eli.
The 'geli init' command also prints backup file location and gives short
procedure how to restore metadata.
The 'geli setkey' command now warns that even after passphrase change or keys
update there could be version of the master key encrypted with old
keys/passphrase in the backup file.
Add regression tests to verify that new functionality works as expected.
Update other regression tests so they don't create backup files.
Reviewed by: keramida, rink
Dedicated to: a friend who lost 400GB of his live by accidentally overwritting geli metadata
MFC after: 2 weeks
Diffstat (limited to 'tools/regression/geom_eli/setkey.t')
-rw-r--r-- | tools/regression/geom_eli/setkey.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/geom_eli/setkey.t b/tools/regression/geom_eli/setkey.t index a219188..611471a 100644 --- a/tools/regression/geom_eli/setkey.t +++ b/tools/regression/geom_eli/setkey.t @@ -22,7 +22,7 @@ dd if=/dev/random of=${keyfile3} bs=512 count=16 >/dev/null 2>&1 dd if=/dev/random of=${keyfile4} bs=512 count=16 >/dev/null 2>&1 dd if=/dev/random of=${keyfile5} bs=512 count=16 >/dev/null 2>&1 -geli init -P -K $keyfile1 md${no} +geli init -B none -P -K $keyfile1 md${no} geli attach -p -k $keyfile1 md${no} dd if=${rnd} of=/dev/md${no}.eli bs=512 count=${sectors} 2>/dev/null |