OSDN Git Service

android-x86/external-exfat.git
9 years agoFix building issues on Android 5.0
Chih-Wei Huang [Mon, 20 Oct 2014 10:15:12 +0000 (18:15 +0800)]
Fix building issues on Android 5.0

10 years agoLink libfuse-lite from ntfs-3g kitkat-x86
Chih-Wei Huang [Thu, 17 Apr 2014 09:56:54 +0000 (17:56 +0800)]
Link libfuse-lite from ntfs-3g

10 years agoMerge branch 'master' of http://exfat.googlecode.com/svn/trunk/ into kitkat-x86
Chih-Wei Huang [Thu, 17 Apr 2014 09:20:01 +0000 (17:20 +0800)]
Merge branch 'master' of exfat.googlecode.com/svn/trunk/ into kitkat-x86

10 years agoHandle I/O errors in exfat_put_node().
resver@gmail.com [Tue, 8 Apr 2014 04:21:21 +0000 (04:21 +0000)]
Handle I/O errors in exfat_put_node().

git-svn-id: http://exfat.googlecode.com/svn/trunk@396 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoCheck device size on mount.
resver [Sun, 23 Feb 2014 11:23:55 +0000 (11:23 +0000)]
Check device size on mount.

git-svn-id: http://exfat.googlecode.com/svn/trunk@395 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoValidate VBR checksum before other checks.
resver [Sun, 23 Feb 2014 10:41:29 +0000 (10:41 +0000)]
Validate VBR checksum before other checks.

git-svn-id: http://exfat.googlecode.com/svn/trunk@394 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed missing node put on error paths.
resver [Thu, 20 Feb 2014 17:40:28 +0000 (17:40 +0000)]
Fixed missing node put on error paths.

git-svn-id: http://exfat.googlecode.com/svn/trunk@393 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed return value from exfat_rename().
resver@gmail.com [Sat, 18 Jan 2014 07:36:44 +0000 (07:36 +0000)]
Fixed return value from exfat_rename().

git-svn-id: http://exfat.googlecode.com/svn/trunk@392 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed memory use after free on error paths.
resver@gmail.com [Sat, 18 Jan 2014 07:35:26 +0000 (07:35 +0000)]
Fixed memory use after free on error paths.

git-svn-id: http://exfat.googlecode.com/svn/trunk@391 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed compilation on OpenBSD.
resver@gmail.com [Wed, 15 Jan 2014 17:08:11 +0000 (17:08 +0000)]
Fixed compilation on OpenBSD.

Signed-off-by: Helg Bredow <xx404@msn.com>
git-svn-id: http://exfat.googlecode.com/svn/trunk@390 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoAdded OpenBSD support.
resver@gmail.com [Mon, 13 Jan 2014 07:17:47 +0000 (07:17 +0000)]
Added OpenBSD support.

Signed-off-by: Helg Bredow <xx404@msn.com>
git-svn-id: http://exfat.googlecode.com/svn/trunk@389 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoAdded to the man page note about partition type.
resver@gmail.com [Mon, 13 Jan 2014 07:16:35 +0000 (07:16 +0000)]
Added to the man page note about partition type.

Signed-off-by: Helg Bredow <xx404@msn.com>
git-svn-id: http://exfat.googlecode.com/svn/trunk@388 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoRelaxed node size check. This fixes pagefile.sys error.
resver@gmail.com [Mon, 11 Nov 2013 20:09:57 +0000 (20:09 +0000)]
Relaxed node size check. This fixes pagefile.sys error.

git-svn-id: http://exfat.googlecode.com/svn/trunk@387 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoMoved node checks into a separate function check_node().
resver@gmail.com [Mon, 11 Nov 2013 17:24:21 +0000 (17:24 +0000)]
Moved node checks into a separate function check_node().

git-svn-id: http://exfat.googlecode.com/svn/trunk@386 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoSimplified return code checking in shrink_directory().
resver@gmail.com [Sun, 10 Nov 2013 15:15:19 +0000 (15:15 +0000)]
Simplified return code checking in shrink_directory().

