diff options
Diffstat (limited to 'debian/patches/gpg0006-libdiskfs-xxx-log-periodic-syncs.patch')
-rw-r--r-- | debian/patches/gpg0006-libdiskfs-xxx-log-periodic-syncs.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/debian/patches/gpg0006-libdiskfs-xxx-log-periodic-syncs.patch b/debian/patches/gpg0006-libdiskfs-xxx-log-periodic-syncs.patch new file mode 100644 index 00000000..369bdb85 --- /dev/null +++ b/debian/patches/gpg0006-libdiskfs-xxx-log-periodic-syncs.patch @@ -0,0 +1,57 @@ +From 43cd61c31e51be5bbcce75928ddb105d706c9da8 Mon Sep 17 00:00:00 2001 +From: Justus Winter <justus@gnupg.org> +Date: Sun, 17 Apr 2016 19:09:52 +0200 +Subject: [PATCH hurd 6/6] libdiskfs: xxx log periodic syncs + +--- + libdiskfs/init-main.c | 3 +++ + libdiskfs/sync-interval.c | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/libdiskfs/init-main.c b/libdiskfs/init-main.c +index 3e03ae4..72cf62a 100644 +--- a/libdiskfs/init-main.c ++++ b/libdiskfs/init-main.c +@@ -22,6 +22,7 @@ + #include <assert.h> + #include <error.h> + #include <hurd/store.h> ++#include <syslog.h> + + struct store * + diskfs_init_main (struct argp *startup_argp, +@@ -44,6 +45,8 @@ diskfs_init_main (struct argp *startup_argp, + if (err) + error (2, err, "store_parsed_name"); + ++ openlog (diskfs_disk_name, LOG_CONS, LOG_DAEMON); ++ + /* This must come after the args have been parsed, as this is where the + host priv ports are set for booting. */ + diskfs_console_stdio (); +diff --git a/libdiskfs/sync-interval.c b/libdiskfs/sync-interval.c +index 14405f2..df1f8d4 100644 +--- a/libdiskfs/sync-interval.c ++++ b/libdiskfs/sync-interval.c +@@ -20,6 +20,7 @@ + #include <errno.h> + #include <pthread.h> + #include <unistd.h> ++#include <syslog.h> + + #include <hurd/fsys.h> + +@@ -120,8 +121,10 @@ periodic_sync (void * arg) + will have held the lock while it did its work. */ + if (_diskfs_diskdirty) + { ++ syslog (LOG_NOTICE, "Starting periodic global sync."); + diskfs_sync_everything (0); + diskfs_set_hypermetadata (0, 0); ++ syslog (LOG_NOTICE, "Periodic global sync finished."); + } + pthread_rwlock_unlock (&diskfs_fsys_lock); + } +-- +2.1.4 + |