It's never a good idea to put new fields in the middle of other encoded values
unless you're willing to break all backwards-compatibility.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit
d27b1156ae7d38902c76ffa48b6999a779ec5da9)
// marker, name, ino
ENCODE_START(2, 1, bl);
+ // WARNING: always put new fields at the end of bl
encode(ino, bl);
encode(d_type, bl);
encode(alternate_name, bl);
bl.append('i'); // inode
ENCODE_START(2, 1, bl);
+ // WARNING: always put new fields at the end of bl
encode(item.alternate_name, bl);
_encode_primary_inode_base(item, dfts, bl);
ENCODE_FINISH(bl);