aboutsummaryrefslogtreecommitdiff
path: root/src/sg_compare_and_write.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2013-05-08 13:21:30 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2013-05-08 13:21:30 +0000
commit02ec79b083e6bd32b71937f0b3b6b0108769c184 (patch)
treecfdea6d63740f214ba6de984af36df0df265587d /src/sg_compare_and_write.c
parenteac58c25208cc3d1ef6a7f4feaf711c161350451 (diff)
downloadsg3_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_compare_and_write.c')
-rw-r--r--src/sg_compare_and_write.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/sg_compare_and_write.c b/src/sg_compare_and_write.c
index c9734bb7..b13d5220 100644
--- a/src/sg_compare_and_write.c
+++ b/src/sg_compare_and_write.c
@@ -48,7 +48,7 @@
*
*/
-static const char * version_str = "1.02 20130117";
+static const char * version_str = "1.03 20130507";
#define DEF_BLOCK_SIZE 512
#define DEF_NUM_BLOCKS (1)
@@ -79,6 +79,14 @@ static struct option long_options[] = {
{0, 0, 0, 0},
};
+struct caw_flags {
+ int dpo;
+ int fua;
+ int fua_nv;
+ int group;
+ int wrprotect;
+};
+
struct opts_t {
char ifilename[256];
uint64_t lba;
@@ -87,13 +95,7 @@ struct opts_t {
int timeout;
int xfer_len;
const char * device_name;
- struct caw_flags {
- int dpo;
- int fua;
- int fua_nv;
- int group;
- int wrprotect;
- } flags;
+ struct caw_flags flags;
} opts;
static void