]> git.ipfire.org Git - thirdparty/libarchive.git/log
thirdparty/libarchive.git
15 years agoFix the handling of multiple Fl options:
Tim Kientzle [Sun, 13 Mar 2011 07:43:36 +0000 (03:43 -0400)] 
Fix the handling of multiple Fl options:
   .Fl Fl command
used to cause -Fl command but now it generates --command.
In the process, bolding of certain command options is
lost; the logic here needs to be significantly reworked.

SVN-Revision: 3010

15 years agoIssue 141: Detect an unrecognized format earlier, in archive_read_open,
Tim Kientzle [Sun, 13 Mar 2011 05:36:55 +0000 (00:36 -0500)] 
Issue 141:  Detect an unrecognized format earlier, in archive_read_open,
instead of waiting until we try to read the first header.
This just required moving the format detection into archive_read_open.
This in turn required updating a some tests that inadvertently
relied on the old behavior.
While poking around in the truncation tests, I went ahead and
updated them to not use the old "assertA" macro, which is
deprecated.

SVN-Revision: 3009

15 years agoMove the -Werror -Wall switches to the top and set them for try-compiles
Tim Kientzle [Sat, 12 Mar 2011 08:26:09 +0000 (03:26 -0500)] 
Move the -Werror -Wall switches to the top and set them for try-compiles
as well.
Before this, there were problems with iconv(), which has variants on different
systems that differ only in const usage; the try-compiles would
pass with the wrong const usage and cause the build to fail.
Setting -Werror on the try-compiles ensures that this doesn't happen.

SVN-Revision: 3008

15 years agoDo a more extensive test for iconv() support:
Tim Kientzle [Fri, 11 Mar 2011 06:25:11 +0000 (01:25 -0500)] 
Do a more extensive test for iconv() support:
  * Check both POSIX-conforming (second argument is const) and non-POSIX
  * Check in libc and libiconv

The configuration script sets three flags:
  * HAVE_ICONV_H
  * HAVE_ICONV
  * ICONV_IS_POSIX
and also adds libiconv to the compile if necessary.

SVN-Revision: 3007

15 years agoThese are really all part of the same set of tests, so combine
Tim Kientzle [Fri, 11 Mar 2011 05:39:45 +0000 (00:39 -0500)] 
These are really all part of the same set of tests, so combine
them into one source file.

SVN-Revision: 3006

15 years agoAdd a test of EUC-JP character encoding.
Tim Kientzle [Fri, 11 Mar 2011 05:34:27 +0000 (00:34 -0500)] 
Add a test of EUC-JP character encoding.

SVN-Revision: 3005

15 years agoFrom Roman Neuhauser.
Tim Kientzle [Fri, 11 Mar 2011 05:23:40 +0000 (00:23 -0500)] 
From Roman Neuhauser.

SVN-Revision: 3004

15 years agoUnbreak build on NetBSD.
Michihiro NAKAJIMA [Thu, 10 Mar 2011 18:31:57 +0000 (13:31 -0500)] 
Unbreak build on NetBSD.

SVN-Revision: 3003

15 years agoNot necessarily better than the cast, but consistent with how other code
Tim Kientzle [Thu, 10 Mar 2011 06:12:24 +0000 (01:12 -0500)] 
Not necessarily better than the cast, but consistent with how other code
handles this type issue.

SVN-Revision: 3002

15 years agoAdd the ability to be able to recognize mtree format without a signature "#mtree"
Michihiro NAKAJIMA [Wed, 9 Mar 2011 17:12:29 +0000 (12:12 -0500)] 
Add the ability to be able to recognize mtree format without a signature "#mtree"
since mtree utility still does not record the signature.

SVN-Revision: 2999

15 years agoUnbreak build on the platform which supports POSIX ACLs.
Michihiro NAKAJIMA [Wed, 9 Mar 2011 15:35:50 +0000 (10:35 -0500)] 
Unbreak build on the platform which supports POSIX ACLs.

SVN-Revision: 2998

15 years agoIssue 140: Calling archive_read_close() twice causes problems.
Tim Kientzle [Wed, 9 Mar 2011 05:29:39 +0000 (00:29 -0500)] 
Issue 140: Calling archive_read_close() twice causes problems.

SVN-Revision: 2996

