From 221f260c9d5793d9a1b4ab60dd160bdd41ff3b59 Mon Sep 17 00:00:00 2001 From: Venky Shankar Date: Wed, 8 Apr 2015 14:43:47 +0530 Subject: features/bitrot-stub: Packed format for version xattr Using __attribute__ ((__packed__)) for object signature xattr saves some bytes (7 bytes to be particular) occupied by the extended attribute on-disk as compared to the unpacked format. Change-Id: I91a6a0a54aa60e6fd8c357d72f7601b6ed213f2d BUG: 1170075 Signed-off-by: Venky Shankar Reviewed-on: http://review.gluster.org/10161 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/features/bit-rot/src/stub/bit-rot-object-version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/features/bit-rot/src') diff --git a/xlators/features/bit-rot/src/stub/bit-rot-object-version.h b/xlators/features/bit-rot/src/stub/bit-rot-object-version.h index a158adf8153..1f2497aebe9 100644 --- a/xlators/features/bit-rot/src/stub/bit-rot-object-version.h +++ b/xlators/features/bit-rot/src/stub/bit-rot-object-version.h @@ -19,7 +19,7 @@ typedef struct br_version { uint32_t timebuf[2]; } br_version_t; -typedef struct br_signature { +typedef struct __attribute__ ((__packed__)) br_signature { int8_t signaturetype; unsigned long signedversion; -- cgit