Remove check for valid log pages. Let the drive tell us which pages
are valid or not. While many pages are reserved in the standard, that doesn't make them invalid and future versions of the standard may define then. Sponsored by: Netflix, Inc
This commit is contained in:
parent
4527c5bbcf
commit
2a51f16fac
@ -262,14 +262,6 @@ logpage(int argc, char *argv[])
|
||||
"\"%s\" not valid log page id.\n",
|
||||
optarg);
|
||||
logpage_usage();
|
||||
/* TODO: Define valid log page id ranges in nvme.h? */
|
||||
} else if (log_page == 0 ||
|
||||
(log_page >= 0x04 && log_page <= 0x7F) ||
|
||||
(log_page >= 0x80 && log_page <= 0xBF)) {
|
||||
fprintf(stderr,
|
||||
"\"%s\" not valid log page id.\n",
|
||||
optarg);
|
||||
logpage_usage();
|
||||
}
|
||||
pageflag = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user