git-annex/Utility
Joey Hess 4f657aa14e add getFileSize, which can get the real size of a large file on Windows
Avoid using fileSize which maxes out at just 2 gb on Windows.
Instead, use hFileSize, which doesn't have a bounded size.
Fixes support for files > 2 gb on Windows.

Note that the InodeCache code only needs to compare a file size,
so it doesn't matter it the file size wraps. So it has been
left as-is. This was necessary both to avoid invalidating existing inode
caches, and because the code passed FileStatus around and would have become
more expensive if it called getFileSize.

This commit was sponsored by Christian Dietrich.
2015-01-20 17:09:24 -04:00
..
DirWatcher one more warning 2014-12-29 17:35:19 -04:00
LockFile final scary locking refactoring (for now) 2014-08-20 19:30:40 -04:00
Applicative.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Base64.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Batch.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Bloom.hs Rather than crashing when there's a problem with the requested bloomfilter capacity/accuracy, fall back to a reasonable default bloom filter size. 2014-09-12 12:26:12 -04:00
CoProcess.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
CopyFile.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Daemon.hs revert parentDir change 2015-01-09 13:11:56 -04:00
Data.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
DataUnits.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
DBus.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Directory.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
DirWatcher.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
DiskFree.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Dot.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
DottedVersion.hs Use wget -q --show-progress for less verbose wget output, when built with wget 1.16. 2014-12-16 14:04:40 -04:00
Env.hs typo 2014-10-16 15:39:19 -04:00
Exception.hs qualify catch and try 2014-08-10 19:40:21 -04:00
ExternalSHA.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
FileMode.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
FileSize.hs add getFileSize, which can get the real size of a large file on Windows 2015-01-20 17:09:24 -04:00
FileSystemEncoding.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Format.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
FreeDesktop.hs revert parentDir change 2015-01-09 13:11:56 -04:00
Glob.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Gpg.hs Fix build with process 1.2.1.0. 2015-01-04 13:07:57 -04:00
Hash.hs lazy bytestring fromStrict is not available in stable; use fromChunks instead 2014-05-29 20:25:01 -04:00
HumanNumber.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
HumanTime.hs indent with tabs not spaces 2014-10-09 15:09:26 -04:00
InodeCache.hs add getFileSize, which can get the real size of a large file on Windows 2015-01-20 17:09:24 -04:00
JSONStream.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
libdiskfree.c OSX: Switched away from deprecated statfs64 interface. 2014-12-31 12:20:27 -04:00
libdiskfree.h Renamed diskfree.c to avoid OSX case insensativity bug. 2012-04-13 11:26:39 -04:00
libkqueue.c relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
libkqueue.h fix prototype 2012-06-19 01:57:19 -04:00
libmounts.c fix a OSX C compiler warning about null pointer 2014-12-29 17:07:42 -04:00
libmounts.h Got removable media mount detection working on Android. 2013-05-04 16:19:25 -04:00
LinuxMkLibs.hs revert parentDir change 2015-01-09 13:11:56 -04:00
LockFile.hs reorganize and refactor lock code 2014-08-20 16:45:58 -04:00
LogFile.hs Windows: Assistant now logs to daemon.log. 2014-06-17 19:27:54 -04:00
Lsof.hs Work around apparent bug in lsof 4.88's -F output format. 2014-11-12 18:00:40 -04:00
Matcher.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Metered.hs refactor 2014-12-17 13:21:55 -04:00
Misc.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Monad.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Mounts.hsc avoid warnings when built with ghc 7.6 2013-06-02 15:01:58 -04:00
Network.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
NotificationBroadcaster.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
OSX.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Parallel.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
PartialPrelude.hs rename readMaybe to readish 2012-01-23 17:00:10 -04:00
Path.hs convert parentDir to be based on takeDirectory, but fixed for trailing / 2015-01-09 14:26:52 -04:00
Percentage.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
PID.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
PosixFiles.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Process.hs Fix build with process 1.2.1.0. 2015-01-04 13:07:57 -04:00
QuickCheck.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Quvi.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Rsync.hs Windows: Got the rsync special remote working. 2014-12-30 15:05:59 -04:00
SafeCommand.hs export CreateProcess fields from Utility.Process 2014-06-10 19:20:14 -04:00
Scheduled.hs indent with tabs not spaces 2014-10-09 15:09:26 -04:00
Shell.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
SimpleProtocol.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
SRV.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
SshConfig.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Tense.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
ThreadLock.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
ThreadScheduler.hs increase sleep 2014-07-16 16:16:25 -04:00
TList.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Tmp.hs generalize monads 2014-11-12 14:59:24 -04:00
Touch.hsc final warning fix 2014-12-29 17:45:36 -04:00
URI.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Url.hs add getFileSize, which can get the real size of a large file on Windows 2015-01-20 17:09:24 -04:00
UserInfo.hs fixed all remaining build warnings on Windows 2014-12-29 17:30:20 -04:00
Verifiable.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
WebApp.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
winprocess.c windows: Fix process termination code. 2014-02-13 15:53:10 -04:00
WinProcess.hs relicense general utility library code to BSD 2014-05-10 11:01:27 -03:00
Yesod.hs more accurate version bounds 2014-10-24 12:11:27 -04:00