Module Name: src Committed By: mlelstv Date: Sun Oct 20 08:21:30 UTC 2024
Modified Files: src/sbin/gpt: gpt.c gpt_private.h gpt_uuid.c uuid.c Log Message: When generating timestamp based GUIDs for reproducable builds - increment timestamp by 100ns for each partition. - use the standard time-based UUID format (type 1) and don't pretend it's a random number (type 4). - make the -T option actually work for the uuid command. Random GUIDs: start size index contents 34 1000 1 GPT part - d93ba067-a788-4ce0-99b8-0ead51f00215 1034 2000 2 GPT part - bebba77a-7fdc-4ca0-a1bf-7450aa871d41 d93ba067-a788-4ce0-99b8-0ead51f00215: Version 4 Random Variant 2 RFC 4122 Data D9 3B A0 67 A7 88 4C E0 99 B8 0E AD 51 F0 02 15 bebba77a-7fdc-4ca0-a1bf-7450aa871d41: Version 4 Random Variant 2 RFC 4122 Data BE BB A7 7A 7F DC 4C A0 A1 BF 74 50 AA 87 1D 41 Timestamp based GUIDs: start size index contents 34 1000 1 GPT part - 0a524600-8eba-11ef-8000-000000000000 1034 2000 2 GPT part - 0a524601-8eba-11ef-8000-000000000000 0a524600-8eba-11ef-8000-000000000000: Version 1 Time and MAC based Variant 2 RFC 4122 Node 00:00:00:00:00:00 Clock 0 Time 2024-10-20T08:05:16.000000.0Z 0a524601-8eba-11ef-8000-000000000000: Version 1 Time and MAC based Variant 2 RFC 4122 Node 00:00:00:00:00:00 Clock 0 Time 2024-10-20T08:05:16.000000.1Z Node (host MAC address) and clock (sequence number incremented whenever the time went backwards) are left undefined (all zero) for our purpose. To generate a diff of this commit: cvs rdiff -u -r1.89 -r1.90 src/sbin/gpt/gpt.c cvs rdiff -u -r1.3 -r1.4 src/sbin/gpt/gpt_private.h cvs rdiff -u -r1.22 -r1.23 src/sbin/gpt/gpt_uuid.c cvs rdiff -u -r1.2 -r1.3 src/sbin/gpt/uuid.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.