Commit Graph

52 Commits

Author SHA1 Message Date
Sergey Poznyakoff
7d822e225e (DEFAULT_QUOTING_STYLE): New configuration variable 2006-01-18 15:35:44 +00:00
Paul Eggert
ac74317f46 * configure.ac (DENSITY_LETTER): Fix m4 overquoting.
* .cvsignore: Ignore .bootstrap.
2005-12-06 21:43:17 +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
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.
2005-09-16 07:03:44 +00:00
Sergey Poznyakoff
eb70fd51cb (AC_STRUCT_ST_BLKSIZE,AC_STRUCT_ST_BLOCKS): Removed. Handled by system.m4. 2005-06-13 12:53:25 +00:00
Sergey Poznyakoff
dfabe2397a Remove checking for LIB_SETSOCKOPT, it is handled by paxutils 2005-05-19 15:32:56 +00:00
Paul Eggert
120e96c480 Update FSF postal mail address. 2005-05-15 03:59:08 +00:00
Paul Eggert
7ebf107f89 Update copyright date. 2005-04-04 18:37:52 +00:00
Paul Eggert
5fe7f641e8 Rename config/ to build-aux/. 2005-04-04 18:35:53 +00:00
Sergey Poznyakoff
2c9d869851 Raised version number to 1.15.2 2005-01-18 01:10:12 +00:00
Sergey Poznyakoff
941d7586db Call tar_PAXUTILS 2005-01-06 18:15:50 +00:00
Sergey Poznyakoff
c6834baaf6 Raise version number to 1.15.1; Check for locale.h 2004-12-21 13:23:10 +00:00
Sergey Poznyakoff
5f1e6a6a3b Raised version number to 1.15 2004-12-20 13:54:01 +00:00
Sergey Poznyakoff
dcdbe18968 Raised version number to 1.14.91 2004-11-26 19:07:42 +00:00
Sergey Poznyakoff
7d6865480e Updated for autotest 2004-09-07 18:42:47 +00:00
Sergey Poznyakoff
7347b4f5d5 Started merging with cpio into paxutils. 2004-09-06 14:28:55 +00:00
Sergey Poznyakoff
a0404319e2 ew option --with-rmt. New configuration variable DEFAULT_RMT_DIR. Removed DEFAULT_RMT_COMMAND. 2004-09-02 13:53:03 +00:00
Sergey Poznyakoff
d1f3689d96 Raised version number to 1.14.90 2004-09-01 15:08:14 +00:00
Paul Eggert
93becc4f52 (_getopt_long_only_r): Remove check.
gl_ARGP now does this for us.
2004-08-12 18:33:13 +00:00
Paul Eggert
08cba4e4e5 (valloc): Remove check; valloc no longer used. 2004-08-03 04:42:18 +00:00
Sergey Poznyakoff
792965270b Check for _getopt_long_only_r and force using included version of getopt if the function is not available. 2004-05-16 20:47:07 +00:00
Sergey Poznyakoff
e1a4fea80d Raised version number to 1.14.1 2004-05-13 08:23:47 +00:00
Sergey Poznyakoff
0500b1ba3e Raised version number to 1.14 2004-05-11 09:25:15 +00:00
Sergey Poznyakoff
be8899e6aa Fixed prerequisite headers for sys/buf.h (needed on FreeBSD) 2004-05-10 13:47:52 +00:00
Sergey Poznyakoff
bc07e8cce4 Call gl_AC_TYPE_INTMAX_T. Document
DEFAULT_.* variables. Use DEFAULT_RMT_COMMAND to set
the pathname of the rmt utility.
New option --enable-backup-scripts.
2004-05-10 11:37:31 +00:00
Sergey Poznyakoff
d58eaa815d Minor fix 2004-05-08 22:22:24 +00:00
Sergey Poznyakoff
640effdebd Check whether date accepts +format argument (for backup scripts). 2004-05-06 09:11:32 +00:00
Sergey Poznyakoff
e17093af78 Invoke tar_GNULIB to configure gnulib stuff. 2004-04-26 13:38:41 +00:00
Sergey Poznyakoff
3087f4c1c9 Fixed test for iconv_t 2004-04-20 11:06:08 +00:00
Paul Eggert
2bda83b48d Merge recent gnulib changes, and remove some lint. 2004-04-05 02:29:18 +00:00
Sergey Poznyakoff
f9dc020f90 Raised version number to 1.13.94 2004-04-04 13:30:42 +00:00
Sergey Poznyakoff
72e3da5dc7 Added gl_FUNC_STRTOULL 2004-03-22 09:15:56 +00:00
Sergey Poznyakoff
ca84e28ee5 Removed spurious AC_CHECK_LIB(iconv) 2004-02-29 00:04:21 +00:00
Paul Eggert
fb9a7d180f Invoke AM_ICONV, to define ICONV_CONST if needed. 2004-02-23 22:31:20 +00:00
Sergey Poznyakoff
634927b7d2 Detect libiconv 2004-02-22 20:51:10 +00:00
Sergey Poznyakoff
44da0983c0 Sorry, the version number is .93 2004-02-21 09:40:45 +00:00
Sergey Poznyakoff
ee6aa2bea8 Raised patchlevel to 92a 2004-02-21 09:34:39 +00:00
Sergey Poznyakoff
ff541dcac6 Updated 2004-02-18 14:56:56 +00:00
Sergey Poznyakoff
7d31c8176c Added stpcpy 2004-02-18 14:39:24 +00:00
Sergey Poznyakoff
65ef81b0a3 Require automake-1.8/autoconf-2.59. Removed m4/Makefile. 2004-01-21 10:32:06 +00:00
uid65697
bb0b5c01c9 Check for varios members of struct stat that may represent file modification times with a subsecond precision. Check for utimes (for future use) 2003-12-25 10:18:00 +00:00
uid65697
15cb6d782c Raised version number to 1.13.92 2003-12-25 10:17:48 +00:00
Sergey Poznyakoff
a41d27ff5b Check for setlocale. Thanks Bruno Haible for reporting. 2003-11-30 21:18:12 +00:00
Sergey Poznyakoff
69bbe71607 Fixed check for setsockopt 2003-11-14 13:33:11 +00:00
Sergey Poznyakoff
f6be77cada (tar_save_LIBS): Bugfix. Thanks Adrian
Bunk <bunk@fs.tum.de> for reporting.
2003-11-11 15:01:13 +00:00
Sergey Poznyakoff
cb090cfe82 Added checks for missing functions. Raised version number to indicate alpha release. 2003-10-08 11:16:37 +00:00
Sergey Poznyakoff
86f7407ffe Check for dev_t and ino_t. 2003-10-04 18:10:08 +00:00
Paul Eggert
491bcfb153 (AC_AIX, AC_MINIX): Remove; subsumed by gl_USE_SYSTEM_EXTENSIONS. 2003-09-18 06:27:34 +00:00
Sergey Poznyakoff
9f0cdc8f56 Allow to redefine the default output format. 2003-09-03 11:02:38 +00:00
Paul Eggert
01f19e973b Merge changes from gnulib. 2003-09-02 04:09:03 +00:00