DragonFly bugs List (threaded) for 2009-02
DragonFly BSD
DragonFly bugs List (threaded) for 2009-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1279] vnconfig: unintuitive error message


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 11 Feb 2009 08:24:45 +0000

Stathis Kamperis <ekamperi@gmail.com> added the comment:

: If you forget to specify the filename, vnconfig reports a totally bogus error
: message:
: 
: # vnconfig -s labels -c vn0
: vnconfig: VNIOCATTACH: Numerical argument out of domain

If you don't specify a filename, the code assumes that you want to use a swap
backing store. And since you haven't specified a size via -S, vniocattach_swap()
returns EDOM, which corresponds to "Numerical argument out of domain".

Perhaps make vnconfig print an error:
"Either specify a regular filename or the size of a swap backing store via -S" ?

Cheers,
Stathis

----------
status: unread -> chatting

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1279>
_____________________________________________________



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