chiark / gitweb /
journald: use "persistent", not "permanent" as storage option
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 17:39:27 +0000 (19:39 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Jul 2012 17:39:27 +0000 (19:39 +0200)
"permanent" is simply the wrong term and we use "persistant" in most
other contexts to correct this.

TODO
man/journald.conf.xml
src/journal/journald.c
src/journal/journald.h

diff --git a/TODO b/TODO
index 8975ad065646119e1d46133c6ed6d5897d362572..09b34e5fe2d1c7b3ac944b7e66e7c0d3dcc440db 100644 (file)
--- a/TODO
+++ b/TODO
@@ -34,6 +34,8 @@ Bugfixes:
 
 Features:
 
 
 Features:
 
+* replace BindTo= by BindsTo=, but keep old name for compat
+
 * switch-root: sockets need relabelling
 
 * switch-root: handle journald restart
 * switch-root: sockets need relabelling
 
 * switch-root: handle journald restart
@@ -42,8 +44,6 @@ Features:
 
 * systemd-analyze post-boot is broken for initrd
 
 
 * systemd-analyze post-boot is broken for initrd
 
-* journal: s/permanent/persistant
-
 * man: clarify that time-sync.target is not only sysv compat but also useful otherwise. Same for similar targets
 
 * journalctl should complain if run with uid != 0 and no persistant logs exist
 * man: clarify that time-sync.target is not only sysv compat but also useful otherwise. Same for similar targets
 
 * journalctl should complain if run with uid != 0 and no persistant logs exist
index f82130b9cfca1056e8ffbde8ac7ab804284c8532..36227092bbe1c87d68257c405d40ca08e23668a4 100644 (file)
                                 <listitem><para>Controls where to
                                 store journal data. One of
                                 <literal>volatile</literal>,
                                 <listitem><para>Controls where to
                                 store journal data. One of
                                 <literal>volatile</literal>,
-                                <literal>permanent</literal>,
+                                <literal>persistent</literal>,
                                 <literal>auto</literal> and
                                 <literal>none</literal>. If
                                 <literal>volatile</literal> journal
                                 <literal>auto</literal> and
                                 <literal>none</literal>. If
                                 <literal>volatile</literal> journal
                                 <filename>/run/log/journal</filename>
                                 hierarchy (which is created if
                                 needed). If
                                 <filename>/run/log/journal</filename>
                                 hierarchy (which is created if
                                 needed). If
-                                <literal>permanent</literal> data will
+                                <literal>persistent</literal> data will
                                 be stored preferably on disk,
                                 i.e. below the
                                 <filename>/var/log/journal</filename>
                                 be stored preferably on disk,
                                 i.e. below the
                                 <filename>/var/log/journal</filename>
                                 early boot and if the disk is not
                                 writable. <literal>auto</literal> is
                                 similar to
                                 early boot and if the disk is not
                                 writable. <literal>auto</literal> is
                                 similar to
-                                <literal>permanent</literal> but the
+                                <literal>persistent</literal> but the
                                 directory
                                 <filename>/var/log/journal</filename>
                                 is not created if needed, so that its
                                 directory
                                 <filename>/var/log/journal</filename>
                                 is not created if needed, so that its
index 0629f79f1c382fa8ebf624a2faeebee78812642d..da9f52813dbf2a030634d6143e81a64771291f6c 100644 (file)
@@ -114,7 +114,7 @@ struct StdoutStream {
 static const char* const storage_table[] = {
         [STORAGE_AUTO] = "auto",
         [STORAGE_VOLATILE] = "volatile",
 static const char* const storage_table[] = {
         [STORAGE_AUTO] = "auto",
         [STORAGE_VOLATILE] = "volatile",
-        [STORAGE_PERMANENT] = "permanent",
+        [STORAGE_PERSISTENT] = "persistent",
         [STORAGE_NONE] = "none"
 };
 
         [STORAGE_NONE] = "none"
 };
 
@@ -1963,16 +1963,16 @@ static int system_journal_open(Server *s) {
         sd_id128_to_string(machine, ids);
 
         if (!s->system_journal &&
         sd_id128_to_string(machine, ids);
 
         if (!s->system_journal &&
-            (s->storage == STORAGE_PERMANENT ||
+            (s->storage == STORAGE_PERSISTENT ||
              s->storage == STORAGE_AUTO)) {
 
                 /* If in auto mode: first try to create the machine
                  * path, but not the prefix.
                  *
              s->storage == STORAGE_AUTO)) {
 
                 /* If in auto mode: first try to create the machine
                  * path, but not the prefix.
                  *
-                 * If in permanent mode: create /var/log/journal and
+                 * If in persistent mode: create /var/log/journal and
                  * the machine path */
 
                  * the machine path */
 
-                if (s->storage & STORAGE_PERMANENT)
+                if (s->storage & STORAGE_PERSISTENT)
                         (void) mkdir("/var/log/journal/", 0755);
 
                 fn = strappend("/var/log/journal/", ids);
                         (void) mkdir("/var/log/journal/", 0755);
 
                 fn = strappend("/var/log/journal/", ids);
@@ -2067,7 +2067,7 @@ static int server_flush_to_var(Server *s) {
         assert(s);
 
         if (s->storage != STORAGE_AUTO &&
         assert(s);
 
         if (s->storage != STORAGE_AUTO &&
-            s->storage != STORAGE_PERMANENT)
+            s->storage != STORAGE_PERSISTENT)
                 return 0;
 
         if (!s->runtime_journal)
                 return 0;
 
         if (!s->runtime_journal)
index 34deb8561e89f9f4476030825504af11fc53b4d8..3537a494205eb652ab9b9c71596ebe06dd0ed96b 100644 (file)
@@ -36,7 +36,7 @@
 typedef enum Storage {
         STORAGE_AUTO,
         STORAGE_VOLATILE,
 typedef enum Storage {
         STORAGE_AUTO,
         STORAGE_VOLATILE,
-        STORAGE_PERMANENT,
+        STORAGE_PERSISTENT,
         STORAGE_NONE,
         _STORAGE_MAX,
         _STORAGE_INVALID = -1
         STORAGE_NONE,
         _STORAGE_MAX,
         _STORAGE_INVALID = -1