git-svn-id: http://exfat.googlecode.com/svn/trunk@385 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed bitmaps handling on big-endian machines.
resver@gmail.com [Sat, 26 Oct 2013 18:08:10 +0000 (18:08 +0000)]
Fixed bitmaps handling on big-endian machines.

git-svn-id: http://exfat.googlecode.com/svn/trunk@384 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O error in exfat_next_cluster().
resver@gmail.com [Mon, 21 Oct 2013 07:11:48 +0000 (07:11 +0000)]
Handle I/O error in exfat_next_cluster().

git-svn-id: http://exfat.googlecode.com/svn/trunk@383 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed return codes from exfat_close() and exfat_fsync(): return -EIO on error instead...
resver@gmail.com [Fri, 23 Aug 2013 05:56:00 +0000 (05:56 +0000)]
Fixed return codes from exfat_close() and exfat_fsync(): return -EIO on error instead of 1. Also do fsync() after ublio_fsync(): ublio_fsync() does not flush changes to the disk, just writes them.

git-svn-id: http://exfat.googlecode.com/svn/trunk@382 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed crash on unmount under OSXFUSE: it calls fuse_exfat_fsync() for "/" which was...
resver@gmail.com [Fri, 23 Aug 2013 05:49:35 +0000 (05:49 +0000)]
Fixed crash on unmount under OSXFUSE: it calls fuse_exfat_fsync() for "/" which was not opened.

git-svn-id: http://exfat.googlecode.com/svn/trunk@381 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoMerge branch 'master' of http://exfat.googlecode.com/svn/trunk/ into cm-10.2
Steve Kondik [Thu, 22 Aug 2013 11:21:46 +0000 (04:21 -0700)]
Merge branch 'master' of exfat.googlecode.com/svn/trunk/ into cm-10.2

Change-Id: Iced8c56f8089a5b6dbfe913c23fb35c4a3c99b48

10 years agoexfat: Recovery friendliness
Steve Kondik [Sat, 17 Aug 2013 06:45:58 +0000 (23:45 -0700)]
exfat: Recovery friendliness

 * We can't link this code with recovery due to the use of GPL, so let's
   build a multi-call binary to be space efficient.

Change-Id: I147e4a17422f0050426a8f996bdfeaf3f08feacf

10 years agoHandle I/O error in exfat_flush().
resver@gmail.com [Tue, 6 Aug 2013 20:16:20 +0000 (20:16 +0000)]
Handle I/O error in exfat_flush().

git-svn-id: http://exfat.googlecode.com/svn/trunk@380 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O errors in exfat_flush_node().
resver@gmail.com [Tue, 6 Aug 2013 20:08:06 +0000 (20:08 +0000)]
Handle I/O errors in exfat_flush_node().

git-svn-id: http://exfat.googlecode.com/svn/trunk@379 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoClose device and free super block on failure to read boot sector.
resver@gmail.com [Tue, 6 Aug 2013 19:54:09 +0000 (19:54 +0000)]
Close device and free super block on failure to read boot sector.

git-svn-id: http://exfat.googlecode.com/svn/trunk@378 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O errors in erase_entry().
resver@gmail.com [Tue, 6 Aug 2013 19:51:50 +0000 (19:51 +0000)]
Handle I/O errors in erase_entry().

git-svn-id: http://exfat.googlecode.com/svn/trunk@377 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O errors in rename_entry().
resver@gmail.com [Tue, 6 Aug 2013 19:27:43 +0000 (19:27 +0000)]
Handle I/O errors in rename_entry().

git-svn-id: http://exfat.googlecode.com/svn/trunk@376 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O error in set_next_cluster().
resver@gmail.com [Tue, 6 Aug 2013 19:08:24 +0000 (19:08 +0000)]
Handle I/O error in set_next_cluster().

git-svn-id: http://exfat.googlecode.com/svn/trunk@375 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O error in erase_raw().
resver@gmail.com [Tue, 6 Aug 2013 18:59:40 +0000 (18:59 +0000)]
Handle I/O error in erase_raw().

git-svn-id: http://exfat.googlecode.com/svn/trunk@374 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoHandle I/O errors.
resver@gmail.com [Tue, 6 Aug 2013 18:56:09 +0000 (18:56 +0000)]
Handle I/O errors.

