Commit Graph

2071 Commits

Author SHA1 Message Date
Mathieu Lonjaret 1d0ad00bdc Merge "client: use index expression over rename map" 2014-11-10 16:43:20 +00:00
Jingguo Yao 3e4825a1c3 fs: correct the permission bit setting
Replace "executeBit" with "n.attr.Mode & 0100" in "0400 & executeBit".
The result is "0400 & n.attr.Mode & 0100" which is always 0. So
"n.attr.Mode" is always 0 after the assignment. The last two "&" should be
"|" in the assignment.

Change-Id: Iaeff864f330b9db07b8a3124b5c28ba1a3469e69
2014-11-09 13:53:23 +08:00
Jingguo Yao 351b4f9726 client: use index expression over rename map
Use index expression instead of loop.

Change-Id: I26b85e239a227f234fa7432bf7444b6c73e949ba
2014-11-09 10:28:35 +08:00
Brad Fitzpatrick 3374899d40 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-11-08 18:17:20 -03:00
Brad Fitzpatrick dedfeaff29 strutil: add IsPlausibleJSON
Use it in camtool search, and for https://camlistore-review.googlesource.com/#/c/2888/

Change-Id: Ibae0b4aa346cc8c18ff6a4b4eef994cfddd42dda
2014-11-08 18:16:47 -03:00
Brad Fitzpatrick bb19aacd73 Merge "camput: use Errorf to print critical errors even when non-verbose" 2014-11-08 19:02:46 +00:00
Mathieu Lonjaret c03a0f5650 Merge "Help devcam find itself correctly on OS X" 2014-11-07 14:57:45 +00:00
Salmān Aljammāz 20470f544f Help devcam find itself correctly on OS X
This implements osutil.SelfPath on darwin by trying a $PATH lookup
using the command invocation name. Stops the nagging "couldn't stat
devcam binary" message on OS X.

Change-Id: I42c7f5c30148d810ca753e0812b772db24e93356
2014-11-06 17:30:41 +00:00
Brad Fitzpatrick 0e841e0f51 Rename pkg/misc to pkg/hashutil
It only had one function anyway.

Change-Id: Iec4b7868d823148c8e1d2607347fe9d3c1463403
2014-11-06 13:31:58 -03:00
mpl 250664d8eb camput: use Errorf to print critical errors even when non-verbose
http://camlistore.org/issue/524

Change-Id: Ied24471288ea459785291281afa7316a257b6884
2014-11-03 22:15:36 +01:00
Jingguo Yao 9b6a9c587a schema: fix typos in error messages
1. Error messages in dirreader should mention dirreader instead of
   filereader.
2. Remove \n at the ends of error messages.
3. Use errors.New for plain text error messages.
4. Give precise static-set information in one error message.

Change-Id: Iae0f46bca492e9dbbe41b4c1bebf5f5950d722b5
2014-11-03 20:44:57 +08:00
Jingguo Yao 963c0f78db schema: correct a typo in error message
Function Stat is invoked, but the error message mentions lstat.

Change-Id: I66b5cca3cdc2c6281ce720977d34452502a92aa7
2014-11-01 10:41:45 +08:00
Mathieu Lonjaret e535bed326 Merge "schema: use correct name for function parameter" 2014-10-30 14:13:54 +00:00
Brad Fitzpatrick a9d0b9cc73 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-10-29 13:33:41 -03:00
Brad Fitzpatrick 84c1d6aa19 blobpacked: more tests
Change-Id: I996a9a7b93bf4ede6e5c3c90bfdca0d269a4d425
2014-10-29 13:26:36 -03:00
mpl e6d95d0552 Merge "dockertest: update mongo image" 2014-10-29 15:36:42 +00:00
Jingguo Yao 51a16a4082 schema: use correct name for function parameter
The comment for Readdir talks about n, but the parameter name of Readdir
is count.

Change-Id: I3669730eb1972077ce81219c4ce64f19e176caa1
2014-10-29 09:17:11 +08:00
Brad Fitzpatrick 3ee058675e blobpacked: RemoveBlobs work: deleteZipPack, foreachZipBlob, more tests
Change-Id: Ice35948a071703a2683f20f5ccdd710a746f9c7b
2014-10-28 19:31:06 -03:00
Brad Fitzpatrick 5ac4e18a62 blob: add func ReaderAt
Change-Id: Ic8afd01951d3fdb792a5cbe64ab60c8be0dec859
2014-10-28 19:29:33 -03:00
Brad Fitzpatrick d083c754d7 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-10-28 12:56:22 -07:00
Brad Fitzpatrick f61c9c4e5a blobpacked: check for corrupt meta on start-up
Change-Id: I2312c863c46db59f6f101ada3e07c4fa26b7b36d
2014-10-28 05:29:21 -07:00
Brad Fitzpatrick f51b40b635 blobpacked: simplify func parseMetaRow
Change-Id: I59c27556deb02f71311041b8ba60e1a2ba93879d
2014-10-28 05:14:53 -07:00
Brad Fitzpatrick c4f0a62e84 sorted: add Foreach and ForeachInRange helpers
Change-Id: Ifeba7ed6719468f01585aa7f7f9a9006fdd661de
2014-10-28 05:07:55 -07:00
Brad Fitzpatrick a87bde76c7 blobpacked: RemoveBlobs support for packed blobs
Change-Id: I4c9f59cf0568d985eeebe7dfa0b0aa062bdf1969
2014-10-28 04:54:34 -07:00
Brad Fitzpatrick 5c0d51e565 storagetest: clean up a bit
Change-Id: I458b9be22e1559adbc3aa645434e67e21cae43de
2014-10-28 04:08:44 -07:00
Jingguo Yao 674deb7280 jsonconfig: remove useless type conversion
Change-Id: I271ca5f619dcd7d6cdee3dc40b68dd6c5eb318d8
2014-10-28 10:49:36 +08:00
mpl 5a05d25fb2 dockertest: update mongo image
robinvdvleuten/mongo is dead so I pushed a new one at mpl7/mongo

