diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2011-09-02 05:19:40 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2011-09-02 05:19:40 +0000 |
commit | f9583009994292d8bf7033ec777a1e7368790c3a (patch) | |
tree | 326b04f7a02afbf325b26d3b5f80cf9771306912 /src | |
parent | dd4aab9b7be82fe425a0f97a7c78f0b4ec4cc16b (diff) | |
download | sg3_utils-f9583009994292d8bf7033ec777a1e7368790c3a.tar.gz |
sg_ses: small fix; sg_unmap: code doco
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@413 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src')
-rw-r--r-- | src/sg_ses.c | 4 | ||||
-rw-r--r-- | src/sg_unmap.c | 23 |
2 files changed, 14 insertions, 13 deletions
diff --git a/src/sg_ses.c b/src/sg_ses.c index 59d1c62a..6927a35a 100644 --- a/src/sg_ses.c +++ b/src/sg_ses.c @@ -27,7 +27,7 @@ * commands tailored for SES (enclosure) devices. */ -static char * version_str = "1.56 20110622"; /* ses3r03 */ +static char * version_str = "1.56 20110901"; /* ses3r03 */ #define MX_ALLOC_LEN 4096 #define MX_ELEM_HDR 1024 @@ -410,7 +410,7 @@ usage() "for '-d';\n" " when used twice outputs page in binary " "to stdout\n" - " --set=STR|-G STR set value of field by acronym or " + " --set=STR|-S STR set value of field by acronym or " "position\n" " --status|-s fetch status information (default " "action)\n" diff --git a/src/sg_unmap.c b/src/sg_unmap.c index db151a7f..f7411cc9 100644 --- a/src/sg_unmap.c +++ b/src/sg_unmap.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2010 Douglas Gilbert. + * Copyright (c) 2009-2011 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -29,7 +29,7 @@ * logical blocks. */ -static char * version_str = "1.01 20100331"; +static char * version_str = "1.02 20110831"; #define DEF_TIMEOUT_SECS 60 @@ -54,22 +54,23 @@ usage() { fprintf(stderr, "Usage: " "sg_unmap [--anchor] [--grpnum=GN] [--help] [--in=FILE]\n" - " [--lba=LBA,LBA..] [--num=NUM,NUM...] " + " [--lba=LBA,LBA...] [--num=NUM,NUM...] " "[--timeout=TO]\n" " [--verbose] [--version] DEVICE\n" " where:\n" " --anchor|-a set anchor field in cdb\n" " --grpnum=GN|-g GN GN is group number field (def: 0)\n" " --help|-h print out usage message\n" - " --in=FILE|-I FILE read LBA, NUM pairs in ASCII hex " - "from FILE\n" - " ('-I -' means read from stdin)\n" - " --lba=LBA,LBA...|-l LBA,LBA... LBA is the logical block " - "address to\n" - " start NUM unmaps\n" - " --num=NUM,NUM...|-n NUM,NUM... NUM is number of logical " + " --in=FILE|-I FILE read LBA, NUM pairs from FILE (if " + "FILE is '-'\n" + " then stdin is read)\n" + " --lba=LBA,LBA...|-l LBA,LBA... LBA is the logical block " + "address\n" + " to start NUM unmaps\n" + " --num=NUM,NUM...|-n NUM,NUM... NUM is number of logical " "blocks to\n" - " unmap\n" + " unmap starting at " + "corresponding LBA\n" " --timeout=TO|-t TO command timeout (unit: seconds) " "(def: 60)\n" " --verbose|-v increase verbosity\n" |