summaryrefslogtreecommitdiffstats
path: root/tools/regression/geom_eli/detach-l.t
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2008-08-29 18:10:18 +0000
committerpjd <pjd@FreeBSD.org>2008-08-29 18:10:18 +0000
commiteb18064487ed6a8c0ca47f06cec5edffb701eaf4 (patch)
treeae13fdadfbbe981bbb8657afa529a68844db7293 /tools/regression/geom_eli/detach-l.t
parentfb302986669162fa39b6310d7852659f6df20b2e (diff)
downloadFreeBSD-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/detach-l.t')
-rw-r--r--tools/regression/geom_eli/detach-l.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/regression/geom_eli/detach-l.t b/tools/regression/geom_eli/detach-l.t
index ae6c3b2..dfa3269 100644
--- a/tools/regression/geom_eli/detach-l.t
+++ b/tools/regression/geom_eli/detach-l.t
@@ -11,7 +11,7 @@ echo "1..4"
dd if=/dev/random of=${keyfile} bs=512 count=16 >/dev/null 2>&1
-geli init -P -K $keyfile md${no}
+geli init -B none -P -K $keyfile md${no}
geli attach -p -k $keyfile md${no}
if [ -c /dev/md${no}.eli ]; then
echo "ok 1"
OpenPOWER on IntegriCloud