15 years agoAn attempt to fix the autoconf build now that we like to have iconv.
Tim Kientzle [Tue, 8 Mar 2011 07:03:14 +0000 (02:03 -0500)] 
An attempt to fix the autoconf build now that we like to have iconv.

SVN-Revision: 2995

15 years agoProvide more flexibility in figuring out the proper name
Tim Kientzle [Tue, 8 Mar 2011 07:02:29 +0000 (02:02 -0500)] 
Provide more flexibility in figuring out the proper name
to give iconv for "Unicode".

SVN-Revision: 2994

15 years agoFix some broken tests from the earlier string work
Tim Kientzle [Mon, 7 Mar 2011 05:55:26 +0000 (00:55 -0500)] 
Fix some broken tests from the earlier string work
and refactor the charset conversion routines to be more consistent.

SVN-Revision: 2993

15 years agoSwitch archive_string character set conversion over to use iconv()
Tim Kientzle [Mon, 7 Mar 2011 03:55:37 +0000 (22:55 -0500)] 
Switch archive_string character set conversion over to use iconv()
when it's available.
See Issue 66 and Issue 132 for more discussion.

SVN-Revision: 2992

15 years agoTest for the problem described in Issue 66 and Issue 132.
Tim Kientzle [Sat, 5 Mar 2011 10:11:50 +0000 (05:11 -0500)] 
Test for the problem described in Issue 66 and Issue 132.

SVN-Revision: 2991

15 years agoTest for archive_clear_error().
Tim Kientzle [Sat, 26 Feb 2011 06:06:30 +0000 (01:06 -0500)] 
Test for archive_clear_error().

Thanks to Roman Neuhauser.

SVN-Revision: 2990

15 years agoChange archive_set_error() to clear the error string before
Tim Kientzle [Sat, 26 Feb 2011 05:24:54 +0000 (00:24 -0500)] 
Change archive_set_error() to clear the error string before
putting the new error into it.

SVN-Revision: 2989

15 years agoOnly abort() if the archive handle is so screwed up that we
Tim Kientzle [Sat, 19 Feb 2011 07:12:36 +0000 (02:12 -0500)] 
Only abort() if the archive handle is so screwed up that we
can't report an error.
Otherwise, return FATAL and report a PROGRAMMER ERROR.

SVN-Revision: 2988

15 years agofix the #ifdef around the ea.h include - bug introduced in r2985
Björn Jacke [Fri, 18 Feb 2011 02:29:37 +0000 (21:29 -0500)] 
fix the #ifdef around the ea.h include - bug introduced in r2985

SVN-Revision: 2987

15 years agoDO NOT USE C++ style comments like // in C code !
Björn Jacke [Fri, 18 Feb 2011 02:08:33 +0000 (21:08 -0500)] 
DO NOT USE C++ style comments like // in C code !
Not all C compilers are happy with them, lxc on AIX for example.
There are much more of them in the testing code but the ones
fixed with this commit make at least the most important things compile.

SVN-Revision: 2986

15 years agoadd AIX extended attribute support
Björn Jacke [Fri, 18 Feb 2011 02:05:13 +0000 (21:05 -0500)] 
add AIX extended attribute support

SVN-Revision: 2985

15 years agoadd CMake tests for AIX' EA interface
Björn Jacke [Fri, 18 Feb 2011 02:05:04 +0000 (21:05 -0500)] 
add CMake tests for AIX' EA interface

SVN-Revision: 2984

15 years agoadd autoconf tests for AIX' EA interface
Björn Jacke [Fri, 18 Feb 2011 02:04:50 +0000 (21:04 -0500)] 
add autoconf tests for AIX' EA interface

SVN-Revision: 2983

15 years agoclean.sh: use "rm" with "-f" so that it doens't complain if xargs has nothing to...
Björn Jacke [Wed, 16 Feb 2011 19:26:53 +0000 (14:26 -0500)] 
clean.sh: use "rm" with "-f" so that it doens't complain if xargs has nothing to tell

SVN-Revision: 2982

15 years agoon Tru64 use the F_SETTIMES fcntl to restore timestamps.
Björn Jacke [Wed, 16 Feb 2011 19:26:46 +0000 (14:26 -0500)] 
on Tru64 use the F_SETTIMES fcntl to restore timestamps.
The advantage is that we will even be able to restore ctimes with that.
We need to run as root however to be able to do that.

