mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
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
8b560139a2
commit
fbc3f2995e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308848
@ -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