DragonFly BSD
DragonFly commits List (threaded) for 2010-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.


From: Sascha Wildner <swildner@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 23 Sep 2010 02:43:49 -0700 (PDT)

commit 9687cd2753d34cd91571932ad50ae1ba2378a7cb
Author: Sascha Wildner <saw@online.de>
Date:   Thu Sep 23 11:43:06 2010 +0200

    installer: Utilize dumpon(8) and swapoff(8) to turn off dump and swap.
    
    Previously, the installer would block further installation attempts
    once a swap was mounted. This was very inconvenient, e.g. when trying
    to do multiple installs in one session.
    
    It also never issued a 'dumpon off' causing dumping to be enabled
    until rebooting. This caused issues upon reboot when a removable disk
    (eSATA, for example) was unplugged before the reboot.
    
    Now that we have swapoff(8), fix all these issues by turning off
    dumping and swapping once the installation is completed (after
    unmounting). Also, do this in a number of other places (where we
    previously warned) to make sure it all gets deactivated again should
    the user have cancelled a previous installation.

Summary of changes:
 share/installer/cmdnames.conf                    |    2 +
 usr.sbin/installer/dfuibe_installer/flow.c       |   59 ++-------------------
 usr.sbin/installer/dfuibe_installer/fn_install.c |    6 ++
 usr.sbin/installer/libinstaller/diskutil.c       |   17 ++++++
 usr.sbin/installer/libinstaller/diskutil.h       |    1 +
 5 files changed, 32 insertions(+), 53 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9687cd2753d34cd91571932ad50ae1ba2378a7cb


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]