OSDN Git Service

android-x86/external-exfat.git
8 years agoRemove symlinks on cleaning the install alias.
relan [Tue, 18 Dec 2012 18:06:17 +0000 (18:06 +0000)]
Remove symlinks on cleaning the install alias.

8 years agoFix crash in exfat_rename().
relan [Sat, 15 Dec 2012 08:51:09 +0000 (08:51 +0000)]
Fix crash in exfat_rename().

Crash happened when renaming a file within a single directory and a new
name differs only in case.

8 years agoOS X: fix raw device size detection.
relan [Sat, 15 Dec 2012 08:45:00 +0000 (08:45 +0000)]
OS X: fix raw device size detection.

Each disk has two names: /dev/diskN (block device) and /dev/rdiskN (raw
device).

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

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

8 years agoRename exfat_mode() to exfat_get_mode().
relan [Tue, 11 Dec 2012 16:46:55 +0000 (16:46 +0000)]
Rename exfat_mode() to exfat_get_mode().

8 years agoRemove extra include.
relan [Tue, 11 Dec 2012 16:45:27 +0000 (16:45 +0000)]
Remove extra include.

8 years agoCheck file size after all name entries are parsed.
relan [Sat, 8 Dec 2012 12:32:33 +0000 (12:32 +0000)]
Check file size after all name entries are parsed.

Also print file name in case of error.

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

Name is not yet available at that moment.

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

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

8 years agoDo BLKROGET ioctl to make sure the device is not read-only.
relan [Tue, 4 Dec 2012 19:17:52 +0000 (19:17 +0000)]
Do BLKROGET ioctl to make sure the device is not read-only.

After "blockdev --setro" Linux kernel still allows to open the device in
read-write mode but fails writes.

8 years agoRefactor device access mode handling.
relan [Tue, 4 Dec 2012 18:34:01 +0000 (18:34 +0000)]
Refactor device access mode handling.

8 years agoImprove OS X support.
relan [Tue, 4 Dec 2012 16:34:03 +0000 (16:34 +0000)]
Improve 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).

8 years agoAdd empty chmod() handler.
relan [Tue, 4 Dec 2012 16:14:38 +0000 (16:14 +0000)]
Add empty chmod() handler.

OS X utilities report error if fchmod() fails. Use an empty handler as a
workaround.

8 years agoImprove invalid clusters handling.
relan [Sun, 25 Nov 2012 12:03:51 +0000 (12:03 +0000)]
Improve invalid clusters handling.

8 years agoReorganize directories checking.
relan [Sat, 24 Nov 2012 09:36:35 +0000 (09:36 +0000)]
Reorganize directories checking.

Check directory before its files, do not check files if directory is
corrupt, check root directory.

8 years agoImprove error handling.
relan [Sun, 28 Oct 2012 15:14:25 +0000 (15:14 +0000)]
Improve error handling.

8 years agoBump version to 0.9.8 and update changelog.
relan [Thu, 9 Aug 2012 17:09:46 +0000 (17:09 +0000)]
Bump version to 0.9.8 and update changelog.

8 years agoAvoid integer truncation.
relan [Sat, 9 Jun 2012 18:32:49 +0000 (18:32 +0000)]
Avoid integer truncation.

8 years agoFix erasing of label buffer.
relan [Sat, 9 Jun 2012 18:28:22 +0000 (18:28 +0000)]
Fix erasing of label buffer.

8 years agoThe new mkfs rewritten in more declarative style.
relan [Sat, 2 Jun 2012 06:14:13 +0000 (06:14 +0000)]
The new mkfs rewritten in more declarative style.

8 years agoExplicitly require C99 and define _GNU_SOURCE.
relan [Fri, 18 May 2012 16:05:13 +0000 (16:05 +0000)]
Explicitly require C99 and define _GNU_SOURCE.

This enables all needed functions.

8 years agoDefine FUSE_USE_VERSION only before inclusion of fuse.h.
relan [Fri, 18 May 2012 15:52:30 +0000 (15:52 +0000)]
Define FUSE_USE_VERSION only before inclusion of fuse.h.

