Commit Graph

37 Commits

Author SHA1 Message Date
mpl db2604f981 pkg/schema: break static-sets in subsets for large directories
The current maximum size for a schema blob is 1MB. For a large enough
directory (~20000 children), the resulting static-set JSON schema is
over that maximum size.

We could increase that maximum, but we would eventually hit the maximum
blob size (16MB), which would only allow for ~300000 children. Even if
that is an uncommon size, it is technically possible to have such large
directories, so I don't think it would be reasonable to restrict users
to such a limit. So it does not seems like enough of a solution.

The solution proposed in this CL is to spread the children of a
directory (when they are more numerous than a given maximum, here set to
10000) onto several static-sets, recursively if needed. These
static-sets (subsets of the whole lot of children) are stored in the new
"mergeSets" field of their parent static-set schema. The actual fileRefs
or dirRefs, are still stored in the "members" field of the subset they were
spread in. The "mergeSets" and "members" field of a static-set are therefore
mutually exclusive.

Fixes #924

Change-Id: Ibe47b50795d5288fe904d3cce0cc7f780d313408
2018-02-09 01:36:38 +01:00
mpl c03ad46ce9 doc: warn that multi claims are not implemented
Related: issue #110

Change-Id: I2726f4e2aef714b62397f3a30633eb30e65ef079
2018-01-24 01:34:52 +01:00
mpl cea35f8a40 website: first pass of s/Camlistore/Perkeep/ on contents
A second pass will be needed on the URLs once we have moved all the
repos and such.

Issue #981

Change-Id: Ibb58f4c4f16481da69e811142e8337b826c0d164
2017-12-18 16:46:08 +01:00
mpl 94043cad76 doc/schema: add missing link to bytes.md
Change-Id: I868c02bf992b233c1f853bf6fd94cca5424f5065
2016-05-12 00:17:24 +02:00
mpl 794ed25819 website: keep doc/schema flat
It looks better than the half-organization we had so far, and it will
actually make it easier for editorial changes to come. Also keeps us
more honest about doing it sooner rather than later.

Change-Id: I6303325f6d75389c7e8ca908f3740cf92af3836a
2016-04-26 17:34:47 -07:00
Will Norris 2f79a55baa website: convert schema docs to markdown
Refs #720

Change-Id: Iccfaf7384cffa78a51606868f83f4019e9441791
2016-04-26 16:32:38 -07:00
Will Norris 7cb074bfde website: serve /doc/ URLs from top-level doc dir
- move existing content from website/content/docs to top-level doc
  directory
- redirect /docs/ URLs to /doc/

Fixes #720

Change-Id: I92e26bbc1fdbe994089080ae3a971d85c12921ab
2016-04-25 22:13:09 -07:00
Aaron Boodman 7d688b9d85 Revert "Add camliNodeType:'set'"
This reverts commit 2d67328243.

I decided to do this only with heuristics, since we have to maintain
backward compat with data before this camliNodeType existed.

Change-Id: Ieba5dd1f8a4c8f5aedc1477c4fab1ffebcc2878c
2015-01-02 23:08:16 -08:00
Aaron Boodman 2d67328243 Add camliNodeType:'set'
Change-Id: Ia174d747dbe386f0150c4470c4db170d9cc1d362
2014-12-28 11:38:32 -08:00
Aaron Boodman 51ef6152fd Add -search argument to camput share.
Bug: https://code.google.com/p/camlistore/issues/detail?id=512

Change-Id: Ic0dd559c98589107fcdeade8784699cf6b2f1761
2014-09-06 18:50:21 -07:00
Aaron Boodman 2c3914dbc7 Add docs for share claim
Change-Id: I4acf68973922578e4d0b9cce0efb7a7c4b3efb8a
2014-09-04 13:46:57 -07:00
Brian Gitonga Marete 53ab352fa7 pkg/schema, cmd/camget, cmd/camput: Support sockets.
This patch:

1. Introduces a JSON schema for unix domain sockets (socket files).
2. Adds support for the new schema to pkg/schema.
3. Adds support for uploading and restoring sockets to camput and
camget respectively.