SVN-Revision: 2981

15 years agoadd ctime to the internal set_timeѕ() function
Björn Jacke [Wed, 16 Feb 2011 19:26:40 +0000 (14:26 -0500)] 
add ctime to the internal set_timeѕ() function

there are OSes that support setting ctime, too. This is patch is in preparation
for that to be supported.

SVN-Revision: 2980

15 years agoWork around broken PSXCRT unistd.h, which defines macros
Tim Kientzle [Sun, 13 Feb 2011 07:16:46 +0000 (02:16 -0500)] 
Work around broken PSXCRT unistd.h, which defines macros
that break any usage of names "optarg" or "option".

SVN-Revision: 2979

15 years agoIssue 135: Have archive_write_data_block fail with an error
Tim Kientzle [Sat, 12 Feb 2011 23:51:36 +0000 (18:51 -0500)] 
Issue 135: Have archive_write_data_block fail with an error
instead of a segv if the operation isn't supported.

SVN-Revision: 2978

15 years agoIssue 135: document archive_write_data_block and make clear that
Tim Kientzle [Sat, 12 Feb 2011 23:47:54 +0000 (18:47 -0500)] 
Issue 135:  document archive_write_data_block and make clear that
it is not supported for archive_write handles, only for archive_write_disk
handles.

SVN-Revision: 2977

15 years agoOn second thought, leave Jan Psota's tables alone and just put
Tim Kientzle [Sat, 12 Feb 2011 20:40:06 +0000 (15:40 -0500)] 
On second thought, leave Jan Psota's tables alone and just put
a footnote with my additional comments.

SVN-Revision: 2976

15 years agoClarify that Jan Psota's test reflects invalid results
Tim Kientzle [Sat, 12 Feb 2011 20:29:44 +0000 (15:29 -0500)] 
Clarify that Jan Psota's test reflects invalid results
for "bsdtar compare" because that operation is not supported
by bsdtar.

SVN-Revision: 2975

15 years agoDocument some of the other items in the contrib directory.
Tim Kientzle [Sat, 12 Feb 2011 20:24:43 +0000 (15:24 -0500)] 
Document some of the other items in the contrib directory.

SVN-Revision: 2974

15 years agoCast size_t values to int so we can print them with %d.
Tim Kientzle [Sat, 12 Feb 2011 20:20:06 +0000 (15:20 -0500)] 
Cast size_t values to int so we can print them with %d.

SVN-Revision: 2973

15 years agoDon't iterate past the end of an octal field on
Tim Kientzle [Sat, 12 Feb 2011 20:18:15 +0000 (15:18 -0500)] 
Don't iterate past the end of an octal field on
a damaged archive.

SVN-Revision: 2972

15 years agoDocument the transition plan for archive_read_finish to be
Tim Kientzle [Sat, 12 Feb 2011 19:26:48 +0000 (14:26 -0500)] 
Document the transition plan for archive_read_finish to be
renamed to archive_read_free.

SVN-Revision: 2967

15 years agoRestore basic documentation for archive_read_finish
Tim Kientzle [Sat, 12 Feb 2011 19:23:29 +0000 (14:23 -0500)] 
Restore basic documentation for archive_read_finish
and archive_write_finish so that developers who need
to support libarchive 2.x won't be too confused
by the name change.

SVN-Revision: 2966

15 years agoarchive_write_header() requires the pathname to be set.
Tim Kientzle [Sat, 12 Feb 2011 19:11:36 +0000 (14:11 -0500)] 
archive_write_header() requires the pathname to be set.

SVN-Revision: 2965

15 years agoFrom Issue 138: properly cast before assigning unsigned long to int.
Tim Kientzle [Fri, 11 Feb 2011 07:07:29 +0000 (02:07 -0500)] 
From Issue 138: properly cast before assigning unsigned long to int.

SVN-Revision: 2964

15 years agoChange mode and compress to int to match other option-processing variables.
Tim Kientzle [Fri, 11 Feb 2011 07:06:52 +0000 (02:06 -0500)] 
Change mode and compress to int to match other option-processing variables.
Remove unused symlink_mode var.

SVN-Revision: 2963

15 years agoImprove an error message.
Tim Kientzle [Fri, 11 Feb 2011 06:54:32 +0000 (01:54 -0500)] 
Improve an error message.

SVN-Revision: 2962

15 years agoIf no name is available, don't store one.
Tim Kientzle [Fri, 11 Feb 2011 06:46:54 +0000 (01:46 -0500)] 
If no name is available, don't store one.

SVN-Revision: 2961

15 years agoDetect when no format is set and return an error.
Tim Kientzle [Fri, 11 Feb 2011 06:46:33 +0000 (01:46 -0500)] 
Detect when no format is set and return an error.

SVN-Revision: 2960

15 years agoSimply set -1 to a file offset not to appear before any directories;
Michihiro NAKAJIMA [Wed, 9 Feb 2011 12:30:56 +0000 (07:30 -0500)] 
Simply set -1 to a file offset not to appear before any directories;
some version of xorriso set its parent directory offset to the offset
of empty files.
Add a test for reading the iso images made by that xorriso.

SVN-Revision: 2959

15 years agoFollowup on Issue 134:
Tim Kientzle [Sun, 6 Feb 2011 05:45:30 +0000 (00:45 -0500)] 
Followup on Issue 134:
 1) Port test_open_failure to libarchive 2.8 branch to test
    the problem reported in Issue 134.
    This test also shows that archive_read_open() sometimes
    fails to report open errors correctly.
 2) Fix the bug in archive_read.c
 3) Comment out the tests that close functions are invoked
    promptly when open fails; that's fully fixed in libarchive 3.0,
    but I don't think it's worth fixing here.

SVN-Revision: 2958

15 years agoDon't compress the Zip file in this test.
Tim Kientzle [Sun, 6 Feb 2011 05:39:37 +0000 (00:39 -0500)] 
Don't compress the Zip file in this test.

SVN-Revision: 2957

15 years agoExtend test_open_failure to verify the case documented in Issue 134.
Tim Kientzle [Sun, 6 Feb 2011 05:38:41 +0000 (00:38 -0500)] 
Extend test_open_failure to verify the case documented in Issue 134.
This tests archive_write_free() after an open failure with zip format.

SVN-Revision: 2956

15 years agoIssue 134: Fix libarchive 2.8 crashing in archive_write_finish() when
Tim Kientzle [Sun, 6 Feb 2011 05:36:18 +0000 (00:36 -0500)] 
Issue 134:  Fix libarchive 2.8 crashing in archive_write_finish() when
the open has failed and we're trying to write Zip format.

SVN-Revision: 2955

15 years agoAdditional information on test failures.
Tim Kientzle [Sun, 30 Jan 2011 06:04:27 +0000 (01:04 -0500)] 
Additional information on test failures.

SVN-Revision: 2954

15 years agoImplement POSIX readdir_r checks in CMakeLists.txt.
Tim Kientzle [Thu, 27 Jan 2011 06:29:22 +0000 (01:29 -0500)] 
Implement POSIX readdir_r checks in CMakeLists.txt.
Fix a mistake in the configure.ac version.

SVN-Revision: 2953

15 years agoOnly recognize the POSIX-compliant version of readdir_r.
Tim Kientzle [Thu, 27 Jan 2011 05:55:06 +0000 (00:55 -0500)] 
Only recognize the POSIX-compliant version of readdir_r.
Some systems have a different prototype that we don't support.

SVN-Revision: 2952

15 years agoFix typo and comment.
Michihiro NAKAJIMA [Thu, 27 Jan 2011 03:19:27 +0000 (22:19 -0500)] 
Fix typo and comment.

SVN-Revision: 2951

15 years agoIssue 130: Typos and cross-reference errors in man pages.
Tim Kientzle [Wed, 26 Jan 2011 05:33:16 +0000 (00:33 -0500)] 
Issue 130:  Typos and cross-reference errors in man pages.

SVN-Revision: 2950

15 years agoHaving a "windows.h" header does not make you a Windows platform.
Tim Kientzle [Wed, 26 Jan 2011 04:25:25 +0000 (23:25 -0500)] 
Having a "windows.h" header does not make you a Windows platform.
(In particular, SCO 5 seems to have a header with that name.)

SVN-Revision: 2949

15 years agoProperly restore birthtime on Windows; use W32API directly in
Michihiro NAKAJIMA [Tue, 25 Jan 2011 22:36:17 +0000 (17:36 -0500)] 
Properly restore birthtime on Windows; use W32API directly in
archive_write_disk.c and remove __la_futimes()/__la_utimes()
functions and related definitions, which were used in
archive_write_disk.c only.

