1SG_ZONE(8) SG3_UTILS SG_ZONE(8)
2
3
4
6 sg_zone - send SCSI OPEN, CLOSE, FINISH or SEQUENTIALIZE ZONE command
7
9 sg_zone [--all] [--close] [--count=ZC] [--finish] [--help] [--open]
10 [--sequentialize] [--verbose] [--version] [--zone=ID] DEVICE
11
13 Sends a SCSI OPEN ZONE, CLOSE ZONE, FINISH ZONE or SEQUENTIALIZE ZONE
14 command to the DEVICE. All but the last are found in the soon to be
15 released ZBC standard (close to draft ZBC BSR INCITS 536 revision 05).
16 The SEQUENTIALIZE ZONE command was added in zbc2r01b.
17
18 One and only one of the --open, --close, --finish and --sequentialize
19 options can be chosen.
20
22 Arguments to long options are mandatory for short options as well.
23
24 -a, --all
25 sets the ALL field in the cdb.
26
27 -c, --close
28 causes the CLOSE ZONE command to be sent to the DEVICE.
29
30 -C, --count=ZC
31 ZC is placed in the Zone Count field in the cdb of all four com‐
32 mands supported by this utility. ZC should be a value from 0 to
33 65535 (0xffff) inclusive.
34
35 -f, --finish
36 causes the FINISH ZONE command to be sent to the DEVICE.
37
38 -h, --help
39 output the usage message then exit.
40
41 -o, --open
42 causes the OPEN ZONE command to be sent to the DEVICE.
43
44 -S, --sequentialize
45 causes the SEQUENTIALIZE ZONE command to be sent to the DEVICE.
46
47 -v, --verbose
48 increase the level of verbosity, (i.e. debug output).
49
50 -V, --version
51 print the version string and then exit.
52
53 -z, --zone=ID
54 where ID is placed in the cdb's ZONE ID field. A zone id is a
55 zone start logical block address (LBA). The default value is 0.
56 ID is assumed to be in decimal unless prefixed with '0x' or has
57 a trailing 'h' which indicate hexadecimal.
58
60 The exit status of sg_zone is 0 when it is successful. Otherwise see
61 the sg3_utils(8) man page.
62
64 Written by Douglas Gilbert.
65
67 Report bugs to <dgilbert at interlog dot com>.
68
70 Copyright © 2014-2018 Douglas Gilbert
71 This software is distributed under a FreeBSD license. There is NO war‐
72 ranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR‐
73 POSE.
74
76 sg_rep_zones,sg_reset_wp(sg3_utils)
77
78
79
80sg3_utils-1.43 May 2018 SG_ZONE(8)