Depends on CL 2706 (https://camlistore-review.googlesource.com/2706/)

Change-Id: Ib0d6e9f9ebd348f55efee5a08cd774f3969d0760
2014-05-21 18:51:14 +03:00
Brian Gitonga Marete e9dd1af195 cmd/camget, cmd/camput, pkg/schema: Support FIFOs.
This patch:

1. Introduces a JSON schema for FIFOs (named pipes).
2. Adds support for uploading and restoring FIFOs to camput and camget
respectively.

It includes tests for the basic schema support in pkg/schema and
integration tests for camput and camget.

This CL does not add FIFO support to the HTTP server and fs (cammount
support) code. Those will be addressed in a subsequent patch.

Change-Id: Iab926073c36e653d25e693a559178bea9bf19b9a
2014-05-21 14:52:23 +03:00
Brad Fitzpatrick bfaf8fa120 Add camliContentImage.
See camlistore.org/issue/395

Change-Id: I7057593c6733f0e6312681399c3d707dd3aac147
2014-03-10 19:11:29 -07:00
Brad Fitzpatrick d7e0ad7c5b doc: add two undocumented attributes
Change-Id: I3676c94fdd44a1479bc2c57a7a2015f6df14f835
2014-01-16 20:16:41 -08:00
Dustin Sallings c13717e788 fs: extended attribute support
This includes read-write support for extended attributes for mutable
files, and enough support on all other filesystem paths to prevent OS X
from falling back to AppleDouble files.

Change-Id: I2b275591f3bc69c25e1e9c8d59a7fa4cf0bb97ff
2014-01-02 12:02:10 -08:00
Brad Fitzpatrick 3bdff69dcf doc: add camliDefVis to schema claims docs
Change-Id: I76d66887fb599e80472da489d7dfeb8b629b9b4a
2014-01-02 00:34:12 -08:00
Brad Fitzpatrick 80c0a45ecc Update doc/schema/claims/attributes.txt
Change-Id: I6f7bcce136b38ad33f991e20289e67e2d184353e
2013-12-28 11:20:51 -08:00
mpl 1ee5fd20c5 search: deletions are not modifications
1) pkg/search: documented that deletions times do not
qualify as modtimes

2) pkg/index: got rid of DeletedAt, and keyDeletes

http://camlistore.org/issue/191

Change-Id: I39578913345454d36af4599e29e7053f46577846
2013-11-29 00:29:57 +01:00
mpl d4b5e413a2 schema: add delete claim
Also rename other claim types for consistent style.

http://camlistore.org/issue/191

Change-Id: I1dc1283bd961481ad793b92262cf5ce641d9fdc8
2013-11-03 00:37:49 +01:00
Brad Fitzpatrick 79f7e014ca Merge "start of permanode attributes doc" 2013-06-15 21:05:04 +00:00
Brad Fitzpatrick fc2597e01f Start of an overview page, describing the project, plus more misc doc/website cleanup
Change-Id: Ic456e73ab3adf549e7280c8ee1c9d6668719720e
2013-06-12 07:22:29 -07:00
Brad Fitzpatrick 773b089ed9 doc: start of multi-claim.
Change-Id: Iffcf4ca7ecf64c979ccd171fc4c6221194648e93
2013-02-25 06:40:36 -08:00
mpl 4212d6a02a start of permanode attributes doc
Change-Id: I1adda2522c65c7004f3c4ba13d45bb8c14997cbc
2012-11-21 12:11:06 +01:00
Brad Fitzpatrick c0ea8dbcb1 Issue 17: file vs. bytes schema change
Details:
http://code.google.com/p/camlistore/issues/detail?id=17

Change-Id: Ia1237952a2a66f1dcacd00c5c28eb360d9f1d1d7
2011-09-13 11:57:50 -07:00
Brad Fitzpatrick c61317703c indexer: index file sha1s, sizes (for js search lookup later) 2011-06-08 18:26:57 -07:00
Brad Fitzpatrick e0b1723538 file-common schema comment update 2011-06-06 08:53:30 -07:00
Brad Fitzpatrick 9b701a0e37 update file schema to allow hash trees (recursive file schemas) 2011-06-06 08:49:19 -07:00
Brad Fitzpatrick e4dd0f122f Some more notes/docs on claim types. 2011-03-12 19:27:45 -08:00
Brad Fitzpatrick 66e6831b9d Fix typos 2011-01-29 16:27:52 -08:00
Brad Fitzpatrick 6041eb81d4 File schema work. 2010-12-30 22:37:46 -08:00
Brad Fitzpatrick eb60cd6f71 Start of a schema library for camput. 2010-12-30 10:17:47 -08:00
Brad Fitzpatrick cb5cd3e287 more rearranging of docs 2010-12-08 14:29:28 -08:00
Brad Fitzpatrick 107678f560 more schema docs 2010-12-01 21:14:07 -08:00
Brad Fitzpatrick 650c6c1a77 static vs. dynamic set note 2010-12-01 20:30:28 -08:00
Brad Fitzpatrick 58102f04a6 Moving schema docs into the repo and cleaning up. 2010-12-01 20:27:56 -08:00
Brad Fitzpatrick 2b946f9b36 Rearrange the docs, prep for new docs. 2010-12-01 19:05:40 -08:00