Commit Graph

1812 Commits

Author SHA1 Message Date
Sergey Poznyakoff 09b46a0b47 Update 2005-12-08 15:41:38 +00:00
Sergey Poznyakoff a169d65b94 (gid_to_chars, major_to_chars, minor_to_chars)
(mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
(uid_to_chars, uintmax_to_chars): Return bool
(to_chars): Return bool
(start_header): Check return values of convertion routines. Fail
if unable to store data in the header.
2005-12-08 15:41:28 +00:00
Sergey Poznyakoff 89e65f936d (gid_to_chars, major_to_chars, minor_to_chars)
(mode_to_chars, off_to_chars, size_to_chars, time_to_chars)
(uid_to_chars, uintmax_to_chars): Return bool
2005-12-08 15:41:11 +00:00
Sergey Poznyakoff c9ac15ae0f (Current status): Renamed to 'Changes' and moved to
appendices.
(Large or Negative Values): Rewritten
2005-12-08 15:40:52 +00:00
Sergey Poznyakoff 67770b89f2 Change permissions in the sample outputs to more usual ones 2005-12-07 16:17:44 +00:00
Sergey Poznyakoff f3e6ea7d49 Updated 2005-12-07 15:12:38 +00:00
Sergey Poznyakoff 0d2cdcb797 Remove @set's 2005-12-07 15:12:00 +00:00
Sergey Poznyakoff 49e7ba5b17 Following the discussion with Karl Berry,
discontinue using @value{} substitutions for Texinfo commands.
Properly index all long options. Print a
separate long option index.
2005-12-07 15:11:45 +00:00
Sergey Poznyakoff 3f6d87a61c Update 2005-12-07 09:43:09 +00:00
Sergey Poznyakoff 80855932f0 Resolve some more FIXMEs 2005-12-07 09:42:30 +00:00
Sergey Poznyakoff 9e50e81558 Fix typosin the recent entry 2005-12-07 08:40:46 +00:00
Sergey Poznyakoff 02ec34f473 Update 2005-12-06 23:18:20 +00:00
Sergey Poznyakoff 075c726752 Update 2005-12-06 23:16:10 +00:00
Sergey Poznyakoff 2e7a943d0e (options): Add --restrict option. Use macros for option grouping.
(license): Print full list of copyright years
2005-12-06 23:15:41 +00:00
Sergey Poznyakoff 4ba3b41e2e (sys_exec_info_script): The script can supply new
archive name to use by writing it to file descriptor 3.
2005-12-06 23:15:14 +00:00
Sergey Poznyakoff 4669306854 (sys_exec_info_script): Update delaration
(restrict_option): New global
2005-12-06 23:14:56 +00:00
Sergey Poznyakoff ffc4fb7bdd (new_volume): Update invocation
(change_tape_menu): New function. Disable '!' command if given
--restrict option.
2005-12-06 23:14:44 +00:00
Sergey Poznyakoff c7ab8eaba4 Use TAR_VOLUME instead of reading volno file. 2005-12-06 23:13:28 +00:00
Sergey Poznyakoff 3f166ce0f5 Update --info-scripts documentation 2005-12-06 23:13:19 +00:00
Paul Eggert ac74317f46 * configure.ac (DENSITY_LETTER): Fix m4 overquoting.
* .cvsignore: Ignore .bootstrap.
2005-12-06 21:43:17 +00:00
Sergey Poznyakoff ce522dce26 Update 2005-12-06 16:33:17 +00:00
Sergey Poznyakoff f018d69aac (archive_format_string): Remove static qualifier.
(subcommand_string): New function.
2005-12-06 16:32:37 +00:00
Sergey Poznyakoff ea019af0cc (sys_exec_info_script): New function. 2005-12-06 16:32:17 +00:00
Sergey Poznyakoff 0251059267 (archive_format_string,subcommand_string,sys_exec_info_script): New prototypes. 2005-12-06 16:32:05 +00:00
Sergey Poznyakoff 13d43c302f (new_volume): Use sys_exec_info_script() instead of system(). 2005-12-06 16:31:49 +00:00
Sergey Poznyakoff a5da71b142 Document --to-command and --info-script options. Add missing xrefs. 2005-12-06 16:31:37 +00:00
Sergey Poznyakoff 853edfaff4 Update 2005-12-01 14:51:19 +00:00
Sergey Poznyakoff ca43ee9769 Obtain root_device here, to make sure it works correctly with -C. 2005-12-01 14:50:57 +00:00
Sergey Poznyakoff 888b0d82b7 Update 2005-12-01 12:58:17 +00:00
Sergey Poznyakoff b84053c7be Add Guerkan Karaman 2005-12-01 12:57:50 +00:00
Sergey Poznyakoff c040cabb98 Add incr02.at 2005-12-01 12:51:58 +00:00
Sergey Poznyakoff ae00dc0d37 (purge_directory): Skip the member and return if the archive is not in incremental format. 2005-12-01 12:51:20 +00:00
Sergey Poznyakoff 5249a99377 Fix restoring of directory timestamps from
incremental archives.
(directories_first): New variable.
(prepare_to_extract): Set directories_first
(extract_archive): Call apply_nonancestor_delayed_set_stat() only
if not extracting from an incremental archive
2005-12-01 12:50:58 +00:00
Paul Eggert 2edff367d9 * doc/tar.texi (Option Summary): Rewrite the
--atime-preserve=system description in response to Ian Turner's
proposed patch.
* doc/tar.texi (Extracting Specific Files): Remove obsolescent
FIXME.
2005-12-01 00:18:05 +00:00
Paul Eggert f8f4f49011 (parse_opt): Remove bogus \n in new atime diagnostic. 2005-11-29 19:41:34 +00:00
Paul Eggert 3fbdf738de * lib/.cvsignore: Add malloc.h, regcomp.c, regex.c, regex.h,
regex_internal.c, regex_internal.h, regexc.c; used by rpmatch.
2005-11-29 19:39:06 +00:00
Paul Eggert 7209cbed6c * THANKS: Add Ian Turner. 2005-11-29 19:26:13 +00:00
Paul Eggert aa976a5170 * NEWS: New option --atime-preserve=system, which uses O_NOATIME.
* configure.ac: Prefer AC_CHECK_HEADERS_ONCE to AC_CHECK_HEADERS.
Check for stropts.h and sys/filio.h too, for _FIOSATIME.
* doc/tar.texi: Change "modification time" to "data modification
time", "change time" to "status change time", and "filesystem" to
"file system", so that we use terminology consistent with POSIX.
Use American spacing rather than French for sentence ends.
"non-dependable" -> "undependable".
(Option Summary, Attributes): Explain better the pitfalls of the
--atime-preserve option, and suggest read-only mounts,loopback
mounts, and noatime mounts for older systems.
* doc/value.texi (op-atime-preserve-system): Renamed from
op-atime-preserver-system to fix a misspelling.
* src/common.h (enum atime_preserve): Use lower case for enum values.
* src/compare.c: Don't include utimens.h; no longer needed.
(diff_file): Use set_file_atime rather than utimens; avoid closing
diff_handle until after this, so that we can set the file time stamp
via the file descriptor rather than via its name.
* src/create.c: Don't include utimens.h; no longer needed.
(dump_regular_finish): Remove.  All callers now do its work inline.
(dump_dir): New arg FD.  All callers changed.
Use fdsavedir rather than savedir.
(unknown_file_error): Arg is a const pointer now.
(dump_file0): 2nd arg is a const pointer now.
Treat directories more like files, with respect to --atime-preserve.
For example, also warn if a directory changes while we are dumping it.
Prefer file descriptors to file names when retrieving/setting file
attributes; this saves path-resolution time and allows us to avoid
changing mtime/ctime on Solaris when restoring atime as root.
Use O_DIRECTORY when opening directories, to avoid some race conditions.
Do not reset atime if mtime has changed.  Report an error if
we cannot reset atime.

First cut at adding support for --atime-preserve=system.
* doc/tar.texi (Option Summary): First cut at documenting it.
All other uses of --atime-preserve changed to --atime-preserve=replace.
* doc/value.texi (op-atime-preserve-replace, op-atime-preserver-system):
New.
(op-atime-preserve): Mention METHOD.
* src/common.h (atime_preserve): New enum.
(atime_preserve_option): Now of the enum type rather than bool.
All uses changed.
* src/compare.c (diff_file): Read with O_NOATIME if asked for.
* src/create.c (dump_file0): Read regular and CTG files with O_NOATIME
if asked for.
* src/tar.c (usage): Mention new usage.
(parse_opt): Parse new usage.
2005-11-29 19:14:21 +00:00
Paul Eggert 7b00db5675 Convert back to UTF-8, sort (using LC_ALL=en_US.UTF-8
on Debian stable), and consistently use tabs rather than spaces.
2005-11-29 18:53:34 +00:00
Sergey Poznyakoff 36be286c03 Update 2005-11-27 12:00:42 +00:00
Sergey Poznyakoff d543d2dbbd Remove prematurely introduced parts of new MV format support 2005-11-27 11:59:34 +00:00
Sergey Poznyakoff 5df61b429a Update 2005-11-26 19:32:55 +00:00
Sergey Poznyakoff 9590e781c0 (xheader_format_name): Fix memory leak. 2005-11-26 19:31:02 +00:00
Sergey Poznyakoff 87dfaf3176 Update 2005-11-11 12:18:14 +00:00
Sergey Poznyakoff c81a5e8bf5 Close stdin so that if something fails causing tar to ask for the next volume, it won't hang the testsuite. 2005-11-11 12:17:38 +00:00
Sergey Poznyakoff b5775215d7 (confirm): Rewritten using rpmatch.
(decode_options): Minor optimizations
(main): Call stdopen() to ensure the first three descriptors are
open.
2005-11-11 12:17:10 +00:00
Sergey Poznyakoff df970c7332 Add rpmatch.c 2005-11-11 12:16:41 +00:00
Sergey Poznyakoff f1f3b524f6 Add stdopen, imported from coreutils. 2005-11-11 12:16:28 +00:00
Sergey Poznyakoff 575ea074cc Add rpmatch 2005-11-11 12:15:46 +00:00
Sergey Poznyakoff 6204e3c718 Updated 2005-11-11 00:28:27 +00:00