git: dumpon(8): Make error messages clearer

Aaron LI aly at crater.dragonflybsd.org
Sat Sep 22 21:35:58 PDT 2018


commit bfbb599bba9fbf988628bb6dd678cd03d68dfda5
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Sep 23 12:26:33 2018 +0800

    dumpon(8): Make error messages clearer
    
    Before this patch, when a dump device is already configured, dumpon(8)
    only complains with 'Device busy', which isn't helpful.  Now, dumpon(8)
    will tell whether the dump device is already configured or whether need
    to run 'dumpoff' first.
    
    Always show verbose information.  The utility still accepts the '-v'
    option for backward compatibility, but don't mention the option in the
    man page anymore.
    
    Bugs: https://bugs.dragonflybsd.org/issues/3092

Summary of changes:
 sbin/dumpon/dumpon.8 | 22 ++++++++++---------
 sbin/dumpon/dumpon.c | 60 +++++++++++++++++++++++++++++++++++++++-------------
 2 files changed, 57 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/bfbb599bba9fbf988628bb6dd678cd03d68dfda5


-- 
DragonFly BSD source repository


More information about the Commits mailing list