diff options
Diffstat (limited to 'sgp_dd.c')
-rw-r--r-- | sgp_dd.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -52,7 +52,7 @@ */ -static char * version_str = "5.18 20041011"; +static char * version_str = "5.19 20041029"; #define DEF_BLOCK_SIZE 512 #define DEF_BLOCKS_PER_TRANSFER 128 @@ -65,7 +65,7 @@ static char * version_str = "5.18 20041011"; #define SENSE_BUFF_LEN 32 /* Arbitrary, could be larger */ #define READ_CAP_REPLY_LEN 8 -#define RCAP16_REPLY_LEN 12 +#define RCAP16_REPLY_LEN 32 #ifndef SERVICE_ACTION_IN #define SERVICE_ACTION_IN 0x9e @@ -1325,11 +1325,11 @@ int main(int argc, char * argv[]) if (do_sync) { if (FT_SG == rcoll.out_type) { fprintf(stderr, ">> Synchronizing cache on %s\n", outf); - res = sg_ll_sync_cache(rcoll.outfd, 0, 0, 0); + res = sg_ll_sync_cache(rcoll.outfd, 0, 0, 0, 0); if (2 == res) { fprintf(stderr, "Unit attention, media changed(in), continuing\n"); - res = sg_ll_sync_cache(rcoll.outfd, 0, 0, 0); + res = sg_ll_sync_cache(rcoll.outfd, 0, 0, 0, 0); } if (0 != res) fprintf(stderr, "Unable to synchronize cache\n"); |