OSDN Git Service

android-x86/external-exfat.git
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.

8 years agoAdd dumpexfat man page.
relan [Sat, 19 Feb 2011 14:30:22 +0000 (14:30 +0000)]
Add dumpexfat man page.

8 years agoAdd exfatlabel man page.
relan [Sat, 19 Feb 2011 14:14:25 +0000 (14:14 +0000)]
Add exfatlabel man page.

8 years agoAdd exfatfsck man page.
relan [Sat, 19 Feb 2011 13:53:16 +0000 (13:53 +0000)]
Add exfatfsck man page.

8 years agoAdd -u option for dumpexfat that prints used sectors.
relan [Sat, 5 Feb 2011 14:36:45 +0000 (14:36 +0000)]
Add -u option for dumpexfat that prints used sectors.

It's useful for fast FS cloning.

8 years agoReorganize SConstruct, add install targets for utils.
relan [Sat, 29 Jan 2011 20:56:35 +0000 (20:56 +0000)]
Reorganize SConstruct, add install targets for utils.

8 years agoCheck that volume size is sufficient to contain file system.
relan [Wed, 26 Jan 2011 18:53:35 +0000 (18:53 +0000)]
Check that volume size is sufficient to contain file system.

8 years agoRename block to sector in the utilities output to avoid confusion.
relan [Mon, 24 Jan 2011 18:13:41 +0000 (18:13 +0000)]
Rename block to sector in the utilities output to avoid confusion.

8 years agoImprove dumpexfat.
relan [Mon, 24 Jan 2011 17:57:38 +0000 (17:57 +0000)]
Improve dumpexfat.

Now it also prints volume label, free sectors and free clusters count.

8 years agoFix alignment of big numbers in exfat_print_info().
relan [Sat, 22 Jan 2011 18:55:56 +0000 (18:55 +0000)]
Fix alignment of big numbers in exfat_print_info().

8 years agoFix alignment of big numbers in dumpexfat.
relan [Sat, 22 Jan 2011 18:51:17 +0000 (18:51 +0000)]
Fix alignment of big numbers in dumpexfat.

8 years agoRename sbdump to dumpexfat.
relan [Sat, 22 Jan 2011 10:35:33 +0000 (10:35 +0000)]
Rename sbdump to dumpexfat.

8 years agoAdd exfatlabel (utility that reads or changes volume label).
relan [Fri, 21 Jan 2011 21:30:44 +0000 (21:30 +0000)]
Add exfatlabel (utility that reads or changes volume label).

8 years agoAdd get_entry_ptr() function.
relan [Fri, 21 Jan 2011 21:10:29 +0000 (21:10 +0000)]
Add get_entry_ptr() function.

Use a separate function to obtain a pointer to an entry pointed to by an
iterator.

8 years agoFix typo in a comment.
relan [Fri, 21 Jan 2011 20:55:28 +0000 (20:55 +0000)]
Fix typo in a comment.

8 years agoAdd functions that get and set volume label.
relan [Fri, 21 Jan 2011 20:54:34 +0000 (20:54 +0000)]
Add functions that get and set volume label.

8 years agoRemove excess error messages.
relan [Fri, 21 Jan 2011 20:31:11 +0000 (20:31 +0000)]
Remove excess error messages.

8 years agoPass user=xxxx option to FUSE.
relan [Tue, 18 Jan 2011 17:46:30 +0000 (17:46 +0000)]
Pass user=xxxx option to FUSE.

It allows to unmount a volume as user (fusermount -u) if it was mounted
from the very same user.

Signed-off-by: <Tino.Lange@interactivedata.com>
8 years agoAdd mkexfatfs man page.
relan [Sat, 15 Jan 2011 14:34:17 +0000 (14:34 +0000)]
Add mkexfatfs man page.

8 years agoUnify CLI help syntax.
relan [Sat, 15 Jan 2011 14:25:50 +0000 (14:25 +0000)]
Unify CLI help syntax.

8 years agoRemove extra includes in sbdump.
relan [Sat, 15 Jan 2011 14:19:31 +0000 (14:19 +0000)]
Remove extra includes in sbdump.

8 years agoDuplicate errors and warnings to syslog.
relan [Sat, 15 Jan 2011 14:16:54 +0000 (14:16 +0000)]
Duplicate errors and warnings to syslog.

8 years agoVerify VBR checksum on mount.
relan [Wed, 29 Dec 2010 20:52:59 +0000 (20:52 +0000)]
Verify VBR checksum on mount.

