diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2013-05-08 13:21:30 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2013-05-08 13:21:30 +0000 |
commit | 02ec79b083e6bd32b71937f0b3b6b0108769c184 (patch) | |
tree | cfdea6d63740f214ba6de984af36df0df265587d /src/sg_write_long.c | |
parent | eac58c25208cc3d1ef6a7f4feaf711c161350451 (diff) | |
download | sg3_utils-02ec79b083e6bd32b71937f0b3b6b0108769c184.tar.gz |
sg_xcopy: add --on_src and --on_dst options; C++ cleanup
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@494 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_write_long.c')
-rw-r--r-- | src/sg_write_long.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/sg_write_long.c b/src/sg_write_long.c index cd9d0212..0084e105 100644 --- a/src/sg_write_long.c +++ b/src/sg_write_long.c @@ -1,3 +1,19 @@ +/* A utility program for the Linux OS SCSI subsystem. + * Copyright (C) 2004-2013 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 issues the SCSI command WRITE LONG to a given SCSI device. + * It sends the command with the logical block address passed as the lba + * argument, and the transfer length set to the xfer_len argument. the + * buffer to be writen to the device filled with 0xff, this buffer includes + * the sector data and the ECC bytes. + * + * This code was contributed by Saeed Bishara + */ + #include <unistd.h> #include <fcntl.h> #include <stdio.h> @@ -15,23 +31,7 @@ #include "sg_cmds_basic.h" #include "sg_cmds_extra.h" -/* A utility program for the Linux OS SCSI subsystem. - * Copyright (C) 2004-2010 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 issues the SCSI command WRITE LONG to a given SCSI device. - It sends the command with the logical block address passed as the lba - argument, and the transfer length set to the xfer_len argument. the - buffer to be writen to the device filled with 0xff, this buffer includes - the sector data and the ECC bytes. - - This code was contributed by Saeed Bishara -*/ - -static char * version_str = "1.18 20101215"; +static const char * version_str = "1.18 20130507"; #define MAX_XFER_LEN 10000 |