{
    "mode": "man",
    "parameter": "sg_reset_wp",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/sg_reset_wp/8/json",
    "generated": "2026-06-14T08:02:34Z",
    "synopsis": "sgresetwp [--all] [--count=ZC] [--help] [--verbose] [--version] [--zone=ID] DEVICE",
    "sections": {
        "NAME": {
            "content": "sgresetwp - send SCSI RESET WRITE POINTER command\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "sgresetwp [--all] [--count=ZC] [--help] [--verbose] [--version] [--zone=ID] DEVICE\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Sends  a SCSI RESET WRITE POINTER command to the DEVICE. This command is found in the soon to\nbe released ZBC standard (draft prior to standard: zbc-r05.pdf).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Arguments to long options are mandatory for short options as well.\n",
            "subsections": [
                {
                    "name": "-a --all",
                    "content": "sets the ALL field in the cdb. This causes a reset write pointer operation of all open\nzones  and full zones. When this option is given then the --zone=ID option is ignored.\nEither this option or the --zone=ID option is required.\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-C --count",
                    "content": "ZC is placed in the Zone Count field in the cdb of the  RESET  WRITE  POINTER  command\nsupported by this utility. ZC should be a value from 0 to 65535 (0xffff) inclusive.\n",
                    "flag": "-C",
                    "long": "--count"
                },
                {
                    "name": "-h --help",
                    "content": "output the usage message then exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-v --verbose",
                    "content": "increase the level of verbosity, (i.e. debug output).\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "-V --version",
                    "content": "print the version string and then exit.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-z --zone",
                    "content": "where ID is placed in the cdb's ZONE ID field. A zone id is a zone start logical block\naddress (LBA). This causes a reset write pointer operation on the zone  identified  by\nthe  ZONE  ID field. The default value is 0. Either this option or the --all option is\nrequired.  ID is assumed to be in decimal unless prefixed with '0x' or has a  trailing\n'h' which indicate hexadecimal.\n",
                    "flag": "-z",
                    "long": "--zone"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "The exit status of sgresetwp is 0 when it is successful. Otherwise see the sg3utils(8) man\npage.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Written by Douglas Gilbert.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <dgilbert at interlog dot com>.\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2014-2018 Douglas Gilbert\nThis software is distributed under a FreeBSD license. There is NO warranty; not even for MER‐\nCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "sgrepzones,sgzone(sg3utils)\n\n\n\nsg3utils-1.43                                May 2018                                SGRESETWP(8)",
            "subsections": []
        }
    },
    "summary": "sgresetwp - send SCSI RESET WRITE POINTER command",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "sets the ALL field in the cdb. This causes a reset write pointer operation of all open zones and full zones. When this option is given then the --zone=ID option is ignored. Either this option or the --zone=ID option is required."
        },
        {
            "flag": "-C",
            "long": "--count",
            "arg": null,
            "description": "ZC is placed in the Zone Count field in the cdb of the RESET WRITE POINTER command supported by this utility. ZC should be a value from 0 to 65535 (0xffff) inclusive."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "output the usage message then exit."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "increase the level of verbosity, (i.e. debug output)."
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print the version string and then exit."
        },
        {
            "flag": "-z",
            "long": "--zone",
            "arg": null,
            "description": "where ID is placed in the cdb's ZONE ID field. A zone id is a zone start logical block address (LBA). This causes a reset write pointer operation on the zone identified by the ZONE ID field. The default value is 0. Either this option or the --all option is required. ID is assumed to be in decimal unless prefixed with '0x' or has a trailing 'h' which indicate hexadecimal."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "sgzone",
            "section": "sg3utils",
            "url": "https://www.chedong.com/phpMan.php/man/sgzone/sg3utils/json"
        }
    ]
}