4 Following sections explain internals of metastore file (.metadata).
9 CSTRING = NUL-terminated binary string
10 BSTRING(N) = binary string of length N
11 INT(N) = N byte integer in big endian byte order
22 BSTRING(10) - Magic header - "MeTaSt00r3"
23 BSTRING(8) - Version - "\0\0\0\0\0\0\0\0" (currently)
28 CSTRING - Path (absolute or relative)
29 CSTRING - Owner (owner name, not uid)
30 CSTRING - Group (group name, not gid)
32 INT(8) - Mtime (seconds)
33 INT(8) - Mtime (nanoseconds)
34 INT(2) - Mode (st_mode from struct stat st_mode AND 0177777,
35 i.e. unix permissions and type of file)
38 FOR (i = 0; i < num_xattrs; i++) {
41 BSTRING(xattrlen) - xattr value