[issue1279] vnconfig: unintuitive error message

Stathis Kamperis (via DragonFly issue tracker) sinknull at crater.dragonflybsd.org
Wed Feb 11 00:26:40 PST 2009


Stathis Kamperis <ekamperi at 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 at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1279>
_____________________________________________________





More information about the Bugs mailing list