summaryrefslogtreecommitdiff
path: root/util/nvmutil/nvmutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/nvmutil/nvmutil.c')
-rw-r--r--util/nvmutil/nvmutil.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/util/nvmutil/nvmutil.c b/util/nvmutil/nvmutil.c
index d2bc0aa5..13a4d9db 100644
--- a/util/nvmutil/nvmutil.c
+++ b/util/nvmutil/nvmutil.c
@@ -202,7 +202,6 @@ enum {
CMD_SWAP,
CMD_COPY,
CMD_BRICK,
- CMD_SETCHECKSUM
};
/*
@@ -249,6 +248,10 @@ struct commands {
* Command table, for nvmutil commands
*/
static const struct commands command[] = {
+ /*
+ * Unlike older versions, we now require
+ * both checksums to be valid for "dump".
+ */
{ CMD_DUMP, "dump", cmd_dump, ARGC_3,
NO_INVERT, SET_MOD_OFF,
ARG_NOPART,
@@ -288,15 +291,6 @@ static const struct commands command[] = {
ARG_PART,
CHECKSUM_READ, SKIP_CHECKSUM_WRITE,
NVM_SIZE },
-
- /*
- * The non-target part will not be read.
- */
- { CMD_SETCHECKSUM, "setchecksum", NULL, ARGC_4,
- NO_INVERT, SET_MOD_N,
- ARG_PART,
- SKIP_CHECKSUM_READ, CHECKSUM_WRITE,
- NVM_SIZE },
};
#define MAX_CMD_LEN 50