git: 05322eec86ae - main - nvmecontrol: Always set the RAE bit on telemetry-log requests

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 02 Feb 2026 13:31:23 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=05322eec86ae42a8f873ba10d8da61bd61b5b48f

commit 05322eec86ae42a8f873ba10d8da61bd61b5b48f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2026-02-02 13:30:08 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-02-02 13:31:21 +0000

    nvmecontrol: Always set the RAE bit on telemetry-log requests
    
    nvme-cli, as well as some vendor scripts, always set the RAE bit of the
    GET LOG PAGE request when retrieving telemetry logs to avoid the log
    getting reset to something new. Adopt that praactice here (nvme-cli
    telemetry-log does have a --rae option, but that just turns on the rae
    bit which defaults to being on: there's no way to turn it off).
    
    Sponsored by:           Netflix
    Differential Revision:  https://reviews.freebsd.org/D55017
---
 sbin/nvmecontrol/telemetry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sbin/nvmecontrol/telemetry.c b/sbin/nvmecontrol/telemetry.c
index 72c304229a80..bfa1325974d5 100644
--- a/sbin/nvmecontrol/telemetry.c
+++ b/sbin/nvmecontrol/telemetry.c
@@ -136,7 +136,7 @@ telemetry_log(const struct cmd *f, int argc, char *argv[])
 	/* Read the log page */
 	size = sizeof(tlp);
 	off = 0;
-	read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 0,
+	read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, true,
 	    off, 0, 0, 0, &tlp, size);
 	switch(opt.da) {
 	case 1:
@@ -158,7 +158,7 @@ telemetry_log(const struct cmd *f, int argc, char *argv[])
 	do {
 		if (chunk > size)
 			chunk = size;
-		read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 0,
+		read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, true,
 		    off, 0, 0, 0, &buf, chunk);
 		if (off == 0) {
 			/*