dumpon(8): Make error messages clearer
authorAaron LI <aly@aaronly.me>
Sun, 23 Sep 2018 04:26:33 +0000 (12:26 +0800)
committerAaron LI <aly@aaronly.me>
Sun, 23 Sep 2018 04:35:28 +0000 (12:35 +0800)
commitbfbb599bba9fbf988628bb6dd678cd03d68dfda5
tree988f804d770d6658a1c650ecd64b64fe830210cc
parent03f2fdd26fee309abfe7c8bdf799f8d35a4e18bf
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
sbin/dumpon/dumpon.8
sbin/dumpon/dumpon.c