[PATCH] libuuid: Move clock.txt to /run

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>
---
 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




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux