Brad Fitzpatrick
480350936e
Revert "Work around Go http bug with zero length files."
...
This reverts commit 1e7ff7b46c
.
Fixed with: http://codereview.appspot.com/4529050
2011-05-11 04:59:45 -07:00
Brad Fitzpatrick
1e7ff7b46c
Work around Go http bug with zero length files.
2011-05-10 19:29:20 -07:00
Brad Fitzpatrick
257e550740
use blobref.SizedBlobRef as a value, not a mutable *blobref.SizedBlobRef on heap
2011-05-10 16:13:37 -07:00
Brad Fitzpatrick
bed26de507
Cleanup: remove partitions from interfaces. WIP but compiles.
...
Still need to fix up blobhub notification for localdisk
mirroring, since now localdisk can't find the notification
hub for mirrored partitions. (and also can't be configured
yet)
2011-05-09 09:11:18 -07:00
Brad Fitzpatrick
cc12a8788b
Add camdbinit tool, convert from Perl to Go.
2011-05-01 18:21:22 -07:00
Brad Fitzpatrick
c56f82c5dd
Updates for Go Open changes.
2011-04-07 10:58:29 -07:00
Brad Fitzpatrick
2a61dcfd9e
Put some path-related stuff in camli/osutil
2011-04-01 22:26:33 -07:00
Brad Fitzpatrick
ca1f8f16ad
cammount: add fuse mtime/atime/ctime
2011-03-29 10:40:50 -07:00
caine tighe
cfe1c269cb
clients/go/cammount: add \n to usage prompt
2011-03-28 14:58:46 -04:00
Daniel Erat
64040340c3
android: Return copies of cached blobs instead of originals.
...
This should fix
http://code.google.com/p/camlistore/issues/detail?id=3 ,
"Android client permits mutating the immutable cache".
I'm also removing the call to
URLConnection.guessContentTypeFromStream() in favor of
just using URLConnection.guessContentTypeFromName().
I don't think that the former was ever successful, and it
was hitting the disk from the UI thread.
2011-03-27 14:19:48 -07:00
Daniel Erat
58c678e94e
android: add icons for files and directories
...
trying to get the hang of making stuff in inkscape that
doesn't look awful
2011-03-27 12:07:06 -07:00
Daniel Erat
a1d768f46d
Merge remote branch 'origin/master'
2011-03-27 12:05:07 -07:00
Brad Fitzpatrick
00a8985afd
LRU on FUSE GetAttr too.
2011-03-25 21:36:52 -07:00
Brad Fitzpatrick
48715cb80f
cammount: less spammy
2011-03-25 21:28:47 -07:00
Brad Fitzpatrick
ddc810a3d0
cammount: LRU caching on various operations
2011-03-25 21:21:24 -07:00
Brad Fitzpatrick
7c1e08c55f
Start of simple camli/lru class for fuse caches.
2011-03-25 18:58:14 -07:00
Brad Fitzpatrick
912a5a304c
fuse readlink support
2011-03-25 18:36:08 -07:00
Brad Fitzpatrick
054cd642ea
cammount: read-only FUSE works now
2011-03-24 21:07:49 -07:00
Brad Fitzpatrick
8302903eb0
camsync: use FetchStreaming, not Fetch
2011-03-24 19:58:52 -07:00
Brad Fitzpatrick
f12b7f5342
Have CamliFileSystem take a Fetcher, not a Client
2011-03-24 19:58:29 -07:00
Brad Fitzpatrick
0e51761bbd
camget: only require a ReadCloser.
2011-03-24 19:21:35 -07:00
Brad Fitzpatrick
4b5380a8aa
gofmt
2011-03-24 19:20:22 -07:00
Brad Fitzpatrick
a785d945f8
fix camput compile error from earlier change
2011-03-24 16:34:22 -07:00
Brad Fitzpatrick
3db542645c
schema/fuse file reading, but still buggy in parts
2011-03-24 15:33:15 -07:00
Brad Fitzpatrick
a8739674e1
cammount: Start of Open and file ops
2011-03-23 22:04:50 -07:00
Brad Fitzpatrick
1d0baaade8
cammount: working OpenDir!
2011-03-23 20:51:47 -07:00
Brad Fitzpatrick
b366f7c699
cammount: more working Opendir
2011-03-23 19:57:40 -07:00
Brad Fitzpatrick
6ce55da2f4
Update to go-fuse 142724315
2011-03-23 19:14:04 -07:00
Brad Fitzpatrick
367d4d7bef
cammount: more FUSE work; kinda-working Opendir
2011-03-22 22:59:45 -07:00
Brad Fitzpatrick
9771c314e3
cammount: more FUSE work: basic GetAttr support
2011-03-22 22:32:11 -07:00
Brad Fitzpatrick
0707a092e0
cammount: more FUSE work, inode lookup
2011-03-22 22:11:27 -07:00
Brad Fitzpatrick
bd40289c88
cammount work commit before battery dies
2011-03-22 20:35:04 -07:00
Brad Fitzpatrick
36e3c016c2
cammount fuse shell
2011-03-22 20:11:07 -07:00
Daniel Erat
46870bdbdc
android: use a custom adapter in BrowseActivity
...
no user-visible changes
2011-03-20 13:03:16 -07:00
Brad Fitzpatrick
43d058ae77
Merge commit '7262d8a'
2011-03-20 10:25:23 -07:00
Brad Fitzpatrick
7332f1aa71
cammount: start with hanwen's example loopback fuse program.
2011-03-20 10:25:17 -07:00
Daniel Erat
7262d8a736
android: verify downloaded data against digests from blobrefs
2011-03-19 17:06:33 -07:00
Daniel Erat
94bd0ec0c8
android: avoid caching incomplete downloads
...
when the Content-Length header is supplied, this makes us
check that we received the expected number of bytes. tested
by ctrl-c-ing the blobserver midway through a download.
2011-03-19 15:49:46 -07:00
Daniel Erat
85a7f38a87
android: limit cache growth
...
this is lightly-tested but seems to work.
the non-new stuff in res/ is just whitespace cleanup.
2011-03-19 12:15:19 -07:00
Daniel Erat
ec2c41604c
Merge remote branch 'origin/master'
2011-03-19 09:16:50 -07:00
Daniel Erat
a29346265e
android: add DownloadCache class
...
cache-size-limiting code is untested and unused
2011-03-19 08:20:44 -07:00
Brad Fitzpatrick
184afbc2a3
Auto-generate Go Makefiles.
...
Dependencies are now only in one place (in source code, enforced for correctness by Go)
instead of three places.
2011-03-19 00:27:03 -07:00
Brad Fitzpatrick
ae608c6a8c
Automatic go dependency inference; phase 1.
...
Next phaes will auto-gen makefiles.
2011-03-18 22:33:43 -07:00
Brad Fitzpatrick
816b7ee957
android: https support
2011-03-17 18:41:37 -07:00
Brad Fitzpatrick
077f362e2d
android: add tips when SDK isn't configured.
2011-03-17 18:15:25 -07:00
Daniel Erat
78c6b71b87
android: lots of improvements to download service
...
- don't write search results to disk
- download into memory before writing to disk when
we have listeners asking for byte arrays
- don't read files while holding the lock
2011-03-17 08:36:43 -07:00
Daniel Erat
a8f4774752
android: download files to temporary location
...
also fix lame inverted-logic bug in cache-checking code :-(
2011-03-16 22:49:42 -07:00
Daniel Erat
406433a138
android: add synchronization-related asserts
2011-03-16 22:25:21 -07:00
Daniel Erat
7d199b97bd
android: add missing final to EntryType.mName
2011-03-16 06:55:36 -07:00
Daniel Erat
e1f34760cc
android: yay, basic file viewing appears to work!
...
(for simple, single-part files)
2011-03-15 22:43:39 -07:00