Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Oct 2010 20:50:55 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/geom/class/eli geli.8 geom_eli.c src/sys/geom/eli g_eli.c g_eli.h g_eli_ctl.c g_eli_integrity.c g_eli_privacy.c
Message-ID:  <201010202052.o9KKqDPF037452@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pjd         2010-10-20 20:50:55 UTC

  FreeBSD src repository

  Modified files:
    sbin/geom/class/eli  geli.8 geom_eli.c 
    sys/geom/eli         g_eli.c g_eli.h g_eli_ctl.c 
                         g_eli_integrity.c g_eli_privacy.c 
  Log:
  SVN rev 214118 on 2010-10-20 20:50:55Z by pjd
  
  Bring in geli suspend/resume functionality (finally).
  
  Before this change if you wanted to suspend your laptop and be sure that your
  encryption keys are safe, you had to stop all processes that use file system
  stored on encrypted device, unmount the file system and detach geli provider.
  
  This isn't very handy. If you are a lucky user of a laptop where suspend/resume
  actually works with FreeBSD (I'm not!) you most likely want to suspend your
  laptop, because you don't want to start everything over again when you turn
  your laptop back on.
  
  And this is where geli suspend/resume steps in. When you execute:
  
          # geli suspend -a
  
  geli will wait for all in-flight I/O requests, suspend new I/O requests, remove
  all geli sensitive data from the kernel memory (like encryption keys) and will
  wait for either 'geli resume' or 'geli detach'.
  
  Now with no keys in memory you can suspend your laptop without stopping any
  processes or unmounting any file systems.
  
  When you resume your laptop you have to resume geli devices using 'geli resume'
  command. You need to provide your passphrase, etc. again so the keys can be
  restored and suspended I/O requests released.
  
  Of course you need to remember that 'geli suspend' won't clear file system
  cache and other places where data from your geli-encrypted file system might be
  present. But to get rid of those stopping processes and unmounting file system
  won't help either - you have to turn your laptop off. Be warned.
  
  Also note, that suspending geli device which contains file system with geli
  utility (or anything used by 'geli resume') is not very good idea, as you won't
  be able to resume it - when you execute geli(8), the kernel will try to read it
  and this read I/O request will be suspended.
  
  Revision  Changes    Path
  1.30      +93 -1     src/sbin/geom/class/eli/geli.8
  1.38      +59 -0     src/sbin/geom/class/eli/geom_eli.c
  1.53      +100 -26   src/sys/geom/eli/g_eli.c
  1.21      +7 -0      src/sys/geom/eli/g_eli.h
  1.18      +213 -2    src/sys/geom/eli/g_eli_ctl.c
  1.9       +5 -3      src/sys/geom/eli/g_eli_integrity.c
  1.7       +54 -4     src/sys/geom/eli/g_eli_privacy.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010202052.o9KKqDPF037452>