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_reset_wp.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_reset_wp.c')
-rw-r--r-- | src/sg_reset_wp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_reset_wp.c b/src/sg_reset_wp.c index dec3e7ec..0f22647e 100644 --- a/src/sg_reset_wp.c +++ b/src/sg_reset_wp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 Douglas Gilbert. + * Copyright (c) 2014-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. @@ -34,7 +34,7 @@ * device. Based on zbc-r04c.pdf . */ -static const char * version_str = "1.07 20171008"; +static const char * version_str = "1.08 20180210"; #define SG_ZONING_OUT_CMDLEN 16 #define RESET_WRITE_POINTER_SA 0x4 @@ -109,7 +109,7 @@ sg_ll_reset_write_pointer(int sg_fd, uint64_t zid, bool all, bool noisy, 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: |