Commit Graph

  • 08a8d2dec6 (dumpdir_size, get_gnu_dumpdir): New functions. (purge_directory): Use stat_info.dumpdir instead of getting its value explicitely. Sergey Poznyakoff 2005-11-07 02:48:51 +00:00
  • aea1d50da9 (dump_dir0): Handle incremental backups in pax archives Sergey Poznyakoff 2005-11-07 02:48:23 +00:00
  • 588232f859 (dumpdir_size,get_gnu_dumpdir) (xheader_string_begin,xheader_string_add) (xheader_string_end): New functions. Sergey Poznyakoff 2005-11-07 02:48:08 +00:00
  • 4c4c5a4dc1 Minor language and white space fixes. Paul Eggert 2005-11-07 00:25:52 +00:00
  • d144e7c217 * tests/truncate.at: Use -H pax to preserve full time stamp resolution. This prevents tests from failing on hosts like Solaris 8 that have nanosecond-resolution file time stamps. * tests/update.at: Likewise. Paul Eggert 2005-11-06 23:29:30 +00:00
  • ef9ad717ba * src/xheader.c (strtoimax, strtoumax): Remove decls; now done in system.h. Paul Eggert 2005-11-06 22:48:34 +00:00
  • 85ce2c24f8 Update Sergey Poznyakoff 2005-11-06 11:52:02 +00:00
  • d01f65092c Properly document incremental dumps Sergey Poznyakoff 2005-11-06 11:51:12 +00:00
  • 04e2551256 Update Sergey Poznyakoff 2005-11-05 16:49:47 +00:00
  • 8b2504deca Update Sergey Poznyakoff 2005-11-05 16:49:17 +00:00
  • ad09c8373b New file Sergey Poznyakoff 2005-11-05 16:47:49 +00:00
  • 5b91f80787 Update Sergey Poznyakoff 2005-11-05 15:57:07 +00:00
  • ef981aae38 Never skip the test. It should work on any filesystem Sergey Poznyakoff 2005-11-05 15:55:38 +00:00
  • 36f1d689e4 Sleep 1 sec before creating second file. Sergey Poznyakoff 2005-11-05 15:55:19 +00:00
  • 1e304fc5fd (struct directory.mtime): New member. (note_directory): Take additional arguments. All callers updated. (scan_directory): Updated to use more metadata. In particular, this allows to correctly detect renamed files. (read_directory_file,write_directory_file) (write_directory_file_entry): Support new directory file format. Sergey Poznyakoff 2005-11-05 15:55:05 +00:00
  • b100f6ae5b (dump_file): Call update_parent_directory. Sergey Poznyakoff 2005-11-05 15:54:30 +00:00
  • a6d2158837 (update_parent_directory): New prototype. Sergey Poznyakoff 2005-11-05 15:54:14 +00:00
  • c641a16cba (set_stat): Rewrite to avoid bug in Forte Developer 7 C 5.4 Patch 111708-09 (2004-02-19). Paul Eggert 2005-11-04 21:25:47 +00:00
  • 65a7536d1f Updated Sergey Poznyakoff 2005-11-04 12:42:03 +00:00
  • 8c119485a9 Updated Sergey Poznyakoff 2005-11-04 12:41:25 +00:00
  • a02a9ed099 Update Sergey Poznyakoff 2005-11-04 07:48:32 +00:00
  • 71976fa77e Add Eric Blake Sergey Poznyakoff 2005-11-04 07:38:44 +00:00
  • c2552c6c40 Fix quoting in help output. (update_po): Use backward-compatible wget option --cache instead of deprecated -C to accomodate for wget 1.10. Changes proposed by Eric Blake Sergey Poznyakoff 2005-11-04 07:38:23 +00:00
  • b272b3e2cf * doc/tar.texi: Consistently put two spaces after sentences, and put commas after "i.e." and "e.g.". This is the usual GNU style in manuals. Paul Eggert 2005-11-02 23:03:39 +00:00
  • c44d0d037f * lib/.cvsignore: Accommodate recent gnulib changes. Paul Eggert 2005-11-02 22:45:07 +00:00
  • 9c50f854a6 Add creat-safer.c, fcntl--.h, fcntl-safer.h, open-safer.c, openat-die.c, verify.h, to accommodate recent gnulib changes. Paul Eggert 2005-11-02 22:44:46 +00:00
  • fc42672fe0 Updated Sergey Poznyakoff 2005-10-28 09:29:31 +00:00
  • 64aea5de53 If file `.bootstrap' exists in the cwd and is readable, prepend its contents to the command line Sergey Poznyakoff 2005-10-28 09:29:16 +00:00
  • 391c6f6bdb Add John Thomas McDole Sergey Poznyakoff 2005-10-28 09:28:39 +00:00
  • 9684c2728d (diff_dumpdir): Pass a valid device number to get_directory_contents. Sergey Poznyakoff 2005-10-28 09:28:20 +00:00
  • cb8aacd9ef Updated Sergey Poznyakoff 2005-10-21 18:15:09 +00:00
  • 3ae9e51181 Skip test if ln fails (suppose the OS does not support hard links) Sergey Poznyakoff 2005-10-21 18:13:59 +00:00
  • 7a246ab602 Updated Sergey Poznyakoff 2005-10-04 07:31:28 +00:00
  • 35b9ca72db (decode_options): Report error if -A or -r is used together with compression option. Sergey Poznyakoff 2005-10-04 07:30:48 +00:00
  • ecdef9daaa Fix cover page Sergey Poznyakoff 2005-09-30 19:49:37 +00:00
  • eb744655a8 Updated Sergey Poznyakoff 2005-09-29 16:31:27 +00:00
  • 57fcb1639e Use @option and @kbd consistently. Document new options. Sergey Poznyakoff 2005-09-29 16:28:06 +00:00
  • 49f39c25b4 Updated Sergey Poznyakoff 2005-09-28 20:42:39 +00:00
  • 40da86b2a1 Implement --show-stored-names option Sergey Poznyakoff 2005-09-28 20:41:57 +00:00
  • 15b75f848e (print_header): If show_stored_names_option is given, list member names as stored in the archive. Patch proposed by Erik Cumps <erik.cumps@icos.be> Sergey Poznyakoff 2005-09-28 20:41:38 +00:00
  • 2a25112552 (show_stored_names_option): New variable Sergey Poznyakoff 2005-09-28 20:41:10 +00:00
  • b2b60efaaf Updated Sergey Poznyakoff 2005-09-28 19:42:09 +00:00
  • ddb0f96f00 New option --test-label tests the archive volume label. The option proposed by Wouter Verhelst Sergey Poznyakoff 2005-09-28 19:41:40 +00:00
  • 13aead50a8 (all_names_found): If test_label_option is set return true Sergey Poznyakoff 2005-09-28 19:41:15 +00:00
  • 8f1d2fd9c3 (print_header): Special handling if test_label_option is set Sergey Poznyakoff 2005-09-28 19:41:00 +00:00
  • a274294656 (test_label_option): New variable Sergey Poznyakoff 2005-09-28 19:40:41 +00:00
  • 63f64e4aaf * tests/Makefile.am (clean-local): Don't attempt to run $(TESTSUITE) if it doesn't exist. Problem reported by Eric Blake. Paul Eggert 2005-09-21 19:26:12 +00:00
  • 3209329337 Don't filter time stamps through the resolution supported by struct stat; keep them to full nanosecond resolution. This affects behavior only on older hosts or file systems that have lower-resolution time stamps. * src/common.h (OLDER_STAT_TIME): Parenthesize arg. (OLDER_TAR_STAT_TIME): New macro. (code_timespec): New function. (BILLION, LOG10_BILLION, TIMESPEC_STRSIZE_BOUND): New constants. * src/compare.c (diff_file): Use full time stamp resolution. * src/create.c (start_header, dump_file0): Likewise. (start_header, dump_file0): Adjust to new structure layout. (dump_regular_finish): Simplify by using timespec_cmp. * src/extract.c (struct delayed_set_stat): Don't store stat info that we don't need, to save space. All uses changed. (struct delayed_set_stat, struct delayed_link, file_newer_p): (create_placeholder_file, extract_link, apply_delayed_links): Use full time stamp resolution. (check_time): Use code_timespec rather than rolling our own code. (set_stat, delay_set_stat): Arg now points to tar_stat_info to avoid losing time information. All callers changed. * src/list.c (read_and, decode_header, print_heaeder): Use full time stamp resolution. * src/misc.c (code_timespec): New function. * src/tar.h (struct tar_stat_info): Record atime, mtime, ctime separately, for benefit of hosts with lower resolution. * src/update.c (update_archive): Use full time stamp resolution. * src/xheader.c (code_time): Use new code_timespec function to simplify code. (atime_coder, atime_decoder, ctime_coder, ctime_decoder): (mtime_coder, mtime_decoder): Use full time stamp resolution. Paul Eggert 2005-09-17 06:41:55 +00:00
  • 2f800ce3fb Merge changes from gnulib for file system sub-second time stamps. * configure.ac: Remove checks for struct stat.st_spare1, struct stat.st_atim.tv_nsec, struct stat.st_atimespec.tv_nsec, struct stat.st_atimensec, as gnulib now does this for us. Similarly for LIB_CLOCK_GETTIME. * gnulib.modules: Add stat-time. * lib/.cvsignore: Add stat-time.h. * src/common.h: Include stat-time.h. (timespec_lt): Remove. All callers changed to use timespec_cmp. (get_stat_atime, get_stat_ctime, get_stat_mtime): (set_stat_atime, set_stat_ctime, set_stat_mtime): Remove; now defined by stat-time.h. Paul Eggert 2005-09-16 07:03:44 +00:00
  • ae5473fe02 Updated Sergey Poznyakoff 2005-09-14 13:25:57 +00:00
  • 1f4437aa66 (list_dumpdir): New function. Sergey Poznyakoff 2005-09-14 13:25:41 +00:00
  • 8952196bc1 (list_archive): Use list_dumpdir() to display GNUTYPE_DUMPDIR blocks. Do that only if two or more -v options are given. Sergey Poznyakoff 2005-09-14 13:23:38 +00:00
  • 9093ca15d8 (list_dumpdir): New function. Used to dump contents of GNUTYPE_DUMPDIR blocks. Sergey Poznyakoff 2005-09-14 13:23:12 +00:00
  • 76efed4ca4 hard link patches Paul Eggert 2005-09-12 18:46:38 +00:00
  • a2b6327eda Adjust to current gnulib and modules used. Add getdelim.c, getdelim.h, mbchar.c, mbchar.h, mbuiter.h, memchr.c, pipe-safer.c, size_max.h, strdup.c, strdup.h, strnlen.h, strnlen1.c, strnlen1.h, unistd--.h. Remove getndelim2.c, getndelim2.h, pathmax.h, sysexits.h, xstrdup.c. Paul Eggert 2005-09-12 18:46:26 +00:00
  • af5d05729a Treat fishy-looking hard links like fishy-looking symlinks. (struct delayed_set_stat): Rename after_symlinks member to after_links. All uses changed. (struct delayed_link): Renamed from struct delayed_symlink. All uses changed. New member is_symlink. (delayed_link_head): Renamed from delayed_symlink_head. All uses changed. (create_placeholder_file): New function, taken from extract_symlink. (extract_link): Create placeholders for fishy-looking hard links. (extract_symlink): Move code into create_placeholder_file. (apply_delayed_links): Renamed from apply_delayed_symlinks. All uses changed. Create both hard links and symlinks. Paul Eggert 2005-09-12 18:45:59 +00:00
  • 3070fff7d7 Mention gzip version problems, and valgrind. Paul Eggert 2005-09-03 21:00:10 +00:00
  • 6bb5c17aea * README-alpha: Modernize description of software required for developers. Paul Eggert 2005-09-03 20:54:59 +00:00
  • ecd43c1314 Update Sergey Poznyakoff 2005-09-03 10:29:19 +00:00
  • f58c189f3e Updated Sergey Poznyakoff 2005-09-03 10:28:29 +00:00
  • 931e305002 Add incr01.at Sergey Poznyakoff 2005-09-03 10:28:17 +00:00
  • a57ecc51aa New test. Sergey Poznyakoff 2005-09-03 10:27:39 +00:00
  • a5375b618c (purge_directory): Do not dereference symbolic links. Bug reported by Ralph Corderoy <ralph@inputplus.co.uk> and David Brown <davidb@davidb.org> Sergey Poznyakoff 2005-09-03 10:27:13 +00:00
  • c40ba72fd3 Add strdup Sergey Poznyakoff 2005-09-03 10:24:45 +00:00
  • eacde4bca7 Updated Sergey Poznyakoff 2005-08-17 14:52:12 +00:00
  • 220ffceb44 (read_directory_file): Use strtoumax to read snapshot file contents. Sergey Poznyakoff 2005-08-17 14:51:50 +00:00
  • b65b1ff9eb Updated Sergey Poznyakoff 2005-08-01 06:28:15 +00:00
  • e0b0becead Remove dependency on file order. Sergey Poznyakoff 2005-08-01 06:22:43 +00:00
  • c9c76e7d56 (file_dumpable_p,dump_file0): Fix handling of sparse files to /dev/null with --totals option. Sergey Poznyakoff 2005-08-01 06:22:21 +00:00
  • 9d23481b5f Updated Sergey Poznyakoff 2005-07-08 14:40:59 +00:00
  • aa76a67b76 Fix typo Sergey Poznyakoff 2005-07-08 14:40:26 +00:00
  • 59a4026674 Updated Sergey Poznyakoff 2005-07-07 16:20:19 +00:00
  • 9106e53684 Pipe the output from `tar xfv' through sort. Sergey Poznyakoff 2005-07-07 16:20:03 +00:00
  • a34b0ad8c9 Updated Sergey Poznyakoff 2005-06-25 09:13:20 +00:00
  • 1992b53b8c (tar_sparse_init): Fill structure with zeros. Call sparse_select_optab(). All callers updated. (sparse_member_p, sparse_fixup_header): Use tar_sparse_init(). Sergey Poznyakoff 2005-06-25 09:13:01 +00:00
  • f319c5575b Updated Sergey Poznyakoff 2005-06-23 12:57:38 +00:00
  • 44ce72fa96 Adapt to the new output format Sergey Poznyakoff 2005-06-23 12:57:18 +00:00
  • 2e9ea5f4a7 (pax_sparse_member_p): Checking member size vs. file size is not reliable enough. Use sparse_map_avail. Sergey Poznyakoff 2005-06-23 12:57:07 +00:00
  • 4bd38118e0 Updated Sergey Poznyakoff 2005-06-23 12:17:00 +00:00
  • b65039526c Updated Sergey Poznyakoff 2005-06-23 12:16:00 +00:00
  • fb1b9e3d0f New test. Sergey Poznyakoff 2005-06-23 12:15:50 +00:00
  • aedacf9d29 Updated Sergey Poznyakoff 2005-06-23 09:51:31 +00:00
  • d9045bf409 (size_decoder): Do not set archive_file_size Sergey Poznyakoff 2005-06-23 09:51:05 +00:00
  • 8d52260315 Updated Sergey Poznyakoff 2005-06-23 09:10:51 +00:00
  • 225e690142 (sparse_scan_file): Fix another bug, introduced yesterday: Initialize archive_file_size to 0. The variable keeps size of the file *as stored in the archive*, not the size reported by stat. Sergey Poznyakoff 2005-06-23 09:10:28 +00:00
  • c877b48d68 Updated Sergey Poznyakoff 2005-06-23 08:27:41 +00:00
  • 37d2462d7c (tar_sparse_init): Fix recent bugfixes: Initialize dumped_size to 0. Sergey Poznyakoff 2005-06-23 08:27:22 +00:00
  • 040b5ab5f9 A sweep of the sparse code prompted by a bug report by Jim Meyering. * src/sparse.c: Include <inttostr.h>. (struct tar_sparse_file): offset and dumped_size are off_t, not size_t. optab is now const *. (dump_zeros): Return bool success flag, not off_t. All callers changed. Use a constant-zero buffer rather than clearing a buffer each time. Don't mess up if write fails. (dump_zeros, check_sparse_region): Don't assume off_t is no wider than size_t. (tar_sparse_init): Don't bother clearing a field that is already clear. (zero_block_p): First arg is const *, not *. (clear_block, SPARSES_INIT_COUNT): Remove. (sparse_add_map): First arg is now struct start_stat_info *, not struct tar_sparse_file *. All callers changed. Use x2nrealloc to check for size_t overflow. (parse_scan_file): Cache commonly-used parts of file. Use an auto buffer, not a static one. Don't bother clearing the buffer; not needed. Don't bother clearing items that are already clear. (oldgnu_optab, star_optab, pax_optab): Now const. (sparse_dump_region): Don't bother clearing the buffer before reading into it; just clear the parts that aren't read into. (sparse_dump_file): Clear the whole local variable 'file'. (diff_buffer): Remove; now a local var. (check_sparse_region): Don't bother clearing buffer before reading into it. Don't assume off_t is promoted to long. (oldgnu_get_sparse_info, star_get_sparse_info): Use an auto status, not static. * src/tar.h (struct tar_stat_info): had_trailing_slash is now bool, not int. * src/xheader.c (sparse_offset_coder, sparse_numbytes_coder): Rewrite to avoid cast. (sparse_offset_decoder, sparse_numbytes_decoder): Diagnose excess entries rather than crashing. Paul Eggert 2005-06-23 06:55:01 +00:00
  • 4f4a858eb6 * src/common.h (timespec_lt): Add a return type: bool. Paul Eggert 2005-06-23 03:19:03 +00:00
  • d659cbaccd Carefully crafted invalid headers can cause buffer overrun. Invalid header fields go undiagnosed. Some valid time strings are ignored. Paul Eggert 2005-06-22 06:24:39 +00:00
  • f6445e4ed6 Updated Sergey Poznyakoff 2005-06-13 19:14:52 +00:00
  • 3fe8fc3ef9 Add update.at Sergey Poznyakoff 2005-06-13 19:11:43 +00:00
  • 372ff169e7 New test Sergey Poznyakoff 2005-06-13 19:10:56 +00:00
  • c6cde895e3 (dump_file0): Check for is_avoided_name() first. Fixes bug reported by Martin Lohmeier Sergey Poznyakoff 2005-06-13 19:09:45 +00:00
  • 28b44cc69c Updated Sergey Poznyakoff 2005-06-13 12:54:45 +00:00
  • eb70fd51cb (AC_STRUCT_ST_BLKSIZE,AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4. Sergey Poznyakoff 2005-06-13 12:53:25 +00:00
  • 5c4ea58bd7 * src/names.c (excluded_name): excluded_filename -> excluded_file_name, because the name was changed in gnulib. Paul Eggert 2005-06-02 21:02:58 +00:00
  • 85ad04d822 Updated Sergey Poznyakoff 2005-05-30 15:15:25 +00:00
  • fb7b2f3645 (read_name_from_file,update_argv): Automatically detect nul-terminated list files. Sergey Poznyakoff 2005-05-30 15:15:10 +00:00
  • ab03bd6a2c Updated Sergey Poznyakoff 2005-05-30 13:38:21 +00:00