Sergey Poznyakoff
4bf5f6dca4
--sparse-version turns on --sparse
2006-06-25 12:46:12 +00:00
Sergey Poznyakoff
ecaff7cbba
Use ST_IS_SPARSE instead of sparse_file_p (update paxutils first)
2006-06-25 12:45:57 +00:00
Sergey Poznyakoff
ea9e2d8d8e
(sparse_file_p): Remove
2006-06-25 12:45:16 +00:00
Sergey Poznyakoff
d0201294c0
(xhdr_tab.decoder): pass keyword as a second
...
argument. All callers changed.
(decode_record): Check for numeric overflow
(xheader_string_end): Return boolean value. Check for possible
numeric overflow
2006-06-24 16:49:33 +00:00
Sergey Poznyakoff
c5b15c4ac1
(segm_count): Change type to size_t
2006-06-24 16:49:05 +00:00
Sergey Poznyakoff
4b3dd17c00
(pax_dump_header_0): Return false if
...
xheader_string_end fails (for 0.1 formats).
(pax_dump_header): Return meaningful value
2006-06-24 16:48:45 +00:00
Sergey Poznyakoff
d339cc38af
Remove not used variables
2006-06-24 16:48:24 +00:00
Sergey Poznyakoff
796a69787e
(extract_volhdr): Add missing return
2006-06-24 16:48:08 +00:00
Sergey Poznyakoff
4c54e234c1
(name_init): New prototype.
...
(xheader_string_end): Return bool.
2006-06-24 16:47:57 +00:00
Sergey Poznyakoff
c027e03924
(print_total_stats): Add default case
2006-06-24 16:47:29 +00:00
Sergey Poznyakoff
19a63e523d
Implement new keywords: GNU.sparse.name, GNU.sparse.major, GNU.sparse.minor, GNU.sparse.realsize
2006-06-23 15:22:50 +00:00
Sergey Poznyakoff
5679d3020e
(struct tar_stat_info.sparse_major,sparse_minor): New members
2006-06-23 15:22:31 +00:00
Sergey Poznyakoff
1001c1b326
New option --sparse-version
2006-06-23 15:22:12 +00:00
Sergey Poznyakoff
090d1d36ae
Implement sparse format versioning. Implement new
...
version (1.0) of PAX sparse format.
(pax_sparse_member_p): Fix condition
(pax_dump_header): A dispatcher function
(pax_dump_header_0,pax_dump_header_1): New functions.
(pax_optab): Update
(oldgnu_dump_header): Minor fix: make sure
sparse_header.isextended is set before calling
set_next_block_after
2006-06-23 15:21:48 +00:00
Sergey Poznyakoff
2e1f904f2c
(tar_sparse_major,tar_sparse_minor): New globals.
2006-06-23 15:20:06 +00:00
Sergey Poznyakoff
ab19642053
Implement new option, --mtime, allowing to set
...
modification times for all archive members during creation.
(struct tar_args): textual_date_option replaced with a linked list
textual_date. All references updated.
(get_date_or_file,report_textual_dates): New functions.
2006-06-21 10:40:39 +00:00
Sergey Poznyakoff
a71b154289
(start_header): Override mtime if requested
2006-06-21 10:40:10 +00:00
Sergey Poznyakoff
ceaef10443
(set_mtime_option,mtime_option): New globals
2006-06-21 10:39:58 +00:00
Sergey Poznyakoff
1ecd6672e1
(GNU.sparse.name): New variable for storing sparse file name.
2006-06-20 15:14:59 +00:00
Sergey Poznyakoff
ca2f855c90
(pax_dump_header): Store original sparse file name
...
in GNU.sparse.name variable. The name field in the ustar header
now contains generated name (%d/GNUSparseFile.%p/%f), so that
non-pax-aware tars won't extract the file under the original
filename.
2006-06-20 15:14:47 +00:00
Sergey Poznyakoff
693134a4e7
(name_next_elt): Call register_individual_file
...
(namelist_match): Remove third argument
(name_match): Change return type to bool
(name_scan): Remove second argument
2006-06-20 15:14:19 +00:00
Sergey Poznyakoff
90cec95580
(maybe_backup_file): Second argument is bool
2006-06-20 15:14:00 +00:00
Sergey Poznyakoff
b6fcb4ba8f
(procdir): Use is_individual_file to check for
...
files explicitely specified in the command line. Fixes bug
reported by Dat Head on 19 Jun 2006 (descending into mountpoints
with --one-file-system in use)
2006-06-20 15:13:49 +00:00
Sergey Poznyakoff
6d1e9ab67e
Remove second argument from calls to name_scan
2006-06-20 15:13:30 +00:00
Sergey Poznyakoff
300210aa15
(struct name.explicit): Remove
...
Use variable names in all declarations
(name_scan): Remove second argument
2006-06-20 15:13:20 +00:00
Sergey Poznyakoff
4c7a2b10b8
Implement --overwrite-dir option (long ago documented)
2006-06-12 22:50:29 +00:00
Sergey Poznyakoff
1e3568d947
(options, parse_opt): Allow for optional argument to
...
the --totals option, which specifies a signal upon delivery of which
the statistics must be output.
(main): Call print_total_stats if total_option is set.
2006-06-12 13:20:10 +00:00
Sergey Poznyakoff
b229a86dd7
(check_time): Use volume_start_time when checking
...
for the timestamp plausability.
2006-06-12 13:19:43 +00:00
Sergey Poznyakoff
05b250d4a4
(records_skipped): Remove static qualifier, the
...
variable is used by print_total_stats in buffer.c
2006-06-12 13:19:16 +00:00
Sergey Poznyakoff
42d180b24e
(volume_start_time,last_stat_time): New globals
...
(print_total_written): Replaced with:
(print_total_stats): New function
2006-06-12 13:18:59 +00:00
Sergey Poznyakoff
8c10111c66
(total_blocks_deleted): New variable
...
(set_start_time): Set volume_start_time and last_stat_time as well
(set_volume_start_time): New function
(compute_duration): Do not call set_start_time, update
last_stat_time instead. Use it in calculation instead of
start_time, which is now set only once, upon startup.
(print_total_written): Removed.
(print_total_stats): New function for printing byte/speed statistics.
(_open_archive): Detect attempts to update compressed archives.
(_gnu_flush_write): Always update prev_written.
(open_archive): Call set_volume_start_time.
2006-06-12 13:18:26 +00:00
Sergey Poznyakoff
4ef056729e
(xheader_set_single_keyword): Fix typo.
...
(decode_time): Avoid using gotos.
2006-06-11 20:06:46 +00:00
Sergey Poznyakoff
f1b1e9a476
Fix indentation, introduce end-of-format marker for texify.sed
2006-06-09 13:50:04 +00:00
Sergey Poznyakoff
5e14ef32c0
Minor fixes.
2006-06-08 22:35:52 +00:00
Sergey Poznyakoff
f9bd340c1b
--checkpoint takes an optional argument specifying
...
number of records between two successive checkpoints (proposed
by Jason Armistead on 2004-06-22).Optional dot starting the
argument means "print dots instead of textual checkpoints".
(tar_help): New function
2006-06-08 22:35:39 +00:00
Sergey Poznyakoff
46defea70e
(checkpoint_option): Change type to unsigned
...
(checkpoint_style): New variable.
2006-06-08 22:34:56 +00:00
Sergey Poznyakoff
5daab19c27
Implement more flexible checkpoint style
2006-06-08 22:34:38 +00:00
Sergey Poznyakoff
2d2e1d411e
(dumpdir_locate,obstack_code_rename,purge_directory): Re-implement renaming. Introduce
...
X control code.
(make_tmp_dir_name): Remove
2006-06-08 14:43:05 +00:00
Sergey Poznyakoff
02c7b862a3
(add_char_segment): Fix length assignement
2006-06-08 09:50:56 +00:00
Sergey Poznyakoff
6be1349236
(set_transform_expr,_transform_name_to_obstack): Implement NUMBER flag.
2006-06-08 09:27:25 +00:00
Sergey Poznyakoff
8b2f4ad670
(_transform_name_to_obstack,set_transform_expr): Implement case conversion operations (GNU extension).
2006-06-07 14:57:10 +00:00
Sergey Poznyakoff
435edb824e
(transform_name_fp): Run fun even if _transform_name_to_obstack returns false.
2006-06-06 21:33:25 +00:00
Sergey Poznyakoff
d79bbe0fd1
(set_transform_expr): New function
2006-06-02 15:05:52 +00:00
Sergey Poznyakoff
d75890c1b8
(options): Minor rewording
2006-06-02 10:54:05 +00:00
Sergey Poznyakoff
c58063c17a
New option --transform
...
New option --show-transformed-names generalizes
--show-stored-names. The latter is retained as an alias.
2006-06-02 08:06:46 +00:00
Sergey Poznyakoff
ae7bd36423
(print_header): Update displayable name selection.
2006-06-02 08:05:04 +00:00
Sergey Poznyakoff
973b611290
(extract_archive): safer_name_suffix and stripped_prefix_len are now called by decode_header
2006-06-02 08:04:37 +00:00
Sergey Poznyakoff
29fb7356df
(dump_file0): Transform file name
2006-06-02 08:03:53 +00:00
Sergey Poznyakoff
bbee515590
(transform_name, transform_name_fp): New functions
...
(show_stored_names_option): Renamed to
show_transformed_names_option. All uses changed
2006-06-02 08:03:08 +00:00
Sergey Poznyakoff
c8aa01c80c
New file
2006-06-02 08:02:24 +00:00