8 years agoMove VBR checksum calculation functions to libexfat.
relan [Wed, 29 Dec 2010 20:51:15 +0000 (20:51 +0000)]
Move VBR checksum calculation functions to libexfat.

8 years agoFix FAT size calculation.
relan [Wed, 24 Nov 2010 20:09:25 +0000 (20:09 +0000)]
Fix FAT size calculation.

8 years agoAdd mkexfatfs (utility that creates an exFAT file system).
relan [Tue, 23 Nov 2010 20:49:38 +0000 (20:49 +0000)]
Add mkexfatfs (utility that creates an exFAT file system).

8 years agoAdd fsync() on unmount.
relan [Fri, 12 Nov 2010 19:12:24 +0000 (19:12 +0000)]
Add fsync() on unmount.

8 years agoAdd (senseless) check of close() return code.
relan [Fri, 12 Nov 2010 19:08:58 +0000 (19:08 +0000)]
Add (senseless) check of close() return code.

8 years agoUse exfat_print_info() in exfatfsck.
relan [Tue, 9 Nov 2010 19:04:18 +0000 (19:04 +0000)]
Use exfat_print_info() in exfatfsck.

8 years agoAdd a function that prints basic information about FS to stdout.
relan [Tue, 9 Nov 2010 19:02:51 +0000 (19:02 +0000)]
Add a function that prints basic information about FS to stdout.

8 years agoInterpret version field as a structure for convenience.
relan [Tue, 9 Nov 2010 18:58:13 +0000 (18:58 +0000)]
Interpret version field as a structure for convenience.

8 years agoexfat_count_free_clusters() should not modify the argument.
relan [Tue, 9 Nov 2010 18:42:35 +0000 (18:42 +0000)]
exfat_count_free_clusters() should not modify the argument.

8 years agoAdd facilities for printing byte values in human-readable form.
relan [Tue, 9 Nov 2010 18:13:41 +0000 (18:13 +0000)]
Add facilities for printing byte values in human-readable form.

I.e. with the SI prefixes.

8 years agoMove bitmap macros to header to be used by other units.
relan [Tue, 9 Nov 2010 15:16:29 +0000 (15:16 +0000)]
Move bitmap macros to header to be used by other units.

8 years agoClean up FS info printing in exfatfsck.
relan [Mon, 8 Nov 2010 17:16:10 +0000 (17:16 +0000)]
Clean up FS info printing in exfatfsck.

8 years agoRemove from exfatfsck code that prints low-level info about FS.
relan [Mon, 8 Nov 2010 17:10:01 +0000 (17:10 +0000)]
Remove from exfatfsck code that prints low-level info about FS.

Now there is a separate utility for this (sbdump).

8 years agoAdd a small utility sbdump.
relan [Mon, 8 Nov 2010 17:01:44 +0000 (17:01 +0000)]
Add a small utility sbdump.

It prints exFAT super block contents in human-readable form.

8 years agoRename exfatck to exfatfsck.
relan [Mon, 8 Nov 2010 16:51:36 +0000 (16:51 +0000)]
Rename exfatck to exfatfsck.

8 years agoBump version to 0.9.3 and update changelog.
relan [Sat, 25 Sep 2010 09:45:29 +0000 (09:45 +0000)]
Bump version to 0.9.3 and update changelog.

8 years agoAdd changelog under source control.
relan [Sat, 25 Sep 2010 09:34:14 +0000 (09:34 +0000)]
Add changelog under source control.

8 years agoReport block size = fragment size = cluster size.
relan [Sun, 19 Sep 2010 10:40:40 +0000 (10:40 +0000)]
Report block size = fragment size = cluster size.

This fixes displaying of FS size under Mac OS X.

8 years agoAdd mount.exfat-fuse man page under source control.
relan [Tue, 7 Sep 2010 18:20:12 +0000 (18:20 +0000)]
Add mount.exfat-fuse man page under source control.

8 years agoDefine __DARWIN_UNIX03=1.
relan [Tue, 7 Sep 2010 18:01:37 +0000 (18:01 +0000)]
Define __DARWIN_UNIX03=1.

This makes timezone variable available (it can be used instead of the
deprecated timezone() function).

8 years agoImprove comment about __DARWIN_64_BIT_INO_T.
relan [Tue, 7 Sep 2010 17:54:52 +0000 (17:54 +0000)]
Improve comment about __DARWIN_64_BIT_INO_T.