No need to define it globally.

8 years agoFix _FILE_OFFSET_BITS check: it can be not defined at all.
relan [Fri, 18 May 2012 15:45:38 +0000 (15:45 +0000)]
Fix _FILE_OFFSET_BITS check: it can be not defined at all.

8 years agoUpdate copyright years in SConscript.
relan [Fri, 18 May 2012 15:42:49 +0000 (15:42 +0000)]
Update copyright years in SConscript.

8 years agoRespect CPPFLAGS environment variable in SConscript.
relan [Thu, 17 May 2012 16:32:08 +0000 (16:32 +0000)]
Respect CPPFLAGS environment variable in SConscript.

Signed-off-by: Sven Hoexter <sven@timegate.de>
8 years agoFix handling of characters beyond BMP.
relan [Mon, 14 May 2012 17:24:02 +0000 (17:24 +0000)]
Fix handling of characters beyond BMP.

UTF-16 surrogate pairs encode Unicode character minus 0x10000.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
8 years agoFix file name in heading.
relan [Mon, 7 May 2012 07:32:43 +0000 (07:32 +0000)]
Fix file name in heading.

8 years agoUpdate copyright years.
relan [Tue, 1 May 2012 09:46:02 +0000 (09:46 +0000)]
Update copyright years.

8 years agoEcho messages to syslog only if stderr is not attached to terminal.
relan [Tue, 3 Apr 2012 17:52:49 +0000 (17:52 +0000)]
Echo messages to syslog only if stderr is not attached to terminal.

8 years agoSuggest valid cluster size if user specified too small value.
relan [Mon, 19 Mar 2012 17:27:34 +0000 (17:27 +0000)]
Suggest valid cluster size if user specified too small value.

8 years agoSelect suitable cluster size when creating a huge FS.
relan [Mon, 19 Mar 2012 17:12:00 +0000 (17:12 +0000)]
Select suitable cluster size when creating a huge FS.

Relevant for file systems sizes of 128 TB or more.

8 years agoFail to create FS if specified cluster size is too small.
relan [Sun, 18 Mar 2012 13:24:37 +0000 (13:24 +0000)]
Fail to create FS if specified cluster size is too small.

8 years agoAdd constant for the last possible valid cluster number.
relan [Sun, 18 Mar 2012 13:05:04 +0000 (13:05 +0000)]
Add constant for the last possible valid cluster number.

8 years agoFix huge sizes formatting.
relan [Sun, 18 Mar 2012 13:02:49 +0000 (13:02 +0000)]
Fix huge sizes formatting.

8 years agoBump version to 0.9.7 and update changelog.
relan [Thu, 8 Mar 2012 07:28:21 +0000 (07:28 +0000)]
Bump version to 0.9.7 and update changelog.

8 years agoFix format warnings produced by clang.
relan [Sun, 4 Mar 2012 07:39:49 +0000 (07:39 +0000)]
Fix format warnings produced by clang.

8 years agoFix error message about device type.
relan [Sun, 4 Mar 2012 07:37:43 +0000 (07:37 +0000)]
Fix error message about device type.

8 years agoAdd ublio support for FreeBSD.
relan [Sun, 4 Mar 2012 07:04:53 +0000 (07:04 +0000)]
Add ublio support for FreeBSD.

8 years agoUse a list of libraries in SConscript.
relan [Sat, 3 Mar 2012 18:11:09 +0000 (18:11 +0000)]
Use a list of libraries in SConscript.

8 years agoRepresent device as an extensible structure.
relan [Sat, 3 Mar 2012 07:39:07 +0000 (07:39 +0000)]
Represent device as an extensible structure.

8 years agoSupport building on FreeBSD.
relan [Sat, 3 Mar 2012 06:53:02 +0000 (06:53 +0000)]
Support building on FreeBSD.

8 years agoMove platform-specific configuration code after common code.
relan [Sat, 3 Mar 2012 06:16:08 +0000 (06:16 +0000)]
Move platform-specific configuration code after common code.