SVN-Revision: 2948

15 years agoAvoid the warning about uninitialized variable which
Michihiro NAKAJIMA [Tue, 25 Jan 2011 20:09:41 +0000 (15:09 -0500)] 
Avoid the warning about uninitialized variable which
some compiler complain about, although it is actually
unnecessary.

SVN-Revision: 2947

15 years agoImprove checking of statfs in LSB.
Michihiro NAKAJIMA [Tue, 25 Jan 2011 19:55:43 +0000 (14:55 -0500)] 
Improve checking of statfs in LSB.
Use HAVE_SYS_STATFS_H to use statfs on linux instead of HAVE_SYS_VFS_H
and add checking of HAVE_SYS_STATVFS_H to use statvfs.

SVN-Revision: 2946

15 years agoDon't leave out required test files.
Tim Kientzle [Tue, 25 Jan 2011 05:15:27 +0000 (00:15 -0500)] 
Don't leave out required test files.

SVN-Revision: 2945

15 years agoWhen fetching the file contents from disk, obey local system
Tim Kientzle [Mon, 24 Jan 2011 04:57:05 +0000 (23:57 -0500)] 
When fetching the file contents from disk, obey local system
limitations.  (This should probably be rewritten to use
archive_read_disk_entry_from_file().)

SVN-Revision: 2944

15 years agoBe consistent in when we choose to use the deep-directory logic.
Tim Kientzle [Mon, 24 Jan 2011 04:55:58 +0000 (23:55 -0500)] 
Be consistent in when we choose to use the deep-directory logic.

SVN-Revision: 2943

15 years agoStart using int64_t for uid/gid variables and int for mode variables.
Tim Kientzle [Mon, 24 Jan 2011 04:55:26 +0000 (23:55 -0500)] 
Start using int64_t for uid/gid variables and int for mode variables.
The case to consider here is when a system with narrow types is
used to modify an archive that was created and will later be extracted
on a system with wide types.  If we're not actually dealing with
the local filesystem, we should not be constrained by its limitations.

SVN-Revision: 2942

15 years agoSome platoforms do not define NAME_MAX macro and some platforms define but
Michihiro NAKAJIMA [Mon, 24 Jan 2011 04:41:33 +0000 (23:41 -0500)] 
Some platoforms do not define NAME_MAX macro and some platforms define but
its value is wrong. Avoid those problems.

SVN-Revision: 2941

15 years agoIf the offset of a file entry is zero, set -1 to the offset, which is
Michihiro NAKAJIMA [Sun, 23 Jan 2011 20:25:48 +0000 (15:25 -0500)] 
If the offset of a file entry is zero, set -1 to the offset, which is
calculated from its location, to make sure the entry will appear after
directory entries.
Some ISO image writer(xorriso) set zero to the location of a symlink entry.
It causes that our ISO-reader cannot read following directory entries at all
since we expect directory entries is located before file entries and we
are sorting all entry in an ISO image by the offset to read the contents
of the entries in stream.

SVN-Revision: 2940

15 years agoEnsure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
Tim Kientzle [Sun, 23 Jan 2011 06:14:21 +0000 (01:14 -0500)] 
Ensure that int64_t, int32_t, int16_t, intmax_t, uint64_t, uint32_t,
uint16_t, and uintmax_t are all defined by probing the available
integer types and their sizes during the configure, then using that
information to typedef the required types at compile time.

SVN-Revision: 2939

15 years agoOn Windows, set 'Creation time' to both birthtime and ctime, because
Michihiro NAKAJIMA [Sun, 23 Jan 2011 01:32:42 +0000 (20:32 -0500)] 
On Windows, set 'Creation time' to both birthtime and ctime, because
CRT stat() Microsoft provides set 'Creation time' to st_ctime.
It seems we should do that not to confuse applications about ctime.

SVN-Revision: 2938

15 years agoEliminate a bunch of off_t uses.
Tim Kientzle [Sat, 22 Jan 2011 23:05:58 +0000 (18:05 -0500)] 
Eliminate a bunch of off_t uses.

Most of these are from the libarchive 2 API that's no longer supported.
A few are places where int64_t offsets need to be mapped down to system
APIs that might only be 32 bits; those are a little trickier.