8 years agoImprove timestamps resolution from 2 sec to 1 sec.
relan [Sun, 5 Sep 2010 09:10:18 +0000 (09:10 +0000)]
Improve timestamps resolution from 2 sec to 1 sec.

8 years agoImplement directories shrinking.
relan [Sat, 21 Aug 2010 09:41:10 +0000 (09:41 +0000)]
Implement directories shrinking.

8 years agoModify entry offset meaning.
relan [Sat, 21 Aug 2010 08:07:50 +0000 (08:07 +0000)]
Modify entry offset meaning.

Now it's not offset within a cluster, but offset from the beginning of
a directory.

8 years agoAdd assertion.
relan [Sat, 21 Aug 2010 08:02:07 +0000 (08:02 +0000)]
Add assertion.

8 years agoFix debug message.
relan [Sun, 25 Jul 2010 09:26:14 +0000 (09:26 +0000)]
Fix debug message.

8 years agoBump version to 0.9.2.
relan [Sat, 24 Jul 2010 10:10:00 +0000 (10:10 +0000)]
Bump version to 0.9.2.

8 years agoImprove allowed file name characters filter.
relan [Sat, 24 Jul 2010 10:06:26 +0000 (10:06 +0000)]
Improve allowed file name characters filter.

8 years agoAdd #include guard for version.h.
relan [Sun, 11 Jul 2010 09:28:11 +0000 (09:28 +0000)]
Add #include guard for version.h.

8 years agoUnify error messages.
relan [Sun, 11 Jul 2010 09:22:41 +0000 (09:22 +0000)]
Unify error messages.

8 years agoCheck upcase table and clusters bitmap presence on mount.
relan [Sun, 11 Jul 2010 09:20:40 +0000 (09:20 +0000)]
Check upcase table and clusters bitmap presence on mount.

8 years agoCopy the whole name buffer on renaming.
relan [Tue, 6 Jul 2010 18:59:39 +0000 (18:59 +0000)]
Copy the whole name buffer on renaming.

Avoid garbage after null character.

8 years agoAlways erase output name buffer in exfat_split().
relan [Tue, 6 Jul 2010 18:54:36 +0000 (18:54 +0000)]
Always erase output name buffer in exfat_split().

Avoid garbage after null character.

8 years agoAdd byte order macros for *BSD and Solaris.
relan [Sat, 26 Jun 2010 15:04:07 +0000 (15:04 +0000)]
Add byte order macros for *BSD and Solaris.

Signed-off-by: Albert Lee <triskelios@gmail.com>
8 years agoDo not assume that compiler is GCC.
relan [Sat, 26 Jun 2010 14:59:13 +0000 (14:59 +0000)]
Do not assume that compiler is GCC.

Add GCC-specific options only when CCFLAGS is not set and compiler is
actually GCC.

8 years agoBump version to 0.9.1.
relan [Sat, 12 Jun 2010 10:59:52 +0000 (10:59 +0000)]
Bump version to 0.9.1.

8 years agoMove version constants into a separate header.
relan [Sat, 12 Jun 2010 10:38:35 +0000 (10:38 +0000)]
Move version constants into a separate header.

8 years agoDo not use unions for date and time conversion.
relan [Thu, 10 Jun 2010 16:49:21 +0000 (16:49 +0000)]
Do not use unions for date and time conversion.

This helps to avoid byte order problems.

8 years agoFix byte order macros for Mac OS X.
relan [Thu, 10 Jun 2010 16:38:20 +0000 (16:38 +0000)]
Fix byte order macros for Mac OS X.

Big-endian machines were erroneously detected as little-endian ones on
Mac OS X.

8 years agoAdd __packed__ attribute to all on-disk structures definitions.
relan [Wed, 9 Jun 2010 20:45:38 +0000 (20:45 +0000)]
Add __packed__ attribute to all on-disk structures definitions.

8 years agoMake fsck open volume in read-only mode.
relan [Wed, 9 Jun 2010 19:40:06 +0000 (19:40 +0000)]
Make fsck open volume in read-only mode.

It should not make any changes to FS.

8 years agoAllow clusters bitmap size to exceed minimum value.
relan [Tue, 1 Jun 2010 17:11:16 +0000 (17:11 +0000)]
Allow clusters bitmap size to exceed minimum value.

8 years agoParse root directory on mount to catch FS errors earlier.
relan [Thu, 27 May 2010 19:14:33 +0000 (19:14 +0000)]
Parse root directory on mount to catch FS errors earlier.