8 years agoFix use of write() missed in r262.
relan [Thu, 1 Mar 2012 17:23:04 +0000 (17:23 +0000)]
Fix use of write() missed in r262.

8 years agoAdd exfat_seek() interface (wrapper for lseek()).
relan [Thu, 1 Mar 2012 17:01:44 +0000 (17:01 +0000)]
Add exfat_seek() interface (wrapper for lseek()).

8 years agoFix double close on failure to convert volume label to UTF-16.
relan [Mon, 20 Feb 2012 06:33:08 +0000 (06:33 +0000)]
Fix double close on failure to convert volume label to UTF-16.

8 years agoUse exfat_read() and exfat_write() interfaces.
relan [Mon, 20 Feb 2012 06:15:49 +0000 (06:15 +0000)]
Use exfat_read() and exfat_write() interfaces.

8 years agoAdd exfat_read() and exfat_write() interfaces.
relan [Mon, 20 Feb 2012 06:14:18 +0000 (06:14 +0000)]
Add exfat_read() and exfat_write() interfaces.

Currently they are just wrappers for read() and write().

8 years agoUse appropriate feature test macro for pread() and pwrite().
relan [Tue, 14 Feb 2012 18:09:51 +0000 (18:09 +0000)]
Use appropriate feature test macro for pread() and pwrite().

8 years agoAdd exfat_fsync() function.
relan [Tue, 14 Feb 2012 18:05:59 +0000 (18:05 +0000)]
Add exfat_fsync() function.

It performs fsync against the specified descriptor.

8 years agoAdd exfat_close() function.
relan [Tue, 14 Feb 2012 17:53:17 +0000 (17:53 +0000)]
Add exfat_close() function.

It closes the device descriptor.

8 years agoRename read/write functions.
relan [Sun, 12 Feb 2012 07:49:26 +0000 (07:49 +0000)]
Rename read/write functions.

exfat_read_raw()  => exfat_pread()
exfat_write_raw() => exfat_pwrite()
exfat_read()      => exfat_generic_pread()
exfat_write()     => exfat_generic_pwrite()

8 years agoFix mtime centiseconds field initialization.
relan [Sat, 4 Feb 2012 08:07:17 +0000 (08:07 +0000)]
Fix mtime centiseconds field initialization.

8 years agoUse a more portable way to obtain timezone offset.
relan [Sat, 4 Feb 2012 08:02:08 +0000 (08:02 +0000)]
Use a more portable way to obtain timezone offset.

8 years agoMove time-related stuff into a separate file.
relan [Thu, 2 Feb 2012 20:36:17 +0000 (20:36 +0000)]
Move time-related stuff into a separate file.

8 years agoRemove _XOPEN_SOURCE define.
relan [Wed, 1 Feb 2012 17:30:16 +0000 (17:30 +0000)]
Remove _XOPEN_SOURCE define.

It looks to be not required for Linux.

8 years agoPut _XOPEN_SOURCE define before any includes as recommended.
relan [Tue, 31 Jan 2012 16:06:37 +0000 (16:06 +0000)]
Put _XOPEN_SOURCE define before any includes as recommended.

8 years agoFix minutes field extraction.
relan [Tue, 31 Jan 2012 16:00:58 +0000 (16:00 +0000)]
Fix minutes field extraction.

8 years agoIncrease comments indentation.
relan [Tue, 31 Jan 2012 15:57:52 +0000 (15:57 +0000)]
Increase comments indentation.

8 years agoRemove obsolete FIXME comment.
relan [Sun, 29 Jan 2012 10:14:45 +0000 (10:14 +0000)]
Remove obsolete FIXME comment.

8 years agoRemove obsolete FIXME comment.
relan [Sun, 29 Jan 2012 10:11:43 +0000 (10:11 +0000)]
Remove obsolete FIXME comment.

8 years agoAdd default compiler flags for clang.
relan [Sun, 29 Jan 2012 08:50:52 +0000 (08:50 +0000)]
Add default compiler flags for clang.

8 years agoRespect CC, CCFLAGS and LDFLAGS variables in SConscript.
relan [Sun, 29 Jan 2012 08:48:39 +0000 (08:48 +0000)]
Respect CC, CCFLAGS and LDFLAGS variables in SConscript.

8 years agoRemove EOD entry handling.
relan [Sat, 28 Jan 2012 10:23:27 +0000 (10:23 +0000)]
Remove EOD entry handling.

The end of a directory should be determined by directory size.

8 years agoBump version to 0.9.6 and update changelog.
relan [Sat, 14 Jan 2012 09:23:59 +0000 (09:23 +0000)]
Bump version to 0.9.6 and update changelog.

8 years agoErase disk in pages instead of sectors.
relan [Sat, 14 Jan 2012 08:29:33 +0000 (08:29 +0000)]
Erase disk in pages instead of sectors.

This can speed up mkfs on systems that do not cache access to block
devices.

8 years agoMore precise rounding for exfat_humanize_bytes().
relan [Sun, 8 Jan 2012 07:58:03 +0000 (07:58 +0000)]
More precise rounding for exfat_humanize_bytes().

8 years agoSet ctime to mtime.
relan [Mon, 2 Jan 2012 19:36:29 +0000 (19:36 +0000)]
Set ctime to mtime.

Ensure that we don't break programs that rely on ctime (e.g. rsync).

Signed-off-by: Eldad Zack <eldad@fogrefinery.com>
8 years agoUpdate allocated space percent on unmount.
relan [Sun, 4 Dec 2011 10:32:04 +0000 (10:32 +0000)]
Update allocated space percent on unmount.

8 years agoSet "mounted" flag on mount and clear it on unmount.
relan [Sun, 4 Dec 2011 10:20:02 +0000 (10:20 +0000)]
Set "mounted" flag on mount and clear it on unmount.

The user will be warned when the volume was not unmounted cleanly.

8 years agoRetry to mount FS in read-only mode if device is write-protected.
relan [Sun, 27 Nov 2011 10:07:11 +0000 (10:07 +0000)]
Retry to mount FS in read-only mode if device is write-protected.

This behavior is enabled by "ro_fallback" option. When an attempt to
mount in RW mode fails and "ro_fallback" option is present, we try to
mount in RO mode. If this succeeds, we set ro_fallback flag so that the
caller could add "ro" option for FUSE.

8 years agoPrint desired mode when device opening fails.
relan [Sun, 27 Nov 2011 09:49:37 +0000 (09:49 +0000)]
Print desired mode when device opening fails.

8 years agoMore concrete error message on memory allocation failure.
relan [Sun, 27 Nov 2011 09:43:53 +0000 (09:43 +0000)]
More concrete error message on memory allocation failure.

8 years agoParse options and open device before super block allocation.
relan [Sun, 27 Nov 2011 09:42:41 +0000 (09:42 +0000)]
Parse options and open device before super block allocation.

8 years agoGet rid of realpath() in mkfs.
relan [Sat, 19 Nov 2011 14:09:01 +0000 (14:09 +0000)]
Get rid of realpath() in mkfs.

8 years agoErase whole clusters instead of sectors.
relan [Sat, 12 Nov 2011 21:27:00 +0000 (21:27 +0000)]
Erase whole clusters instead of sectors.

This fixes write performance regression caused by r207.

8 years agoFix possible memory leak in readdir().
relan [Wed, 31 Aug 2011 16:35:31 +0000 (16:35 +0000)]
Fix possible memory leak in readdir().

Leak could happen when readdir() detects file system corruption.

8 years agoCheck EOD entry presence.
relan [Wed, 31 Aug 2011 16:30:41 +0000 (16:30 +0000)]
Check EOD entry presence.

8 years agoBump version to 0.9.5 and update changelog.
relan [Sun, 15 May 2011 10:37:42 +0000 (10:37 +0000)]
Bump version to 0.9.5 and update changelog.

8 years agoClean up meta2 flags.
relan [Sat, 14 May 2011 11:36:15 +0000 (11:36 +0000)]
Clean up meta2 flags.

8 years agoFix memory leak on an error handling path in fsck.
relan [Wed, 4 May 2011 20:52:07 +0000 (20:52 +0000)]
Fix memory leak on an error handling path in fsck.

8 years agoFix memory leak on error handling paths in mkfs.
relan [Wed, 4 May 2011 20:50:53 +0000 (20:50 +0000)]
Fix memory leak on error handling paths in mkfs.

8 years agoUse exfat_open() instead of calling open() directly.
relan [Fri, 22 Apr 2011 19:27:00 +0000 (19:27 +0000)]
Use exfat_open() instead of calling open() directly.

8 years agoAdd exfat_open() function.
relan [Fri, 22 Apr 2011 19:24:08 +0000 (19:24 +0000)]
Add exfat_open() function.

It opens the special file and ensures that this is either a block device
or a regular file.

8 years agoConsider structures alignments while erasing the device.
relan [Sat, 2 Apr 2011 08:28:48 +0000 (08:28 +0000)]
Consider structures alignments while erasing the device.

8 years agoFix root directory creation: EOD entry was missing.
relan [Thu, 31 Mar 2011 18:21:09 +0000 (18:21 +0000)]
Fix root directory creation: EOD entry was missing.

8 years agoFix error message format.
relan [Thu, 31 Mar 2011 18:12:46 +0000 (18:12 +0000)]
Fix error message format.

8 years agoCheck that either a block device or a regular file is opened.
relan [Sat, 19 Mar 2011 15:35:55 +0000 (15:35 +0000)]
Check that either a block device or a regular file is opened.

8 years agoDo not link utils with libfuse.
relan [Sat, 12 Mar 2011 08:16:41 +0000 (08:16 +0000)]
Do not link utils with libfuse.

8 years agoBump version to 0.9.4 and update changelog.
relan [Sat, 5 Mar 2011 17:05:44 +0000 (17:05 +0000)]
Bump version to 0.9.4 and update changelog.

8 years agoUpdate man pages.
relan [Tue, 1 Mar 2011 05:41:43 +0000 (05:41 +0000)]
Update man pages.

8 years agoAdd -v option that prints version and copyright.
relan [Tue, 1 Mar 2011 05:35:14 +0000 (05:35 +0000)]
Add -v option that prints version and copyright.

8 years agoAdd partition first sector parameter to mkfs.
relan [Sat, 26 Feb 2011 14:04:58 +0000 (14:04 +0000)]
Add partition first sector parameter to mkfs.

8 years agoAdd missing endianness conversion in VBR verification function.
relan [Wed, 23 Feb 2011 09:27:36 +0000 (09:27 +0000)]
Add missing endianness conversion in VBR verification function.

8 years agoRename block to sector to avoid confusion.
relan [Wed, 23 Feb 2011 08:38:53 +0000 (08:38 +0000)]
Rename block to sector to avoid confusion.

8 years agoKeep cache on file open.
relan [Tue, 22 Feb 2011 19:20:47 +0000 (19:20 +0000)]
Keep cache on file open.

This slightly improves read performance by avoiding extra read requests.

8 years agoMove FUSE arguments construction into a separate function.
relan [Sun, 20 Feb 2011 11:57:46 +0000 (11:57 +0000)]
Move FUSE arguments construction into a separate function.

This simplifies error handling.

8 years agoPass blksize option to FUSE.
relan [Sun, 20 Feb 2011 10:32:39 +0000 (10:32 +0000)]
Pass blksize option to FUSE.

This should solve "Invalid argument" error while mounting a volume from a
disk with sector size greater than 512 bytes.

8 years agoInitialize libexfat before FUSE arguments construction.
relan [Sun, 20 Feb 2011 10:24:27 +0000 (10:24 +0000)]
Initialize libexfat before FUSE arguments construction.