Changes between Version 12 and Version 13 of Capabilities
- Timestamp:
- 2011-08-07T15:37:32Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Capabilities
v12 v13 22 22 23 23 13: unknown/future capability strings <anything else> 24 }}} 24 25 25 26 In Tahoe-LAFS, mutable directories are built out of mutable files (a mutable directory is really … … 28 29 uploaded into immutable files by default. 29 30 30 Some capabilities can be used to derive others. If you have #1, you can31 derive #2 (but not the other way around). The full table is:32 31 Some capabilities can be used to derive others. If you have !#1, you can 32 derive !#2 (but not the other way around). The full table is: 33 {{{ 33 34 write read verify 34 35 -------------------- … … 40 41 #9 } dircaps 41 42 #10 -> #11 -> #12 } 43 }}} 42 44 43 45 Deriving a weaker capability from a strong one is called "diminishing" the stronger one. 44 46 45 So we use "filecap" to talk about #1..6, but (since most files are immutable)46 we're usually talking about #1. We use "dircap" to talk about#7..12.47 We use "readcap" to talk about #{1,3,5,7,9,11}, but usually we refer to48 #{7,9,11} as a "directory readcap". We use "writecap" to talk about #4 and#10.47 So we use "filecap" to talk about !#1..6, but (since most files are immutable) 48 we're usually talking about !#1. We use "dircap" to talk about !#7..12. 49 We use "readcap" to talk about !#{1,3,5,7,9,11}, but usually we refer to 50 !#{7,9,11} as a "directory readcap". We use "writecap" to talk about !#4 and !#10. 49 51 50 A "literal cap" or "LIT cap" stores the contents of a small file ( #3) or51 directory ( #9) in the capability itself.52 A "literal cap" or "LIT cap" stores the contents of a small file (!#3) or 53 directory (!#9) in the capability itself. 52 54 53 55 A "verifycap" is the weakest capability that still allows every bit of every 54 56 share to be validated (hashes checked, signatures verified, etc). That means 55 #{2,6,8,12}.57 !#{2,6,8,12}. 56 58 57 59 When we talk about a "repaircap", we mean "the weakest capability that can 58 60 still be used to repair the file". Given the current limitations of the 59 repairer and our web api, that means we're talking about#{1,4,7,10}.60 Eventually we'll fix this limitation, and any verifycap should be us eable as61 a repaircap too. (There's much less work involved to let #2 repair a file or62 #8 repair a directory... it's just an incomplete API, rather than a fundamental61 repairer and our web-API, that means we're talking about !#{1,4,7,10}. 62 Eventually we'll fix this limitation, and any verifycap should be usable as 63 a repaircap too. (There's much less work involved to let !#2 repair a file or 64 !#8 repair a directory... it's just an incomplete API, rather than a fundamental 63 65 redesign of the server protocol.) 64 66 … … 68 70 filesystem. It might be remembered in the allmydata.com rootcap database 69 71 (indexed by account name plus password), or it might be remembered in a 70 ~/.tahoe/private/aliasesfile, or it might just be written down on a piece72 {{{~/.tahoe/private/aliases}}} file, or it might just be written down on a piece 71 73 of paper. The point is that you have to start from somewhere, and we refer 72 74 to such a starting point as a "rootcap". 73 74 }}}