git-svn-id: http://exfat.googlecode.com/svn/trunk@373 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoGive the caller a chance to handle I/O errors reported by pread() and pwrite().
resver@gmail.com [Tue, 6 Aug 2013 18:53:10 +0000 (18:53 +0000)]
Give the caller a chance to handle I/O errors reported by pread() and pwrite().

git-svn-id: http://exfat.googlecode.com/svn/trunk@372 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoAddress clusters bitmap using size_t-sized blocks instead of bytes. This should be...
resver@gmail.com [Sat, 3 Aug 2013 13:25:28 +0000 (13:25 +0000)]
Address clusters bitmap using size_t-sized blocks instead of bytes. This should be a bit faster.

git-svn-id: http://exfat.googlecode.com/svn/trunk@371 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoCheck max continuations count when reading file entry.
resver@gmail.com [Sat, 3 Aug 2013 08:42:58 +0000 (08:42 +0000)]
Check max continuations count when reading file entry.

git-svn-id: http://exfat.googlecode.com/svn/trunk@370 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed buffer overflows when handling files names of exactly 256 UTF-16 characters...
resver@gmail.com [Sat, 3 Aug 2013 08:36:54 +0000 (08:36 +0000)]
Fixed buffer overflows when handling files names of exactly 256 UTF-16 characters in length.

git-svn-id: http://exfat.googlecode.com/svn/trunk@369 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoImplemented fsync() and fsyncdir().
resver@gmail.com [Mon, 22 Jul 2013 18:04:26 +0000 (18:04 +0000)]
Implemented fsync() and fsyncdir().

git-svn-id: http://exfat.googlecode.com/svn/trunk@368 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed license for the SConscript.
resver@gmail.com [Mon, 8 Jul 2013 17:00:51 +0000 (17:00 +0000)]
Fixed license for the SConscript.

git-svn-id: http://exfat.googlecode.com/svn/trunk@367 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoRelicensed the code from GPLv3+ to GPLv2+.
resver@gmail.com [Mon, 8 Jul 2013 07:30:45 +0000 (07:30 +0000)]
Relicensed the code from GPLv3+ to GPLv2+.

git-svn-id: http://exfat.googlecode.com/svn/trunk@366 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoUse safer names for byteorder stuff.
resver@gmail.com [Mon, 8 Jul 2013 06:43:54 +0000 (06:43 +0000)]
Use safer names for byteorder stuff.

git-svn-id: http://exfat.googlecode.com/svn/trunk@365 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoCall exit instead of abort on unhandled errors
Steve Kondik [Sun, 7 Jul 2013 07:34:45 +0000 (00:34 -0700)]
Call exit instead of abort on unhandled errors

 * Abort will show us a very scary stacktrace on Android under some
   situations such as a card being ejected. Call exit(-1) instead.

10 years agoHandle 64-bit offsets correctly on Android
Steve Kondik [Sun, 7 Jul 2013 07:33:03 +0000 (00:33 -0700)]
Handle 64-bit offsets correctly on Android

10 years agoAdd support for building on Android
Steve Kondik [Sun, 7 Jul 2013 07:13:57 +0000 (00:13 -0700)]
Add support for building on Android

10 years agoRemoved OpenBSD-specific macros because there is no OpenBSD port anyway.
resver@gmail.com [Thu, 4 Jul 2013 05:39:50 +0000 (05:39 +0000)]
Removed OpenBSD-specific macros because there is no OpenBSD port anyway.

git-svn-id: http://exfat.googlecode.com/svn/trunk@364 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoRemoved Solaris-specific macros because Solaris support is broken anyway.
resver@gmail.com [Wed, 3 Jul 2013 17:35:11 +0000 (17:35 +0000)]
Removed Solaris-specific macros because Solaris support is broken anyway.

git-svn-id: http://exfat.googlecode.com/svn/trunk@363 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed __attribute => __attribute__.
resver@gmail.com [Fri, 21 Jun 2013 18:03:33 +0000 (18:03 +0000)]
Fixed __attribute => __attribute__.

git-svn-id: http://exfat.googlecode.com/svn/trunk@362 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoUse C11 _Static_assert if it is supported by a compiler.
resver@gmail.com [Fri, 21 Jun 2013 17:46:03 +0000 (17:46 +0000)]
Use C11 _Static_assert if it is supported by a compiler.

