X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftar.h;h=055cdfda735f18838821dcf44f2219cfeccece9d;hb=f218c29b13a1db019cca2e4016956e39ca87e051;hp=25b65b14b2f913fcfa0f7903f26f5f62c85ba638;hpb=ad37f06975a7f2df15d3bd8c1295570abc8a1044;p=chaz%2Ftar diff --git a/src/tar.h b/src/tar.h index 25b65b1..055cdfd 100644 --- a/src/tar.h +++ b/src/tar.h @@ -253,7 +253,9 @@ enum archive_format USTAR_FORMAT, /* POSIX.1-1988 (ustar) format */ POSIX_FORMAT, /* POSIX.1-2001 format */ STAR_FORMAT, /* Star format defined in 1994 */ - GNU_FORMAT /* POSIX format with GNU extensions */ + GNU_FORMAT /* Same as OLDGNU_FORMAT with one exception: + see FIXME note for to_chars() function + (create.c:189) */ }; /* Information about a sparse file. */ @@ -286,6 +288,8 @@ struct tar_stat_info off_t archive_file_size; /* Size of file as stored in the archive. Equals stat.st_size for non-sparse files */ + bool is_sparse; /* Is the file sparse */ + size_t sparse_map_avail; /* Index to the first unused element in sparse_map array. Zero if the file is not sparse */