From f9583009994292d8bf7033ec777a1e7368790c3a Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 2 Sep 2011 05:19:40 +0000 Subject: 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 --- src/sg_unmap.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/sg_unmap.c') 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" -- cgit v1.2.3