aboutsummaryrefslogtreecommitdiff
path: root/src/sg_sync.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2017-11-03 17:25:54 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2017-11-03 17:25:54 +0000
commit3d464ff0b558af456cd4baa79b609a0940489487 (patch)
tree34269449e8b110a32dcf76143f415c00d5e16efa /src/sg_sync.c
parentd0cecdd78328bc0e43786c418e9cb1fde563decf (diff)
downloadsg3_utils-3d464ff0b558af456cd4baa79b609a0940489487.tar.gz
sg_opcode: check resid and trim response if necessary; sg_rep_zones: expand --help option information
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@728 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_sync.c')
-rw-r--r--src/sg_sync.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sg_sync.c b/src/sg_sync.c
index f0be178a..30b12eb6 100644
--- a/src/sg_sync.c
+++ b/src/sg_sync.c
@@ -29,7 +29,7 @@
* (e.g. disks).
*/
-static const char * version_str = "1.17 20171005";
+static const char * version_str = "1.18 20171103";
#define SYNCHRONIZE_CACHE16_CMD 0x91
#define SYNCHRONIZE_CACHE16_CMDLEN 16
@@ -85,9 +85,9 @@ static void usage()
}
static int
-ll_sync_cache_16(int sg_fd, bool sync_nv, bool immed, int group,
- uint64_t lba, unsigned int num_lb, int to_secs,
- bool noisy, int verbose)
+sg_ll_sync_cache_16(int sg_fd, bool sync_nv, bool immed, int group,
+ uint64_t lba, unsigned int num_lb, int to_secs,
+ bool noisy, int verbose)
{
int res, ret, k, sense_cat;
unsigned char sc_cdb[SYNCHRONIZE_CACHE16_CMDLEN] =
@@ -245,8 +245,8 @@ int main(int argc, char * argv[])
}
if (do_16)
- res = ll_sync_cache_16(sg_fd, sync_nv, immed, group, lba, num_lb,
- to_secs, true, verbose);
+ res = sg_ll_sync_cache_16(sg_fd, sync_nv, immed, group, lba, num_lb,
+ to_secs, true, verbose);
else
res = sg_ll_sync_cache_10(sg_fd, sync_nv, immed, group,
(unsigned int)lba, num_lb, true, verbose);