SVN-Revision: 2937

15 years agoAdd autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t
Tim Kientzle [Sat, 22 Jan 2011 22:20:35 +0000 (17:20 -0500)] 
Add autoconf logic to ensure we have int32_t, uint32_t, int16_t, and uint16_t

SVN-Revision: 2936

15 years agoOn SCO 5, use "long long" as the 64-bit integer type in the public
Tim Kientzle [Sat, 22 Jan 2011 07:37:51 +0000 (02:37 -0500)] 
On SCO 5, use "long long" as the 64-bit integer type in the public
headers and don't try to include inttypes.h

SVN-Revision: 2935

15 years agoWork around missing wmemcmp()
Tim Kientzle [Sat, 22 Jan 2011 07:35:58 +0000 (02:35 -0500)] 
Work around missing wmemcmp()

SVN-Revision: 2934

15 years agoCorrect arguments order of assertion_utimes() function.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 16:31:00 +0000 (11:31 -0500)] 
Correct arguments order of assertion_utimes() function.

SVN-Revision: 2933

15 years agoEliminate some warnings on Visual Studio.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 15:35:24 +0000 (10:35 -0500)] 
Eliminate some warnings on Visual Studio.

SVN-Revision: 2932

15 years agoUse O_NOATIME flag to open() operation if we can.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 14:15:24 +0000 (09:15 -0500)] 
Use O_NOATIME flag to open() operation if we can.

SVN-Revision: 2931

15 years agoFix build error on linux.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 13:28:06 +0000 (08:28 -0500)] 
Fix build error on linux.

SVN-Revision: 2930

15 years agoAdd the ability to restore atime to the directory traversals.
Michihiro NAKAJIMA [Fri, 21 Jan 2011 12:55:50 +0000 (07:55 -0500)] 
Add the ability to restore atime to the directory traversals.

SVN-Revision: 2929

15 years agoDrop unneeded O_NOFOLLOW because we already know what
Michihiro NAKAJIMA [Thu, 20 Jan 2011 11:04:38 +0000 (06:04 -0500)] 
Drop unneeded O_NOFOLLOW because we already know what
current file is not symlink.

SVN-Revision: 2928

15 years agoAvoid build error about unused get_xfer_size() function.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 15:11:32 +0000 (10:11 -0500)] 
Avoid build error about unused get_xfer_size() function.

SVN-Revision: 2927

15 years agoTry to eliminate fchdir() operation as much as we can in the directory
Michihiro NAKAJIMA [Wed, 19 Jan 2011 14:48:24 +0000 (09:48 -0500)] 
Try to eliminate fchdir() operation as much as we can in the directory
traversals, which is a new API for the read disk object.

SVN-Revision: 2926

15 years agoUse readlinkat() function if platform has.
Michihiro NAKAJIMA [Wed, 19 Jan 2011 12:04:51 +0000 (07:04 -0500)] 
Use readlinkat() function if platform has.

SVN-Revision: 2925

15 years agoUse extattr_list_fd/extattr_get_fd to get extended attributes on FreeBSD
Michihiro NAKAJIMA [Wed, 19 Jan 2011 11:36:24 +0000 (06:36 -0500)] 
Use extattr_list_fd/extattr_get_fd to get extended attributes on FreeBSD
if a file descriptor is specified.

SVN-Revision: 2924

15 years agoUse flistxattr/fgetxattr to get extended attributes on Linux
Michihiro NAKAJIMA [Wed, 19 Jan 2011 11:27:17 +0000 (06:27 -0500)] 
Use flistxattr/fgetxattr to get extended attributes on Linux
if a file descriptor is specified.

SVN-Revision: 2923

15 years agoAdd the experimental code using O_DIRECT in the read disk object and
Michihiro NAKAJIMA [Tue, 18 Jan 2011 22:01:34 +0000 (17:01 -0500)] 
Add the experimental code using O_DIRECT in the read disk object and
it's disabled for now.

SVN-Revision: 2922

15 years agoDo not set a default value to struct fileystem.xfer_align and related
Michihiro NAKAJIMA [Tue, 18 Jan 2011 21:11:00 +0000 (16:11 -0500)] 
Do not set a default value to struct fileystem.xfer_align and related
variables when we could not get a filesystem alignment because of a lack
of statfs/statvfs family of functions to know what we can trust the alignment.

