Commit Graph

649 Commits

Author SHA1 Message Date
Brad Fitzpatrick f709fc930c fs: implement Rename. all tests pass now.
Change-Id: I3876aeb6dafd7e4cc5254a741e6938a579373a64
2013-07-27 22:54:55 -07:00
Brad Fitzpatrick a277eb99e0 fs: add a Rename stub. Need to implement for other tests to pass.
Change-Id: I1b41512d3c85eaac5e8977b3a3c590da01af2e98
2013-07-27 18:29:50 -07:00
Brad Fitzpatrick 13bac69618 fs: simplify tests
Change-Id: I85f8b41414fe326e40ba791fdcb65bd5937e4128
2013-07-27 18:29:35 -07:00
Brad Fitzpatrick 1e72ebb0cd fs: pass more tests.
read-only Opens need to also not set OpenDirectIO, else the property
is retained on all future operations on that handle.

Change-Id: I954e899bf2c74815813b25a1fa0dc6d42a4189c6
2013-07-27 16:07:32 -07:00
Brad Fitzpatrick 4cbc402e4b fs: another failing test
Change-Id: If9d3a87aa67415846a7b7a1a20c4cef3cd9c1f66
2013-07-27 10:56:39 -07:00
Andrew Gerrand 64fe71e90d fs: add TextEdit mutable file system test
Change-Id: I98c06aaec98e053715a7dc8799ae568be6819acb
2013-07-23 11:20:16 +10:00
Brad Fitzpatrick 830c6966a1 fs: set inode when statting directory permanodes
Change-Id: Ie20f02b3abab48c719a0de7b0d1409c559c5e69a
2013-07-22 09:53:17 -07:00
Brad Fitzpatrick f0edcaa7d4 fs: fix bug preventing Finder from working.
Apparently we need to update the node's size after a write on a filehandle.
Finder stats it (the node, not the handle) while writing and complains if it's
not the right size.

Change-Id: Ie3e98328a182a4bbb3230c5190e1d57d0d3fb075
2013-07-22 09:52:48 -07:00
Brad Fitzpatrick f8f71e0d77 fs: adding Mac-specific tests, scripting the Finder.
Currently broken. Need to investigate.

Change-Id: I06ba2af751b88ac16e086c39f24617ecec4f6095
2013-07-21 22:46:05 -07:00
Brad Fitzpatrick 753f717cd4 test: add WaitFor func
Change-Id: I3d60ea9701721f9107da5322521a3c742d340646
2013-07-21 22:43:39 -07:00
Brad Fitzpatrick ff9ab092b1 fs: add .camli_fs_stats root directory; use it in tests.
Currently one a few stats are tracked, but more can be added easily now.

The only test using this is using it to verify that the read-only open optimization
is used.

Change-Id: I1e2fb8a0222ade82631670d7c51e684778d031ae
2013-07-21 21:13:16 -07:00
Brad Fitzpatrick 2789f65d1f types: add an Atomic64 type
Change-Id: I4677b4368b98e658b921697331d999b58de85d7f
2013-07-21 20:45:20 -07:00
Brad Fitzpatrick 1149058dbd fs: mutable file append tests
Change-Id: Ibc1b31e7ccc187a92aa1fc8c205b779735126387
2013-07-21 19:01:22 -07:00
Brad Fitzpatrick 33bbd23e32 fs: typo. return read-only file by looking at req flags, not res flags.
Change-Id: I2093f381b99c6ef55a20b88e0bcaade97a3529c7
2013-07-21 18:36:21 -07:00
Brad Fitzpatrick 98eb69b5e1 fs: bunch of read-write FUSE work, debugging, and integration tests.
Change-Id: I74807f693720effb7ae8405259797331f79f59fd
2013-07-21 12:26:05 -07:00
Brad Fitzpatrick 0e28959c51 fs: move unmount from cammount to fs.Unmount
Change-Id: I2c21ccbbd81f4fa7ffc40cc769eacb8a6bf30558
2013-07-20 23:26:56 -07:00
Brad Fitzpatrick 13fe0608fb Start of integration tests and a library to make them easy.
Change-Id: I24c55252d81d2170205f090a11a5c45473707e5d
2013-07-20 22:36:53 -07:00
Brad Fitzpatrick 1d089ec601 blobref: add AsUint64 accessor
Change-Id: I1326763beecdaed5461c29b65d1dab78e456af99
2013-07-21 05:15:02 +12:00
Brad Fitzpatrick 972f3adfb2 Merge "update closure library: automatically generate the list of required files" 2013-07-20 01:34:39 +00:00
Brad Fitzpatrick 283301a6d7 Merge "share: allow configuration of URL prefix" 2013-07-20 01:33:46 +00:00
Brad Fitzpatrick 1cc4e84761 Merge "camget: allow insecure TLS with shared URLs" 2013-07-20 01:32:24 +00:00
mpl 6c4dc821fa update closure library: automatically generate the list of required files
Also updated parseProvidesRequires to use a bufio.Scanner

http://camlistore.org/issue/149

Change-Id: I13df7f03e3482b77e71687adc2b71b8dd9eeb0db
2013-07-19 19:22:41 +02:00
Andrew Gerrand c4a1bc56a2 fs: implement mkdir in roots/ directory
Change-Id: Ib36c7364f7bfd1875c2edcd970a89b8e54bd6263
2013-07-18 10:31:19 +10:00
mpl 759be70c92 share: allow configuration of URL prefix
http://camlistore.org/issue/160

