Commit Graph

2846 Commits

Author SHA1 Message Date
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
mpl 23777f0b05 dev-server: go replacement: devcam server
http://camlistore.org/issue/140

Change-Id: I6fd14b1185450ff853523db0d207df3bf954ffbf
2013-07-26 21:34:42 +02:00
mpl c0c9f365b9 dev-server: remove get_closure.pl require
Change-Id: I312577b69bb6b67196056361168c1ddfd27f90fa
2013-07-23 23:05:56 +02:00
mpl 454547b4ff Merge "dev-server: use updatelibrary.go to update closure lib" 2013-07-23 14:21:29 +00:00
mpl 5645570ca9 dev-server: use updatelibrary.go to update closure lib
This change also removes misc/get_closure.pl and updates
the Makefile accordingly.

http://camlistore.org/issue/140

Change-Id: I508271cee24eb20d8391cb3d84e1201ce3ef567e
2013-07-23 16:19:46 +02: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 62b0f66f05 cammount: fix imports. lazy partial git foo before. never built what I pushed.
Change-Id: I4ebc020220f6c6c15ba77e76b09cf1f5daf2169e
2013-07-21 11:54:20 -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 40b70311d2 fuse: maybe handle opFsyncdir.
Change-Id: I899a2bd07aa60be38e10f062f3607fa9c07ac3c9
2013-07-20 22:40:19 -07:00
Brad Fitzpatrick 312a40b09a dev-cammount: fix comment
Change-Id: I9b6149a3f097a3ae61345553489496d59939e540
2013-07-20 22:37:21 -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 41f3e652a9 cammount: kill xterm on exit
Change-Id: Id64901853cd2adbf9aa27c9d5cc40f93b732bbbe
2013-07-21 05:23:39 +12:00
Brad Fitzpatrick 2b879e73bc cammount, dev-cammount: add verbose/debug flag
Change-Id: If53ec139db178b44c2dd5c7f1cad33f7ab62c847
2013-07-21 05:18:18 +12: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
Brad Fitzpatrick baea30e34d Merge "buildbot: properly answer if-modified-since requests" 2013-07-18 08:46:33 +00:00
Brad Fitzpatrick c75853a7fd Merge "fs: implement mkdir in roots/ directory" 2013-07-18 08:45:32 +00:00
Andrew Gerrand c4a1bc56a2 fs: implement mkdir in roots/ directory
Change-Id: Ib36c7364f7bfd1875c2edcd970a89b8e54bd6263
2013-07-18 10:31:19 +10:00
mpl 93e9ad812d buildbot: properly answer if-modified-since requests
http://camlistore.org/issue/119

Change-Id: If5b486bf95748267e33f354e0a8fed9c79f220c0
2013-07-17 19:13:07 +02: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 847c583183 UI toolbar: open search or index in same window/tab
Change-Id: I242fc4a23437b8ccf6bc6f33c3f8a7d9fdfc0023
2013-07-16 16:43:03 +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 a51cd21666 Merge "website doc: add publish example to the server config" 2013-07-16 00:38:35 +00:00
Brad Fitzpatrick a6eac7fa35 Merge "UI index: enable drag and drop on a collection" 2013-07-16 00:37:57 +00:00
mpl 1e6aad56f5 website doc: add publish example to the server config
Change-Id: I21c7c3be2118170400d034120385fecf3a617ea4
2013-07-15 23:48:25 +02:00
mpl d5641cce0f UI index: enable drag and drop on a collection
Dropping anywhere on the container is now disabled.
One can either drop on the CreateItem (which results
in the same as dropping on the container was), or
drop on a collection thumbnail, which will not only
create the permanodes but add them to the collection
on the fly.

Change-Id: Ia4d761b2be25822a561c94c397dded02853e5b77
2013-07-15 17:32:53 +02:00
Brad Fitzpatrick e43e703599 dev-cammount, cammount: add xterm flag, to bring up a debug xterm in that dir.
remove child process mode. not necessary.

Change-Id: I4f6e75efe127a2b9e7867dbfac5c42fcc874e3a6
2013-07-15 21:29:00 +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 65767eedd1 Merge "support static_embed when cross-compiling." 2013-07-11 10:22:39 +00:00
Brad Fitzpatrick 5d695380d9 A+C: add Daniel Dermott Bryan (Individual CLA)
Change-Id: Iebd269ddf51e49ddc86f419a2cca48a163de3221
2013-07-11 20:20:55 +10: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
Cerales b4ba7eb00d support static_embed when cross-compiling.
Implemented with a new GOARCH flag and appropriately setting the GOARCH
and GOOS variables when building the genfileembed tool.

Change-Id: I2a3f4ad08496ad03995e67da389d125388d643eb
2013-07-11 19:51:42 +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
Brad Fitzpatrick d245059531 dev-server: make --fast the default. add --slow.
Change-Id: I0ace8d613489ef801b006b43fc885c1847349d06
2013-07-11 18:57:36 +10:00