Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] libuuid: Move clock.txt to /run
@ 2023-03-01 14:09 Michal Suchanek
  2023-03-01 14:17 ` Chris Hofstaedtler
  2023-03-01 17:54 ` Karel Zak
  0 siblings, 2 replies; 8+ messages in thread
From: Michal Suchanek @ 2023-03-01 14:09 UTC (permalink / raw)
  To: util-linux; +Cc: Michal Suchanek

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


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-03-01 20:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-01 14:09 [PATCH] libuuid: Move clock.txt to /run Michal Suchanek
2023-03-01 14:17 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox