chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: by default do not decompress dat objects larger than 64K
[elogind.git]
/
src
/
journal
/
coredumpctl.c
diff --git
a/src/journal/coredumpctl.c
b/src/journal/coredumpctl.c
index 4adc9236f1fd3428d6f98ea3725a21e927a8f84f..f9cebb7a423dbb4b225b20b283b4684fc8e1f0f9 100644
(file)
--- a/
src/journal/coredumpctl.c
+++ b/
src/journal/coredumpctl.c
@@
-342,6
+342,11
@@
static int dump_list(sd_journal *j) {
assert(j);
assert(j);
+ /* The coredumps are likely to compressed, and for just
+ * listing them we don#t need to decompress them, so let's
+ * pick a fairly low data threshold here */
+ sd_journal_set_data_threshold(j, 4096);
+
SD_JOURNAL_FOREACH(j) {
if (field)
print_field(stdout, j);
SD_JOURNAL_FOREACH(j) {
if (field)
print_field(stdout, j);
@@
-381,6
+386,9
@@
static int dump_core(sd_journal* j) {
assert(j);
assert(j);
+ /* We want full data, nothing truncated. */
+ sd_journal_set_data_threshold(j, 0);
+
r = focus(j);
if (r < 0)
return r;
r = focus(j);
if (r < 0)
return r;
@@
-428,6
+436,8
@@
static int run_gdb(sd_journal *j) {
assert(j);
assert(j);
+ sd_journal_set_data_threshold(j, 0);
+
r = focus(j);
if (r < 0)
return r;
r = focus(j);
if (r < 0)
return r;