git-svn-id: http://exfat.googlecode.com/svn/trunk@361 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoModified STATIC_ASSERT so that it can be used both inside and outside of functions.
resver@gmail.com [Thu, 13 Jun 2013 18:06:18 +0000 (18:06 +0000)]
Modified STATIC_ASSERT so that it can be used both inside and outside of functions.

git-svn-id: http://exfat.googlecode.com/svn/trunk@360 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoRemove excessive semicolons after static asserts.
resver@gmail.com [Sun, 9 Jun 2013 07:54:35 +0000 (07:54 +0000)]
Remove excessive semicolons after static asserts.

git-svn-id: http://exfat.googlecode.com/svn/trunk@359 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoMove compiler-specific code into a separate header.
resver@gmail.com [Sun, 9 Jun 2013 07:23:35 +0000 (07:23 +0000)]
Move compiler-specific code into a separate header.

git-svn-id: http://exfat.googlecode.com/svn/trunk@358 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoRemoved extra error message.
resver@gmail.com [Tue, 4 Jun 2013 18:37:56 +0000 (18:37 +0000)]
Removed extra error message.

git-svn-id: http://exfat.googlecode.com/svn/trunk@357 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoUpdate volume label in struct ef on exfat_set_label().
resver@gmail.com [Mon, 20 May 2013 16:41:35 +0000 (16:41 +0000)]
Update volume label in struct ef on exfat_set_label().

git-svn-id: http://exfat.googlecode.com/svn/trunk@356 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoFixed handling of long non-ASCII file names.
resver@gmail.com [Mon, 20 May 2013 16:33:27 +0000 (16:33 +0000)]
Fixed handling of long non-ASCII file names.

git-svn-id: http://exfat.googlecode.com/svn/trunk@355 60bc1c72-a15a-11de-b98f-4500b42dc123

10 years agoMove platform-specific code into a separate header.
resver@gmail.com [Tue, 14 May 2013 18:41:17 +0000 (18:41 +0000)]
Move platform-specific code into a separate header.

git-svn-id: http://exfat.googlecode.com/svn/trunk@354 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAllow arbitrary changing of lower 9 bits of mode. Allow owner/group changing to the...
resver@gmail.com [Sat, 20 Apr 2013 10:34:48 +0000 (10:34 +0000)]
Allow arbitrary changing of lower 9 bits of mode. Allow owner/group changing to the same owner/group. Remove "quiet" option.

git-svn-id: http://exfat.googlecode.com/svn/trunk@353 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed grammar in mount.exfat-fuse manpage.
resver@gmail.com [Sat, 20 Apr 2013 10:14:22 +0000 (10:14 +0000)]
Fixed grammar in mount.exfat-fuse manpage.

git-svn-id: http://exfat.googlecode.com/svn/trunk@352 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAdded "quiet" option that makes chmod() and chown() always succeed. Useful for applic...
resver@gmail.com [Sat, 20 Apr 2013 10:01:24 +0000 (10:01 +0000)]
Added "quiet" option that makes chmod() and chown() always succeed. Useful for applications that fail if chmod() or chown() is not implemented.

git-svn-id: http://exfat.googlecode.com/svn/trunk@351 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAllow -v option for compatibility with mount utility (it passes -v to its helpers).
resver@gmail.com [Fri, 29 Mar 2013 06:38:16 +0000 (06:38 +0000)]
Allow -v option for compatibility with mount utility (it passes -v to its helpers).

git-svn-id: http://exfat.googlecode.com/svn/trunk@350 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUse getopt() for options parsing.
resver@gmail.com [Fri, 29 Mar 2013 06:29:10 +0000 (06:29 +0000)]
Use getopt() for options parsing.

git-svn-id: http://exfat.googlecode.com/svn/trunk@349 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUse -V instead of -v option to print version for consistency with other utilities.
resver@gmail.com [Thu, 28 Mar 2013 16:51:12 +0000 (16:51 +0000)]
Use -V instead of -v option to print version for consistency with other utilities.

git-svn-id: http://exfat.googlecode.com/svn/trunk@348 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAllow -n option for automount/autofs compatibility.
resver@gmail.com [Mon, 18 Mar 2013 18:37:25 +0000 (18:37 +0000)]
Allow -n option for automount/autofs compatibility.

git-svn-id: http://exfat.googlecode.com/svn/trunk@346 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAvoid extra erase on writes to the end of a file.
resver@gmail.com [Tue, 26 Feb 2013 18:58:36 +0000 (18:58 +0000)]
Avoid extra erase on writes to the end of a file.

git-svn-id: http://exfat.googlecode.com/svn/trunk@345 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAdd fsname parameter as is, without canonicalization and symbolic links expansion...
resver [Wed, 13 Feb 2013 16:41:44 +0000 (16:41 +0000)]
Add fsname parameter as is, without canonicalization and symbolic links expansion. This fixes TrueCrypt disks unmounting.

git-svn-id: http://exfat.googlecode.com/svn/trunk@344 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUse bool type.
resver [Sun, 10 Feb 2013 21:04:01 +0000 (21:04 +0000)]
Use bool type.

git-svn-id: http://exfat.googlecode.com/svn/trunk@343 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoMade next_entry() function static.
resver [Sat, 26 Jan 2013 06:42:13 +0000 (06:42 +0000)]
Made next_entry() function static.

git-svn-id: http://exfat.googlecode.com/svn/trunk@338 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed unexpected removal of a directory if it is moved into itself: return EINVAL...
resver [Fri, 25 Jan 2013 19:07:05 +0000 (19:07 +0000)]
Fixed unexpected removal of a directory if it is moved into itself: return EINVAL in this situation. It also happens when trying to change directory name case.

git-svn-id: http://exfat.googlecode.com/svn/trunk@337 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed "Operation not permitted" error on reading an empty file: FUSE read/write ops...
resver [Fri, 25 Jan 2013 17:46:10 +0000 (17:46 +0000)]
Fixed "Operation not permitted" error on reading an empty file: FUSE read/write ops should return a number of bytes actually read/written or -errno on error.

git-svn-id: http://exfat.googlecode.com/svn/trunk@336 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoBumped version to 1.0.0 and updated changelog.
resver [Sat, 19 Jan 2013 13:45:41 +0000 (13:45 +0000)]
Bumped version to 1.0.0 and updated changelog.

git-svn-id: http://exfat.googlecode.com/svn/trunk@333 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUpdated copyright years.
resver [Sat, 19 Jan 2013 13:11:28 +0000 (13:11 +0000)]
Updated copyright years.

git-svn-id: http://exfat.googlecode.com/svn/trunk@332 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed clusters allocation: a cluster beyond valid clusters range could be allocated.
resver [Mon, 14 Jan 2013 18:54:42 +0000 (18:54 +0000)]
Fixed clusters allocation: a cluster beyond valid clusters range could be allocated.

git-svn-id: http://exfat.googlecode.com/svn/trunk@331 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoAvoid using PATH_MAX constant.
resver [Fri, 11 Jan 2013 07:31:16 +0000 (07:31 +0000)]
Avoid using PATH_MAX constant.

git-svn-id: http://exfat.googlecode.com/svn/trunk@330 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOS X: disable permission checks made by FUSE.
resver [Fri, 11 Jan 2013 06:42:18 +0000 (06:42 +0000)]
OS X: disable permission checks made by FUSE.

git-svn-id: http://exfat.googlecode.com/svn/trunk@329 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRemoved duplicate code in reset_cache(): now it uses tree_detach() to remove children...
resver [Thu, 10 Jan 2013 17:09:43 +0000 (17:09 +0000)]
Removed duplicate code in reset_cache(): now it uses tree_detach() to remove children from the list and the whole tree is consistent at any iteration.

git-svn-id: http://exfat.googlecode.com/svn/trunk@328 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoMoved tree_attach() and tree_detach() upper so that they could be used by reset_cache().
resver [Thu, 10 Jan 2013 17:00:27 +0000 (17:00 +0000)]
Moved tree_attach() and tree_detach() upper so that they could be used by reset_cache().

