geom(8) invalid error messages

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Aug 27 06:27:40 PDT 2004


On Fri, Aug 27, 2004 at 11:51:29AM +0300, Valentin Nechayev wrote:
+> gstripe, gconcat, etc. says 'unknown command' for an action invalid
+> in current environment.
+> RELENG_5 of Aug, 20.
+> 
+> # gstripe unload
+> root at moiva:~>>
+> #
+> root at moiva:~>>
+> # gstripe unload
+> Unknown command: unload

Yes, geom(8) utility works this way.
There are 3 standard command: load, list and unload.
If any of those command is not avilable, it will not be listed in help
and you get 'unknown command' error message.

'load' command is available if kernel module related to the given class
is not already loaded and there is geom_<class>.ko file in directories
listed in kern.module_path sysctl.

'unload' command is available when kernel module related to the given
class is loaded.

'list' command is available when kernel module related to the given class
is loaded.

Hmm, I should probably inform that command is unavailable instead of it
is unknown.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040827/a19100d5/attachment.bin


More information about the freebsd-current mailing list