From 2300b4f012cecf31ce229579cd144c45035039b1 Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Thu, 19 Dec 2024 17:01:53 +0100 Subject: [PATCH] creation time correctly filled --- c/mdraid-gen/mdraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/mdraid-gen/mdraid.c b/c/mdraid-gen/mdraid.c index 5f2720e..1e1541b 100644 --- a/c/mdraid-gen/mdraid.c +++ b/c/mdraid-gen/mdraid.c @@ -80,7 +80,7 @@ int main() { //TODO: set these random_uuid(sb.set_uuid); /* user-space generated. U8[16]*/ memcpy(sb.set_name, "localhost:7", 12); /* set and interpreted by user-space. CHAR[32] */ - sb.ctime=0; /* lo 40 bits are seconds, top 24 are microseconds or 0*/ + sb.ctime=time(NULL); /* lo 40 bits are seconds, top 24 are microseconds or 0*/ sb.level=1; /* -4 (multipath), -1 (linear), 0,1,4,5 */ //sb.layout=2; /* only for raid5 and raid10 currently */ -- 2.30.2