Bug#774315: RFP: haskell-disk-free-space -- Retrieve information about disk space usage.

2014-12-31 Thread Joey Hess
Package: wnpp
Severity: wishlist

* Package name: haskell-disk-free-space
* URL : http://hackage.haskell.org/package/disk-free-space
* License : BSD3

git-annex currently contains its own implementation of a portable disk
free space and size checking library. In a future version, I'd like to
drop this code, and instead use the new disk-free-space from hackage.
It will work on at least Linux, OSX, and Windows. Probably on the BSDs,
but I have not checked.

So, it would be nice to get this into Debian before-hand.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#774315: RFP: haskell-disk-free-space -- Retrieve information about disk space usage.

2014-12-31 Thread Iustin Pop
On Wed, Dec 31, 2014 at 12:32:00PM -0400, Joey Hess wrote:
 Package: wnpp
 Severity: wishlist
 
 * Package name: haskell-disk-free-space
 * URL : http://hackage.haskell.org/package/disk-free-space
 * License : BSD3
 
 git-annex currently contains its own implementation of a portable disk
 free space and size checking library. In a future version, I'd like to
 drop this code, and instead use the new disk-free-space from hackage.
 It will work on at least Linux, OSX, and Windows. Probably on the BSDs,
 but I have not checked.
 
 So, it would be nice to get this into Debian before-hand.

There's another package (statvfs) on hackage that does something
similar, although it's not portable.

To my surprise, both of these import statvfs as unsafe, which (for a
C function that results in a syscall is surprising), so I filled
https://github.com/redneb/disk-free-space/issues/1.

Curious: if your code is already portable, why not split that out if it
already works in the real world?

thanks!
iustin


signature.asc
Description: Digital signature