http://camlistore.org/issue/518

Change-Id: Id48b423c987f5287354b4824f37472b985060ee3
2014-10-28 01:24:56 +01:00
Brad Fitzpatrick 04432cc886 blobpacked: more RemoveBlobs work
Change-Id: I911e6b620ea4d21b7132b849136e36c40a966793
2014-10-27 16:19:29 -07:00
Brad Fitzpatrick bf91167b98 blobpacked: more StreamBlobs work, start of testing it
Change-Id: Ic3b1ab32ac331602c15bd53964dab582d73c04f4
2014-10-27 15:44:45 -07:00
mpl 5d311321d1 Merge "setup wizard: redirect to server docs until someone wants to do nicer" 2014-10-27 17:50:11 +00:00
Brad Fitzpatrick a5a846a928 Merge "Fix ReadDir for recent in cammount" 2014-10-24 22:42:45 +00:00
Matthieu Rakotojaona af0d711c01 Fix ReadDir for recent in cammount
Change-Id: I422393ec77034b8408094b663b34121a499ad4a7
2014-10-24 19:56:42 +02:00
Brad Fitzpatrick 55f0c91c25 blobpacked: start of untested blob streaming code
Will be used for recovery.

Change-Id: I8a6d219086a306e53b1b621b7bc7cf59b984c765
2014-10-22 15:12:41 -07:00
Brad Fitzpatrick 919390aac8 httputil: rename conn to rw, per current conventions
Change-Id: Ifc39915396f5ababdc2fb21c2a95156bbbf729c8
2014-10-21 15:13:12 +02:00
Brad Fitzpatrick 8897cdc3f8 httputil: don't set Content-Type until we're sure
Fixes Issue 182

Change-Id: I1a687c51b60caca5ddc7b4cd21d4f7efa6342248
2014-10-21 15:11:51 +02:00
Brad Fitzpatrick 3650dc45eb blobpacked: fix up doc comment
Change-Id: I13bad6626b857c038cd10167dcdd04ac013d44b1
2014-10-21 11:51:29 +02:00
Mathieu Lonjaret 3b47d2888e Merge "Pinboard importer: add test, fix bug" 2014-10-20 21:38:22 +00:00
mpl 2fc1c5a81c schema: set a default UnixPermission in FileMode if needed
Change-Id: I98fd229d0cbd69069a7c39a26e5c8b4444d13ed1
2014-10-20 17:52:02 +02:00
mpl 1bd76c138a setup wizard: redirect to server docs until someone wants to do nicer
Plus we're going to have the automatic deployment to GCE for total
newbies and advanced users don't need the wizard, so it felt like it
needs to die/be hidden.

http://camlistore.org/issue/522

Change-Id: I2ad3d12197df83eb57f68e6b3c85f2d691e96c75
2014-10-19 18:22:21 +02:00
Brad Fitzpatrick a16c015f32 pkg/client: make Describe use a POST request to the server
Otherwise it can't send Describe Rules.

Also in this commit: a bunch of new tests from when I thought I was going crazy
and trying to debug the search system, before I realized the problem was that the
client was doing a GET request and dropping most of my DescribeRequest.

Change-Id: I4ea9bed80f0d7d6b86814527b63acc3586ac1d06
2014-10-19 17:36:22 +02:00
Brad Fitzpatrick bfb325c96f pkg/test: fix after accidentally checking in WIP change in a82f603dbc
Change-Id: Ide7488005bb750b009c40a57443d6bb0b62818c3
2014-10-19 17:21:51 +02:00
Brad Fitzpatrick a93cb4d9b9 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-10-19 16:44:19 +02:00
Brad Fitzpatrick a82f603dbc fastjpeg: add a seemingly-missing availability check
Change-Id: I5ab44c1442790e4cceb3f6671f33c57d0c6a4035
2014-10-19 16:44:14 +02:00
mpl 917a09ca6d Merge "blobserver/s3: implement SubFetcher" 2014-10-19 14:13:02 +00:00
mpl b24580d523 blobserver/s3: implement SubFetcher
Change-Id: I42ac364e268463998598990a8bf0df7437f4d05d
2014-10-19 16:11:54 +02:00
Brad Fitzpatrick 4d01c6b011 Merge "test/world: print more info when testing.Verbose()" 2014-10-19 14:11:31 +00:00
Brad Fitzpatrick 5b00309e17 Merge branch 'master' of https://camlistore.googlesource.com/camlistore 2014-10-19 13:35:48 +02:00
Brad Fitzpatrick 1f75759371 s3: style fixes
Change-Id: I0c8dacb00f57d374c3148fe5c8017a9f146d36f4
2014-10-19 13:35:42 +02:00
Brad Fitzpatrick 404a342a33 Merge "genfileembed: Add flag for adding build tags" 2014-10-18 19:09:50 +00:00
mpl 53be9298a5 blobserver/s3: add optional in-memory Fetch cache
Change-Id: I77e27555d28002ba01f1501e8a77eb4adbf701fe
2014-10-18 19:34:25 +02:00