summaryrefslogtreecommitdiffstats
path: root/xlators/features/bit-rot
diff options
context:
space:
mode:
authorVenky Shankar <vshankar@redhat.com>2015-04-08 14:43:47 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-09 08:54:37 +0000
commit221f260c9d5793d9a1b4ab60dd160bdd41ff3b59 (patch)
treed8ace1f62b81a47e2d5961516d452a69c80bcf4f /xlators/features/bit-rot
parent61afe3a0c87f11fa685db1e71867d80c533f42e0 (diff)
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 <vshankar@redhat.com> Reviewed-on: http://review.gluster.org/10161 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/bit-rot')
-rw-r--r--xlators/features/bit-rot/src/stub/bit-rot-object-version.h2
1 files changed, 1 insertions, 1 deletions
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;