git-svn-id: http://exfat.googlecode.com/svn/trunk@327 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed extra decrement of reference counter of hanging nodes.
resver [Wed, 9 Jan 2013 17:50:14 +0000 (17:50 +0000)]
Fixed extra decrement of reference counter of hanging nodes.

git-svn-id: http://exfat.googlecode.com/svn/trunk@326 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed cleaning of libexfat broken in r312.
resver [Wed, 9 Jan 2013 17:29:32 +0000 (17:29 +0000)]
Fixed cleaning of libexfat broken in r312.

git-svn-id: http://exfat.googlecode.com/svn/trunk@325 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoGet PATH and SYSROOT variables from environment if they are defined.
resver [Wed, 9 Jan 2013 16:58:00 +0000 (16:58 +0000)]
Get PATH and SYSROOT variables from environment if they are defined.

git-svn-id: http://exfat.googlecode.com/svn/trunk@324 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRespect AR and RANLIB environment variables in SConscript.
resver [Wed, 9 Jan 2013 16:54:08 +0000 (16:54 +0000)]
Respect AR and RANLIB environment variables in SConscript.

Signed-off-by: <vapier@gmail.com>
git-svn-id: http://exfat.googlecode.com/svn/trunk@323 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoSeek to the beginning of the device after detecting its size (dumpexfat relies on...
resver [Sat, 29 Dec 2012 08:01:07 +0000 (08:01 +0000)]
Seek to the beginning of the device after detecting its size (dumpexfat relies on this).

git-svn-id: http://exfat.googlecode.com/svn/trunk@322 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoPrint device name in the error message.
resver [Sat, 29 Dec 2012 07:55:29 +0000 (07:55 +0000)]
Print device name in the error message.

git-svn-id: http://exfat.googlecode.com/svn/trunk@321 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed indentation.
resver [Wed, 26 Dec 2012 07:26:48 +0000 (07:26 +0000)]
Fixed indentation.

git-svn-id: http://exfat.googlecode.com/svn/trunk@320 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoImproved trace macros.
resver [Wed, 26 Dec 2012 07:14:07 +0000 (07:14 +0000)]
Improved trace macros.

git-svn-id: http://exfat.googlecode.com/svn/trunk@319 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoEnabled big_writes. This improves write speed (larger block size means less switches...
resver [Tue, 25 Dec 2012 17:50:04 +0000 (17:50 +0000)]
Enabled big_writes. This improves write speed (larger block size means less switches between kernel- and user-space).

git-svn-id: http://exfat.googlecode.com/svn/trunk@318 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFUSE read and write ops should return either buffer size on success or EOF otherwise.
resver [Tue, 25 Dec 2012 16:58:23 +0000 (16:58 +0000)]
FUSE read and write ops should return either buffer size on success or EOF otherwise.

git-svn-id: http://exfat.googlecode.com/svn/trunk@317 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed exfat_generic_pwrite(): it should return -1 on error, not -errno.
resver [Tue, 25 Dec 2012 16:55:13 +0000 (16:55 +0000)]
Fixed exfat_generic_pwrite(): it should return -1 on error, not -errno.

git-svn-id: http://exfat.googlecode.com/svn/trunk@316 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoReplace fixed PATH to the value from environment. This makes scons find build tools...
resver [Wed, 19 Dec 2012 06:30:24 +0000 (06:30 +0000)]
Replace fixed PATH to the value from environment. This makes scons find build tools in non-standard directories specified in PATH.

git-svn-id: http://exfat.googlecode.com/svn/trunk@315 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoCheck compiler presense in SConscript.
resver [Wed, 19 Dec 2012 06:19:14 +0000 (06:19 +0000)]
Check compiler presense in SConscript.

git-svn-id: http://exfat.googlecode.com/svn/trunk@314 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoCheck size of off_t type in SConscript.
resver [Tue, 18 Dec 2012 18:42:39 +0000 (18:42 +0000)]
Check size of off_t type in SConscript.

git-svn-id: http://exfat.googlecode.com/svn/trunk@313 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoDo not configure when cleaning.
resver [Tue, 18 Dec 2012 18:17:01 +0000 (18:17 +0000)]
Do not configure when cleaning.

git-svn-id: http://exfat.googlecode.com/svn/trunk@312 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRemove symlinks on cleaning the install alias.
resver [Tue, 18 Dec 2012 18:06:17 +0000 (18:06 +0000)]
Remove symlinks on cleaning the install alias.

git-svn-id: http://exfat.googlecode.com/svn/trunk@311 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoFixed crash in exfat_rename() when renaming a file within a single directory and...
resver [Sat, 15 Dec 2012 08:51:09 +0000 (08:51 +0000)]
Fixed crash in exfat_rename() when renaming a file within a single directory and a new name differs only in case.

git-svn-id: http://exfat.googlecode.com/svn/trunk@310 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOS X: fixed raw device size detection. Each disk has two names: /dev/diskN (block...
resver [Sat, 15 Dec 2012 08:45:00 +0000 (08:45 +0000)]
OS X: fixed raw device size detection. Each disk has two names: /dev/diskN (block device) and /dev/rdiskN (raw device).

git-svn-id: http://exfat.googlecode.com/svn/trunk@309 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUse bool type.
resver [Wed, 12 Dec 2012 19:16:42 +0000 (19:16 +0000)]
Use bool type.

git-svn-id: http://exfat.googlecode.com/svn/trunk@308 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOS X: correctly detect device size.
resver [Wed, 12 Dec 2012 19:14:36 +0000 (19:14 +0000)]
OS X: correctly detect device size.

git-svn-id: http://exfat.googlecode.com/svn/trunk@307 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRenamed exfat_mode() to exfat_get_mode().
resver [Tue, 11 Dec 2012 16:46:55 +0000 (16:46 +0000)]
Renamed exfat_mode() to exfat_get_mode().

git-svn-id: http://exfat.googlecode.com/svn/trunk@306 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRemoved extra include.
resver [Tue, 11 Dec 2012 16:45:27 +0000 (16:45 +0000)]
Removed extra include.

git-svn-id: http://exfat.googlecode.com/svn/trunk@305 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoCheck file size after all name entries are parsed and print file name in case of...
resver [Sat, 8 Dec 2012 12:32:33 +0000 (12:32 +0000)]
Check file size after all name entries are parsed and print file name in case of error.

git-svn-id: http://exfat.googlecode.com/svn/trunk@304 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoDo not print directory name on size check failure because name is not yet available.
resver [Sat, 8 Dec 2012 11:53:58 +0000 (11:53 +0000)]
Do not print directory name on size check failure because name is not yet available.

git-svn-id: http://exfat.googlecode.com/svn/trunk@303 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoUse bool type.
resver [Sat, 8 Dec 2012 11:51:34 +0000 (11:51 +0000)]
Use bool type.

git-svn-id: http://exfat.googlecode.com/svn/trunk@302 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOS X: set deployment target to Mac OS X 10.5 Leopard.
resver [Sat, 8 Dec 2012 11:46:15 +0000 (11:46 +0000)]
OS X: set deployment target to Mac OS X 10.5 Leopard.

git-svn-id: http://exfat.googlecode.com/svn/trunk@301 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOn Linux do BLKROGET ioctl to make sure the device is not read-only: after "blockdev...
resver [Tue, 4 Dec 2012 19:17:52 +0000 (19:17 +0000)]
On Linux do BLKROGET ioctl to make sure the device is not read-only: after "blockdev --setro" kernel still allows to open the device in read-write mode but fails writes.

git-svn-id: http://exfat.googlecode.com/svn/trunk@300 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoRefactored device access mode handling.
resver [Tue, 4 Dec 2012 18:34:01 +0000 (18:34 +0000)]
Refactored device access mode handling.

git-svn-id: http://exfat.googlecode.com/svn/trunk@299 60bc1c72-a15a-11de-b98f-4500b42dc123

11 years agoOS X support:
resver [Tue, 4 Dec 2012 16:34:03 +0000 (16:34 +0000)]
OS X support:
 - use proper macro for inode numbers bitness management;
 - switch to 64-bit inode numbers (this requires Mac OS X 10.5 or later);
 - switch from unmaintained MacFUSE to OSXFUSE (http://osxfuse.github.com).

git-svn-id: http://exfat.googlecode.com/svn/trunk@298 60bc1c72-a15a-11de-b98f-4500b42dc123