From 2daa9cbdda628f3a359c0e30a5b57dfe7ad74a34 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 25 Apr 2016 11:31:47 +0200 Subject: sd-journal: "soft" deprecate sd_journal_open_container() Let's document the call as deprecated, since it doesn't cover containers with directories that aren#t visible to the host properly. --- src/journal/sd-journal.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/journal') diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c index c1be1b5faf..27c1dd346f 100644 --- a/src/journal/sd-journal.c +++ b/src/journal/sd-journal.c @@ -1767,6 +1767,9 @@ _public_ int sd_journal_open_container(sd_journal **ret, const char *machine, in char *p; int r; + /* This is pretty much deprecated, people should use machined's OpenMachineRootDirectory() call instead in + * combination with sd_journal_open_directory_fd(). */ + assert_return(machine, -EINVAL); assert_return(ret, -EINVAL); assert_return((flags & ~(SD_JOURNAL_LOCAL_ONLY|SD_JOURNAL_SYSTEM)) == 0, -EINVAL); -- cgit v1.2.3-54-g00ecf