SVN-Revision: 2921

15 years agoUpdate comment for setup_current_filesystem().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 19:56:53 +0000 (14:56 -0500)] 
Update comment for setup_current_filesystem().

SVN-Revision: 2920

15 years ago_PC_REC_XFER_* macros used for pathconf() are defined but not supported on Cygwin.
Michihiro NAKAJIMA [Tue, 18 Jan 2011 19:11:33 +0000 (14:11 -0500)] 
_PC_REC_XFER_* macros used for pathconf() are defined but not supported on Cygwin.

SVN-Revision: 2919

15 years agoReduce performing fchdir().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 13:13:19 +0000 (08:13 -0500)] 
Reduce performing fchdir().
For example, when the disk read object was opened with
archive_read_disk_open("file.txt")(not a directory),
performing fchdir() is really unneeded.

SVN-Revision: 2918

15 years agopathconf(_PC_REC_INCR_XFER_SIZE) on some platform does not return
Michihiro NAKAJIMA [Tue, 18 Jan 2011 11:35:10 +0000 (06:35 -0500)] 
pathconf(_PC_REC_INCR_XFER_SIZE) on some platform does not return
a proper value.

SVN-Revision: 2917

15 years agoAt this time struct statvfs.f_namemax is usually not initialized,
Michihiro NAKAJIMA [Tue, 18 Jan 2011 11:28:35 +0000 (06:28 -0500)] 
At this time struct statvfs.f_namemax is usually not initialized,
use struct statfs.f_namelen instead.

SVN-Revision: 2916

15 years agoFix build warning on the platform which does not have getvfsbyname().
Michihiro NAKAJIMA [Tue, 18 Jan 2011 09:53:33 +0000 (04:53 -0500)] 
Fix build warning on the platform which does not have getvfsbyname().

SVN-Revision: 2915

15 years agostruct filesystem.name_max appears only HAVE_READDIR_R is defined.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 16:19:25 +0000 (11:19 -0500)] 
struct filesystem.name_max appears only HAVE_READDIR_R is defined.

SVN-Revision: 2914

15 years agoMake sure do not use broken symlink path.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 16:07:54 +0000 (11:07 -0500)] 
Make sure do not use broken symlink path.

SVN-Revision: 2913

15 years agoTweak setup_current_filesystem() for FreeBSD to be able to be used
Michihiro NAKAJIMA [Mon, 17 Jan 2011 15:52:52 +0000 (10:52 -0500)] 
Tweak setup_current_filesystem() for FreeBSD to be able to be used
for OpenBSD and Mac OS X.

SVN-Revision: 2912

15 years agoAdjust a read buffer address to the current filesystem alignment.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 14:46:10 +0000 (09:46 -0500)] 
Adjust a read buffer address to the current filesystem alignment.

SVN-Revision: 2911

15 years agoPush down the code gettting maximum filename length, which is available
Michihiro NAKAJIMA [Mon, 17 Jan 2011 10:55:14 +0000 (05:55 -0500)] 
Push down the code gettting maximum filename length, which is available
by statvfs()/statfs().

SVN-Revision: 2910

15 years agoFix build error on some platforme which has standard statvfs only.
Michihiro NAKAJIMA [Mon, 17 Jan 2011 10:06:44 +0000 (05:06 -0500)] 
Fix build error on some platforme which has standard statvfs only.

SVN-Revision: 2909

15 years agoRemove unneeded initialization on Windows. I forgot this in r2899.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:56:36 +0000 (18:56 -0500)] 
Remove unneeded initialization on Windows. I forgot this in r2899.

SVN-Revision: 2902

15 years agoRevert previous change. I was wrong.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:42:04 +0000 (18:42 -0500)] 
Revert previous change. I was wrong.

SVN-Revision: 2901

15 years agoDo not read an unused variable.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:19:20 +0000 (18:19 -0500)] 
Do not read an unused variable.

SVN-Revision: 2900

15 years agoRemove the wrong initialization which caused invalid memory access.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 23:16:08 +0000 (18:16 -0500)] 
Remove the wrong initialization which caused invalid memory access.

SVN-Revision: 2899

15 years agoFix typo.
Michihiro NAKAJIMA [Sun, 16 Jan 2011 21:10:09 +0000 (16:10 -0500)] 
Fix typo.

SVN-Revision: 2898