diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2012-02-24 19:00:45 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2012-02-24 19:00:45 +0000 |
commit | dfcdb2bc3c00d328233373dfcfa3803ca0726716 (patch) | |
tree | 703875b95af995e5b9bda36b6f0354f4fff9e8bc /src/sg_modes.c | |
parent | c410806c13d2baab90641ef6816866cd6e6bfeff (diff) | |
download | sg3_utils-dfcdb2bc3c00d328233373dfcfa3803ca0726716.tar.gz |
more sync with spc4r34 and sbc3r30
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@442 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_modes.c')
-rw-r--r-- | src/sg_modes.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/sg_modes.c b/src/sg_modes.c index 0bf89b69..d7180493 100644 --- a/src/sg_modes.c +++ b/src/sg_modes.c @@ -1,3 +1,16 @@ +/* + * Copyright (C) 2000-2012 D. Gilbert + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program outputs information provided by a SCSI MODE SENSE command. + * Does 10 byte MODE SENSE commands by default, Trent Piepho added a "-6" + * switch for force 6 byte mode sense commands. + * This utility cannot modify mode pages. See the sdparm utility for that. + */ + #include <unistd.h> #include <fcntl.h> #include <stdio.h> @@ -12,21 +25,7 @@ #include "sg_lib.h" #include "sg_cmds_basic.h" -/* -* Copyright (C) 2000-2011 D. Gilbert -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2, or (at your option) -* any later version. - - This program outputs information provided by a SCSI MODE SENSE command. - Does 10 byte MODE SENSE commands by default, Trent Piepho added a "-6" - switch for force 6 byte mode sense commands. - This utility cannot modify mode pages. See the sdparm utility for that. - -*/ - -static char * version_str = "1.37 20111113"; +static char * version_str = "1.38 20120224"; #define DEF_ALLOC_LEN (1024 * 4) #define DEF_6_ALLOC_LEN 252 |