git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] docs: fix api-trace2 doc for "too_many_files" event

From
Josh Steadmon <steadmon@google.com>
Date
Jun 4, 2021, 02:41 UTC
Message-ID
<07a3f409730fb7d725042ee24b7556d17efe4676.1622774341.git.steadmon@google.com>

In 87db61a (trace2: write discard message to sentinel files, 2019-10-04), we added a new "too_many_files" event for when trace2 logging would create too many files in an output directory. Unfortunately, the api-trace2 doc described a "discard" event instead. Fix the doc to use the correct event name.

Signed-off-by: Josh Steadmon <steadmon@google.com>
---
 Documentation/technical/api-trace2.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/technical/api-trace2.txt b/Documentation/technical/api-trace2.txt
index 3f52f981a2..037a91cbca 100644
--- a/Documentation/technical/api-trace2.txt
+++ b/Documentation/technical/api-trace2.txt
@@ -396,14 +396,14 @@ only present on the "start" and "atexit" events.
 }
 ------------
 
-`"discard"`::
+`"too_many_files"`::
 	This event is written to the git-trace2-discard sentinel file if there
 	are too many files in the target trace directory (see the
 	trace2.maxFiles config option).
 +
 ------------
 {
-	"event":"discard",
+	"event":"too_many_files",
 	...
 }
 ------------
-- 
2.32.0.rc1.229.g3e70b5a671-goog
Next: Junio C Hamano
Message 1 of 2 in “docs: fix api-trace2 doc for "too_many_files" event”
  1. docs: fix api-trace2 doc for "too_many_files" eventJosh Steadmon, Jun 4, 2021
  2. Junio C HamanoJun 4, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.