PERFORCE change 82749 for review
soc-cjones
soc-cjones at FreeBSD.org
Mon Aug 29 09:24:35 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=82749
Change 82749 by soc-cjones at soc-cjones_ishtar on 2005/08/29 09:24:12
Make 'help' conform to reality, add 'mv' as alias for 'move'.
Affected files ...
.. //depot/projects/soc2005/gvinum/src/sbin/gvinum/gvinum.c#8 edit
Differences ...
==== //depot/projects/soc2005/gvinum/src/sbin/gvinum/gvinum.c#8 (text+ko) ====
@@ -365,50 +365,40 @@
gvinum_help(void)
{
printf("COMMANDS\n"
- "checkparity plex [-f] [-v]\n"
- " Check the parity blocks of a RAID-4 or RAID-5 plex.\n"
- "create [-f] description-file\n"
- " Create a volume as described in description-file.\n"
- "init [-S size] [-w] plex | subdisk\n"
- " Initialize the contents of a subdisk or all the subdisks"
- " of a\n"
- " plex to all zeros.\n"
- "l | list [-r] [-s] [-v] [-V] [volume | plex | subdisk]\n"
+ "checkparity [-f] plex\n"
+ " Check the parity blocks of a RAID-5 plex.\n"
+ "create description-file\n"
+ " Create as per description-file or open editor.\n"
+ "l | list [-r] [-v] [-V] [volume | plex | subdisk]\n"
" List information about specified objects.\n"
- "ld [-r] [-s] [-v] [-V] [volume]\n"
+ "ld [-r] [-v] [-V] [volume]\n"
" List information about drives.\n"
- "ls [-r] [-s] [-v] [-V] [subdisk]\n"
+ "ls [-r] [-v] [-V] [subdisk]\n"
" List information about subdisks.\n"
- "lp [-r] [-s] [-v] [-V] [plex]\n"
+ "lp [-r] [-v] [-V] [plex]\n"
" List information about plexes.\n"
- "lv [-r] [-s] [-v] [-V] [volume]\n"
+ "lv [-r] [-v] [-V] [volume]\n"
" List information about volumes.\n"
"move | mv -f drive object ...\n"
" Move the object(s) to the specified drive.\n"
- "printconfig [file]\n"
- " Write a copy of the current configuration to file.\n"
"quit Exit the vinum program when running in interactive mode."
" Nor-\n"
" mally this would be done by entering the EOF character.\n"
"rename [-r] [drive | subdisk | plex | volume] newname\n"
" Change the name of the specified object.\n"
- "rebuildparity plex [-f] [-v] [-V]\n"
- " Rebuild the parity blocks of a RAID-4 or RAID-5 plex.\n"
- "rm [-f] [-r] volume | plex | subdisk\n"
+ "rebuildparity plex [-f]\n"
+ " Rebuild the parity blocks of a RAID-5 plex.\n"
+ "rm [-r] volume | plex | subdisk\n"
" Remove an object.\n"
"saveconfig\n"
" Save vinum configuration to disk after configuration"
" failures.\n"
- "setstate state [volume | plex | subdisk | drive]\n"
+ "setstate [-f] state [volume | plex | subdisk | drive]\n"
" Set state without influencing other objects, for"
" diagnostic pur-\n"
" poses only.\n"
- "start [-i interval] [-S size] [-w] volume | plex | subdisk\n"
+ "start [-S size] volume | plex | subdisk\n"
" Allow the system to access the objects.\n"
- "stop [-f] [volume | plex | subdisk]\n"
- " Terminate access to the objects, or stop vinum if no"
- " parameters\n"
- " are specified.\n"
);
return;
@@ -967,6 +957,8 @@
gvinum_list(argc, argv);
else if (!strcmp(argv[0], "move"))
gvinum_move(argc, argv);
+ else if (!strcmp(argv[0], "mv"))
+ gvinum_move(argc, argv);
else if (!strcmp(argv[0], "printconfig"))
gvinum_printconfig(argc, argv);
else if (!strcmp(argv[0], "rename"))
More information about the p4-projects
mailing list