|
Zbigniew Jędrzejewski-Szmek |
d66047 |
From 00a827da3737dc95c2561292c03468fc96f53f14 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
From: Lennart Poettering <lennart@poettering.net>
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
Date: Wed, 27 Nov 2013 00:59:07 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
Subject: [PATCH] journal: allow journal_file_copy_entry() to work on non-local
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
files
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
(cherry picked from commit 248c78c79c5cca9b981800d816a77591e504066a)
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
src/journal/journal-file.c | 4 ----
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
1 file changed, 4 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
index 4e22e08..e0abddf 100644
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
--- a/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
+++ b/src/journal/journal-file.c
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
@@ -2739,10 +2739,6 @@ int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint6
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
ts.monotonic = le64toh(o->entry.monotonic);
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
ts.realtime = le64toh(o->entry.realtime);
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
- if (to->tail_entry_monotonic_valid &&
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
- ts.monotonic < le64toh(to->header->tail_entry_monotonic))
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
- return -EINVAL;
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
-
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
n = journal_file_entry_n_items(o);
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
items = alloca(sizeof(EntryItem) * n);
|
|
Zbigniew Jędrzejewski-Szmek |
d66047 |
|