Change-Id: I77998bbde21790f15a5c4b492307434290ef9421
2013-07-17 16:06:15 +02:00
mpl 257fd29afa camget: allow insecure TLS with shared URLs
Change-Id: I22f610009edfecea932019c35310ae62b0613cb8
2013-07-16 15:56:32 +02:00
Andrew Gerrand f5950a8c4b fs: support mkdir and unlink
Change-Id: I858766b1680b34201ca1e584d71a687f9714e8fd
2013-07-16 14:22:10 +10:00
Andrew Gerrand 450b46e9ca fs: actually claim to have free space
Change-Id: Ia1aac8f44d1616130b5052a97fc8733027c65c4b
2013-07-16 13:45:27 +10:00
Brad Fitzpatrick 4949d1201f Merge "fs: add ability to write to and create files" 2013-07-11 14:18:41 +00:00
Brad Fitzpatrick ec7e5ca526 fs: show nice names in the 'roots' directory, not just blobrefs.
Change-Id: I2aa8ff366160e1ca515d4051d8856313689bc029
2013-07-11 20:17:27 +10:00
Brad Fitzpatrick c28fcb4cda search: let the HTTP interface describe multiple blobs at once
Change-Id: I1998e0fa9a550fb15589bde6da1b549c14bcb97c
2013-07-11 20:17:05 +10:00
Brad Fitzpatrick 167138fd65 cammount: quieter. and only exit when 'q' is pressed.
Change-Id: I2c8719490f977d14e526cd34672ce784589dd460
2013-07-11 19:21:59 +10:00
Andrew Gerrand 1a9794fcdc fs: add ability to write to and create files
Change-Id: I9310260667e0e091e94a3ba7c3ba0b114c31d41e
2013-07-11 17:22:50 +10:00
Brad Fitzpatrick 02d38b07ca camput, client: move lot of camput's code into pkg/client
so cammount can use it.

Change-Id: I1bd513e6dfe6faab785c856abbd0d1337e978dd9
2013-07-11 16:46:23 +10:00
Andrew Gerrand 47df629eb9 fs: implement read-only part of mutable file system
Change-Id: Ibbfccecf90edb6b1ad9f0312d5905dd52d329b7b
2013-07-11 10:56:18 +10:00
Brad Fitzpatrick 4a404a3c60 search: clean up describe handler and DescribeRequest
Change-Id: I4e6184765b6139de3bdc153d27a12d3cb205a55e
2013-07-11 10:35:06 +10:00
Brad Fitzpatrick d2b8d08397 search: make describe follow camliPath attributes
Change-Id: I875587a734d118a3f3fc204901ae1788247b91ab
2013-07-11 10:03:56 +10:00
Brad Fitzpatrick 2706195034 Merge "publish: added navigation links. Refactored serveSubject." 2013-07-10 22:29:15 +00:00
mpl a4059052d0 publish: added navigation links. Refactored serveSubject.
Change-Id: If1cff58151779161f5e44115dd5f3dd2f7bce980
2013-07-10 23:18:18 +02:00
Andrew Gerrand a9e9cd23ea fs: add base support for mutable roots
Change-Id: I4c8e783f707ee46c9dccd14ab8c213a61146d7dc
2013-07-10 21:10:48 +10:00
Andrew Gerrand 64153d9f02 client,search: add withattr and describe to client
Change-Id: I9d55a7283bc7c99560e61aea80024c8f80dacc05
2013-07-10 21:10:18 +10:00
Andrew Gerrand ba3d7f7e34 fix comment
Change-Id: Ibf210640039cfbe1a7e33f0013d7c59734f59cef
2013-07-10 19:58:55 +10:00
Brad Fitzpatrick dc3788afca Merge "issue 23: Fix google storage blobserver as sync dest" 2013-07-08 22:08:22 +00:00
Brad Fitzpatrick 2c4d272ef9 encrypt: fix check for missing config
Change-Id: I4433c36bc55a475cfa59953594f3a554c2d6ec2e
2013-07-09 07:24:14 +10:00
Michael Zuffoletti c2669a6dfc issue 23: Fix google storage blobserver as sync dest
Change-Id: I33d88dc5028ebb76d4c17d2a00d8f8346114f876
2013-07-08 11:33:10 -05:00
mpl 574b5feb96 Merge "publish: serve a zip of all files in a published path" 2013-07-08 13:32:01 +00:00
mpl 86b591cab9 publish: serve a zip of all files in a published path
Change-Id: I415f4d50936ab419695389dcda1facaf71565a8d
2013-07-08 13:00:41 +02:00
Brad Fitzpatrick f1728b3299 serverconfig: use handlers package consistently for all handlers now.
Change-Id: Ib10e887e8692d99a838547016d044394cb8db3a7
2013-07-08 19:56:52 +10:00
Brad Fitzpatrick 9468e5ba70 More docs. Every package is documented now.
misc.CountingReader moves into readerutil.

pkg/atomics is folded into pkg/types.

pkg/test/testdep is folded into pkg/test, with better name/docs.

Old cruft from pkg/webserver is deleted.

Change-Id: I3f72d8b29804254ef944995fb085837c878f79f5
2013-07-07 21:12:30 -07:00
Brad Fitzpatrick cf0d9aca6e More docs
Change-Id: I5c21f240c85bcf91fb67487cc172bf3faeb49fff
2013-07-07 18:52:14 -07:00
Brad Fitzpatrick 62ad21ff2e Docs and minor cleanups
Change-Id: Ibf1d69c21f53cf4b5b576a0dfefa5d0e7b26264d
2013-07-07 16:09:17 -07:00