X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.h;h=cc45926cff1d61582ce9ad32eca0cef8bb73bb91;hb=ac40b1e6f6d0760ed656f7706c326de4ee68e149;hp=72350302d1339c473f56a4f301d412a9a2a6fd1c;hpb=e86e864544a87003ac900d60135a3ca9424cfb95;p=chaz%2Ftar diff --git a/src/tar.h b/src/tar.h index 7235030..cc45926 100644 --- a/src/tar.h +++ b/src/tar.h @@ -192,8 +192,7 @@ struct oldgnu_header /* Solaris extended header */ #define SOLARIS_XHDTYPE 'X' - -/* Jörg Schilling star header */ +/* J@"org Schilling star header */ struct star_header { /* byte offset */ @@ -221,7 +220,8 @@ struct star_header #define SPARSES_IN_STAR_HEADER 4 #define SPARSES_IN_STAR_EXT_HEADER 21 -struct star_in_header { +struct star_in_header +{ char fill[345]; /* 0 Everything that is before t_prefix */ char prefix[1]; /* 345 t_name prefix */ char fill2; /* 346 */ @@ -236,11 +236,13 @@ struct star_in_header { char xmagic[4]; /* 508 "tar" */ }; -struct star_ext_header { +struct star_ext_header +{ struct sparse sp[SPARSES_IN_STAR_EXT_HEADER]; char isextended; }; +/* END */ /* tar Header Block, overall structure. */ @@ -263,10 +265,10 @@ enum archive_format /* Information about a sparse file. */ struct sp_array - { - off_t offset; - size_t numbytes; - }; +{ + off_t offset; + size_t numbytes; +}; struct tar_stat_info { @@ -293,6 +295,8 @@ struct tar_stat_info bool is_sparse; /* Is the file sparse */ /* For sparse files: */ + unsigned sparse_major; + unsigned sparse_minor; size_t sparse_map_avail; /* Index to the first unused element in sparse_map array. Zero if the file is not sparse */ @@ -317,4 +321,4 @@ union block struct star_ext_header star_ext_header; }; -/* End of Format description. */ +