aboutsummaryrefslogtreecommitdiff
path: root/src/sg_unmap.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2011-09-02 05:19:40 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2011-09-02 05:19:40 +0000
commitf9583009994292d8bf7033ec777a1e7368790c3a (patch)
tree326b04f7a02afbf325b26d3b5f80cf9771306912 /src/sg_unmap.c
parentdd4aab9b7be82fe425a0f97a7c78f0b4ec4cc16b (diff)
downloadsg3_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/sg_unmap.c')
-rw-r--r--src/sg_unmap.c23
1 files changed, 12 insertions, 11 deletions
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"