From 015ce7520b3099a0af110f7ee693ce40019c2445 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 4 May 2017 11:01:41 +0100 Subject: [PATCH] libostree: Document endianness of GVariant metadata types Endianness strikes again. Signed-off-by: Philip Withnall Closes: #826 Approved by: cgwalters --- src/libostree/ostree-core.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h index 59d6d9e2..c530cea3 100644 --- a/src/libostree/ostree-core.h +++ b/src/libostree/ostree-core.h @@ -104,9 +104,9 @@ typedef enum { /** * OSTREE_DIRMETA_GVARIANT_FORMAT: * - * - u - uid - * - u - gid - * - u - mode + * - u - uid (big-endian) + * - u - gid (big-endian) + * - u - mode (big-endian) * - a(ayay) - xattrs */ #define OSTREE_DIRMETA_GVARIANT_STRING "(uuua(ayay))" @@ -120,9 +120,9 @@ typedef enum { * can't store in the real filesystem but we can still use a regular .file object * that we can hardlink to in the case of a user-mode checkout. * - * - u - uid - * - u - gid - * - u - mode + * - u - uid (big-endian) + * - u - gid (big-endian) + * - u - mode (big-endian) * - a(ayay) - xattrs */ #define OSTREE_FILEMETA_GVARIANT_STRING "(uuua(ayay))" @@ -145,7 +145,7 @@ typedef enum { * - a(say) - Related objects * - s - subject * - s - body - * - t - Timestamp in seconds since the epoch (UTC) + * - t - Timestamp in seconds since the epoch (UTC, big-endian) * - ay - Root tree contents * - ay - Root tree metadata */