From: Tomas Mudrunka Date: Thu, 19 Dec 2024 16:01:53 +0000 (+0100) Subject: creation time correctly filled X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=2300b4f012cecf31ce229579cd144c45035039b1;p=mirrors%2FPrograms.git creation time correctly filled --- 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 */