Util-Linux package development
 help / color / mirror / Atom feed
From: Michal Suchanek <msuchanek@suse.de>
To: util-linux@vger.kernel.org
Cc: Michal Suchanek <msuchanek@suse.de>
Subject: [PATCH] libuuid: Move clock.txt to /run
Date: Wed,  1 Mar 2023 15:09:57 +0100	[thread overview]
Message-ID: <20230301140957.21604-1-msuchanek@suse.de> (raw)

Some users complain that due to filesystem performance of writing the
clock.txt generating UUIDs is slow.

uuidd would solve this but some distributions do not run it by default.

Moving the clock.txt to /run which is in tmpfs should resolve the
problem even for users not running uuidd.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 libuuid/src/uuidP.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libuuid/src/uuidP.h b/libuuid/src/uuidP.h
index 200702c1e..574a30fca 100644
--- a/libuuid/src/uuidP.h
+++ b/libuuid/src/uuidP.h
@@ -39,7 +39,7 @@
 
 #include "uuid.h"
 
-#define LIBUUID_CLOCK_FILE	"/var/lib/libuuid/clock.txt"
+#define LIBUUID_CLOCK_FILE	"/run/libuuid/clock.txt"
 
 /*
  * Offset between 15-Oct-1582 and 1-Jan-70
-- 
2.39.2


             reply	other threads:[~2023-03-01 14:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 14:09 Michal Suchanek [this message]
2023-03-01 14:17 ` [PATCH] libuuid: Move clock.txt to /run Chris Hofstaedtler
2023-03-01 14:26   ` Michal Suchánek
2023-03-01 16:49     ` Theodore Ts'o
2023-03-01 17:17       ` Michal Suchánek
2023-03-01 18:39         ` Theodore Ts'o
2023-03-01 20:08           ` Michal Suchánek
2023-03-01 17:54 ` Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230301140957.21604-1-msuchanek@suse.de \
    --to=msuchanek@suse.de \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox