aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-02-11 23:50:56 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-02-11 23:50:56 +0000
commitb3918431020005cc1fbf1d3fe836da0048c15c8c (patch)
tree8cbe98912fe835d3367ac1bcad6534c36bfdbed9 /src
parent9939d8d804d0ce423824836173c296daf4e13e99 (diff)
downloadsg3_utils-b3918431020005cc1fbf1d3fe836da0048c15c8c.tar.gz
sg_format: allow disk formats on ZBC (zoned) disks
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@937 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'src')
-rw-r--r--src/sg_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sg_format.c b/src/sg_format.c
index 19d1203a..6c963af2 100644
--- a/src/sg_format.c
+++ b/src/sg_format.c
@@ -40,7 +40,7 @@
#include "sg_pr2serr.h"
#include "sg_pt.h"
-static const char * version_str = "1.65 20220127";
+static const char * version_str = "1.66 20220211";
#define RW_ERROR_RECOVERY_PAGE 1 /* can give alternate with --mode=MP */
@@ -1589,9 +1589,9 @@ main(int argc, char **argv)
pdt = PDT_MASK & inq_resp[0];
if (op->format) {
if ((PDT_DISK != pdt) && (PDT_OPTICAL != pdt) &&
- (PDT_RBC != pdt)) {
+ (PDT_RBC != pdt) && (PDT_ZBC != pdt)) {
pr2serr("This format is only defined for disks "
- "(using SBC-2 or RBC) and MO media\n");
+ "(using SBC-2+, ZBC or RBC) and MO media\n");
ret = SG_LIB_CAT_MALFORMED;
goto out;
}