diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2018-02-11 05:01:16 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2018-02-11 05:01:16 +0000 |
commit | 5bdce507b09d32f452a390c22cb98ae7f840c151 (patch) | |
tree | 40f080676d587b650cfa3133e7dcf3ab3084af0c /src/sg_sync.c | |
parent | 4a5962a81447bb60cca7e51dd005b3bdaab1452b (diff) | |
download | sg3_utils-5bdce507b09d32f452a390c22cb98ae7f840c151.tar.gz |
fix compile error in sg_pt_win32.c when NVME_IGNORE; sg_raw: add --cmdfile=CF option
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@752 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_sync.c')
-rw-r--r-- | src/sg_sync.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_sync.c b/src/sg_sync.c index 30b12eb6..152474fa 100644 --- a/src/sg_sync.c +++ b/src/sg_sync.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2017 Douglas Gilbert. + * Copyright (c) 2004-2018 Douglas Gilbert. * All rights reserved. * Use of this source code is governed by a BSD-style * license that can be found in the BSD_LICENSE file. @@ -29,7 +29,7 @@ * (e.g. disks). */ -static const char * version_str = "1.18 20171103"; +static const char * version_str = "1.19 20180210"; #define SYNCHRONIZE_CACHE16_CMD 0x91 #define SYNCHRONIZE_CACHE16_CMDLEN 16 @@ -122,7 +122,7 @@ sg_ll_sync_cache_16(int sg_fd, bool sync_nv, bool immed, int group, SG_NO_DATA_IN, sense_b, noisy, verbose, &sense_cat); if (-1 == ret) - ; + ret = sg_convert_errno(get_scsi_pt_os_err(ptvp)); else if (-2 == ret) { switch (sense_cat) { case SG_LIB_CAT_RECOVERED: |