Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2012-09-10 22:04:33 -04:00
commit e588383e09
8 changed files with 108 additions and 0 deletions

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlup4hyZo4eCjF8T85vfRXMKBxGj9bMdl0"
nickname="Ben"
subject="comment 5"
date="2012-09-09T20:47:04Z"
content="""
That sounds far more reasonable.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlhIMPGF1E0XEJKV6j6-PFzAxA1-nIlydo"
nickname="Bernhard"
subject="re @ gdr-go2 "
date="2012-09-10T19:34:00Z"
content="""
`mount` requires root and you'll have still the 4gb limit for your image by FAT. some phones (e.g. galaxy nexus) already use `ext4` for `/sdcard` though.
"""]]

View file

@ -0,0 +1,46 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawlhIMPGF1E0XEJKV6j6-PFzAxA1-nIlydo"
nickname="Bernhard"
subject="GHC and Android"
date="2012-09-10T21:58:28Z"
content="""
I played around a bit with GHC and Android today. It isn't really a result, but maybe useful for someone out there.
I have a Debian `chroot` environment on my Android device (howto: <http://www.saurik.com/id/10/>). In the Debian box:
$ cat arm.hs
main = do
putStrLn \"Hello ARM\"
$ ghc -static --make arm.hs
Linking arm ...
$ ldd arm
libgmp.so.3 => /usr/lib/libgmp.so.3 (0x40233000)
libm.so.6 => /lib/libm.so.6 (0x400c8000)
libffi.so.5 => /usr/lib/libffi.so.5 (0x401b1000)
librt.so.1 => /lib/librt.so.1 (0x40171000)
libdl.so.2 => /lib/libdl.so.2 (0x40180000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x4018b000)
libc.so.6 => /lib/libc.so.6 (0x40282000)
/lib/ld-linux.so.3 (0x400a2000)
libpthread.so.0 => /lib/libpthread.so.0 (0x4007e000)
well, that isn't really static. tell the linker to build a static binary (those are arguments to `ld`):
$ ghc --make arm.hs -optl-static -optl-pthread
[1 of 1] Compiling Main ( arm.hs, arm.o )
Linking arm ...
$ file arm
arm: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, for GNU/Linux 2.6.18, not stripped
$ ldd arm
not a dynamic executable
$ ./arm
Hello ARM
now, get this (quite big) binary into the normal android environment, using `adb`, `SSHDroid` or whatever:
% cd /data/local/tmp # assuming destination of file transfer
% ./arm
arm: mkTextEncoding: invalid argument (Invalid argument)
looking in the source of `System.IO` it seems like an `iconv` issue. So, there's still some dynamic dependency in there... *sigh*
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawmubB1Sj2rwFoVdZYvGV0ACaQUJQyiJXJI"
nickname="Paul"
subject="comment 5"
date="2012-09-10T14:54:17Z"
content="""
chunksize=2m was defined. I tried again, and the transfers again didn't seem to start. Then I did `killall git-annex`, cleaned the files from the box.com account, and tried again. This time it seems to be working, but the webapp isn't showing progress. Memory usage also stays reasonable, and doesn't seem to grow. Maybe it was just bad handling of unexpected repository state?
"""]]

View file

@ -0,0 +1,12 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="4.153.8.30"
subject="comment 6"
date="2012-09-10T17:31:20Z"
content="""
Re transfer progress not being shown, that's expected as upload progress displays are not yet implemented in the webapp.
I can't think of a way git-annex would care what was in your box.com repo. It just makes directories as needed, and will overwrite existing files in the rare case they already exist. And ignore any non-git-annex files.
Are you sure it was git-annex's memory use blowing up, and not the memory use of the davfs2 daemon?
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawmubB1Sj2rwFoVdZYvGV0ACaQUJQyiJXJI"
nickname="Paul"
subject="comment 7"
date="2012-09-10T17:35:48Z"
content="""
Positive. I was grepping for git-annex from ps for the mem usage.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawkfHTPsiAcHEEN7Xl7WxiZmYq-vX7azxFY"
nickname="Vincent"
subject="zsync?"
date="2012-09-10T12:35:45Z"
content="""
zsync.moria.org.uk may have broken some of the ground here.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="https://me.yahoo.com/a/dASECLNzvckz4VwqUGYsvthiplY.#d2c27"
nickname="A. D. Sicks"
subject="comment 5"
date="2012-09-09T23:48:21Z"
content="""
Haskell has C++ binding, so it should be possible to port it to .net/Mono with a VB GUI for Windows users. Windows has a primitive form of symlinks called shortcuts. Perhaps shortcut support in Windows could replace the use of symlinks. I've used shortcuts since XP to put my home Windows directory on another partition and never had a hitch...
If anyone is interested in working on this, hit me up. I would like to use this in my XP vbox to have access to files on my host OS...I have a student edition of Visual Studio 2005 to do an open source port...
"""]]