From 17de417fad660dbdf7734fff37c6878d4c1e2a63 Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Thu, 14 Oct 2010 11:12:49 -0700 Subject: [PATCH] FileJournal.h: add attribute __packed where needed Signed-off-by: Colin McCabe --- src/os/FileJournal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/FileJournal.h b/src/os/FileJournal.h index 983e48029dc01..f3bbda522b8fb 100644 --- a/src/os/FileJournal.h +++ b/src/os/FileJournal.h @@ -44,7 +44,7 @@ public: void clear() { start = block_size; } - } header; + } header __attribute__((__packed__, aligned(4))); struct entry_header_t { uint64_t seq; // fs op seq # @@ -63,7 +63,7 @@ public: magic1 == (uint64_t)pos && magic2 == (fsid ^ seq ^ len); } - }; + } __attribute__((__packed__, aligned(4))); private: string fn; -- 2.39.5