creation time correctly filled
authorTomas Mudrunka <tomas.mudrunka@gmail.com>
Thu, 19 Dec 2024 16:01:53 +0000 (17:01 +0100)
committerTomas Mudrunka <tomas.mudrunka@gmail.com>
Thu, 19 Dec 2024 16:01:53 +0000 (17:01 +0100)
c/mdraid-gen/mdraid.c

index 5f2720ef4d605e3f6372dd718b6e29a17c0b7adb..1e1541b604459f11eecbc7a3b7202c2481bcf7b9 100644 (file)
@@ -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 */
This page took 0.12875 seconds and 4 git commands to generate.