aboutsummaryrefslogtreecommitdiff
path: root/src/sg_dd.c
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2018-03-30 17:49:57 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2018-03-30 17:49:57 +0000
commita66b91ad7e4878df47af0229b19d897bff3d47c8 (patch)
treecb376edc28d2dcb852aff6ead115c34e9d95c611 /src/sg_dd.c
parent382e35d67e18ba68f56c95b2a130d5467d2a2ccd (diff)
downloadsg3_utils-a66b91ad7e4878df47af0229b19d897bff3d47c8.tar.gz
sg_lib: add SG_LIB_LBA_OUT_OF_RANGE; sg_format: add --dry-run; sg_unmap: add --all=ST,RN[,LA] , --dry-run + --force
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@765 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src/sg_dd.c')
-rw-r--r--src/sg_dd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_dd.c b/src/sg_dd.c
index a7d48f34..6abc50f4 100644
--- a/src/sg_dd.c
+++ b/src/sg_dd.c
@@ -62,7 +62,7 @@
#include "sg_unaligned.h"
#include "sg_pr2serr.h"
-static const char * version_str = "5.96 20180219";
+static const char * version_str = "5.97 20180219";
#define ME "sg_dd: "
@@ -1256,7 +1256,7 @@ open_if(const char * inf, int64_t skip, int bpt, struct flags_t * ifp,
}
if (vb)
pr2serr(" open input(sg_io), flags=0x%x\n", fl | flags);
- if (sg_simple_inquiry(infd, &sir, 0, (vb ? (vb - 1) : 0))) {
+ if (sg_simple_inquiry(infd, &sir, false, (vb ? (vb - 1) : 0))) {
pr2serr("INQUIRY failed on %s\n", inf);
goto other_err;
}
@@ -1378,7 +1378,7 @@ open_of(const char * outf, int64_t seek, int bpt, struct flags_t * ofp,
}
if (vb)
pr2serr(" open output(sg_io), flags=0x%x\n", flags);
- if (sg_simple_inquiry(outfd, &sir, 0, (vb ? (vb - 1) : 0))) {
+ if (sg_simple_inquiry(outfd, &sir, false, (vb ? (vb - 1) : 0))) {
pr2serr("INQUIRY failed on %s\n", outf);
goto other_err;
}