-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Filestore Implementation #2634
Commits on Jun 2, 2016
-
In the measure package don't return ErrInvalidType in batch Put.
None of the other methods in the measure package return this error, instead they only call RecordValue() when the value is []byte. This change makes batch Put consistent with the other methods and allows non []byte data to be passed though the measure datastore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 929b49f - Browse repository at this point
Copy the full SHA 929b49fView commit details -
The datastore has an optional "advanced" datastore that handles Put requests for non []byte values, a "normal" datastore that handles all other put requests, and then any number of other datastore, some of them that can be designated read-only. Delete requests are passed on to all datastore not designed read-only. For now, querying will only work on a "normal" datastore. Note: Only tested in the case of just a "normal" datastore and the case of an "advanced" and "normal" datastore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8c1ccf - Browse repository at this point
Copy the full SHA d8c1ccfView commit details -
Create a new AdvReader interface.
Create a new AdvReader interface that returns an ExtraInfo object that contains extra information about the the filehandle. This includes the current offset and the absolute path of a file. Also modify chunk.Splitter to return a Bytes struct in the NextBytes() method that in addition to the raw bytes returns the ExtraInfo object from the AdvReader that contains the current offset in the file (amoung other information). License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a4ffdaf - Browse repository at this point
Copy the full SHA a4ffdafView commit details -
Basic implementation of "add --no-copy".
This involved: 1) Maintaing a DataPtr in merkledag.Node and blocks.Block. The DataPtr points to the location of the data within a file on the file system. It the node is a leaf it also contains an alternative serialization of the Node or Block that does not contain the data. 3) A new datastore "filestore" that stores just the information in DataPtr. When retrieving blocks the Merkle-DAG node is reconstructed from combining AltData with the data from the file in the file system. Because the datastore needs to reconstruct the node it needs access to the Protocol Buffers for "merkledag" and "unixfs" and thus, for now, lives in go-ipfs instead of go-datastore. The filestore uses another datastore to store the protocol buffer encoded DataPtr. By default this is the leveldb datastore, as the size for the encoded DataPtr is small. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f4ad3ba - Browse repository at this point
Copy the full SHA f4ad3baView commit details -
Add basic tests for "add --no-copy".
Note that as per issue ipfs#2259 content is not verified for local retrieval so changing the file content will not always be detected. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 28d18ce - Browse repository at this point
Copy the full SHA 28d18ceView commit details -
When reconstructing block always verify the result.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f3f2e9 - Browse repository at this point
Copy the full SHA 0f3f2e9View commit details -
Add Basic Query and "Direct" commands to filestore. Needs Testing.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7f1bf41 - Browse repository at this point
Copy the full SHA 7f1bf41View commit details -
Save ref to Filestore in repo for future direct access.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc30fa6 - Browse repository at this point
Copy the full SHA cc30fa6View commit details -
Add Self() method to be able to get to FSRepo.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for be4649b - Browse repository at this point
Copy the full SHA be4649bView commit details -
Add "filestore" commands to list contents and verify filestore.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7853241 - Browse repository at this point
Copy the full SHA 7853241View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4fc46db - Browse repository at this point
Copy the full SHA 4fc46dbView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 725fb99 - Browse repository at this point
Copy the full SHA 725fb99View commit details -
Add temp. utility command to find dangling pins.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e1897f - Browse repository at this point
Copy the full SHA 5e1897fView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cc65b61 - Browse repository at this point
Copy the full SHA cc65b61View commit details -
"filestore ls": add "--quiet" option
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4a2807f - Browse repository at this point
Copy the full SHA 4a2807fView commit details -
"filestore verify": change "invalid" status to "changed".
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a7a2e55 - Browse repository at this point
Copy the full SHA a7a2e55View commit details -
Check if the WholeFile flag should be set for leaf nodes in filestore…
….Put. If the dataObj.Offset is zero and the WholeFile flag is not set, check if it should be. That is check if the file size is the same as dataObj.Size, and if it is, set dataObj.WholeFile. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 889f470 - Browse repository at this point
Copy the full SHA 889f470View commit details -
Add "filestore rm-invalid" command.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d028645 - Browse repository at this point
Copy the full SHA d028645View commit details -
"filestore ls": add help text and rework output
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 958e344 - Browse repository at this point
Copy the full SHA 958e344View commit details -
"filestore verify": only verify leaf nodes, add help text
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07a292c - Browse repository at this point
Copy the full SHA 07a292cView commit details -
Add sharness tests for new "filestore" commands.
Add tests for: filestore ls filestore verify filestore rm-invalid filestore rm Also rename t0046-add-no-copy.sh to t0260-filestore.sh. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b0a6468 - Browse repository at this point
Copy the full SHA b0a6468View commit details -
Report an error when trying to use "--no-copy" when daemon is online.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a2610b2 - Browse repository at this point
Copy the full SHA a2610b2View commit details -
Fix bug in LevelDB datastore's Delete() method.
LevelDB Delete() method will not return ErrNotFound so check that the key exists first by calling Has() and return ds.ErrNotFound if Has() returns false. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1203021 - Browse repository at this point
Copy the full SHA 1203021View commit details -
In the filestore, reconstruct the block directly when retrieving.
Use the new function reconstructDirect that will reconstruct the block directly without any intermediate data structures and without performing any unnecessary copies of the block data from the file. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5a89f1 - Browse repository at this point
Copy the full SHA b5a89f1View commit details -
Refactor filestore utility commands.
Move most of the code from core/command/filestore.go into filestore/util.go. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for caf89fb - Browse repository at this point
Copy the full SHA caf89fbView commit details -
Enhance "filestore rm" to give better output.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e20d47 - Browse repository at this point
Copy the full SHA 5e20d47View commit details -
Filestore: Change DataObj struct to use bit flags.
This will simplify adding new flags. Also modify the related Protocol Buffer. The old format will still be recognized for now. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 92170c9 - Browse repository at this point
Copy the full SHA 92170c9View commit details -
Filestore: Only verify contents of block if the file's mod-time has c…
…hanged. In DataObj add two fields: the file's modification time, and a flag to mark the content as invalid. If the modification time of the file is the same as the one in the DataObj, skip validation and return the cached value of the invalid flag. If the modification time differs than recheck the hash of the block and update the modification time and invalid flag accordingly. With this change retrieval of blocks from the filestore is as fast as retrieving a block from the normal datastore. Note that when a block is first added the modification time is unset so the first retrial will be slower since the contents need to be verified. After the first retrieval no additional verification needs to be done until the file changed. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f136fd - Browse repository at this point
Copy the full SHA 8f136fdView commit details -
Filestore: Get the modification time from the file before it is first…
… read. When adding a file to the filestore get the modification time of a file before we read any data from it and use that time to set the initial timestamp in the DataObj. This avoids the need for verifying a file when it is retrieved for the first time. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c7f9757 - Browse repository at this point
Copy the full SHA c7f9757View commit details -
Move filestore utility commands into their own package.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e649788 - Browse repository at this point
Copy the full SHA e649788View commit details -
Redo "filestore verify" to check more than if blocks can be read.
In addition to checking if blocks can be read also check for other problems. (1) For each block representing a file root, check that all the blocks in the merkledag tree can be read and the contents of the file can be reconstructed. (2) Check for orphan nodes, those are nodes that are a child of another node that was not found in the filestore. (3) Check if a file was appended too as the block is still valid but no longer represents the contents of the file. The "missing" status, which was used indicate that the file is not found, is now "no-file" and "missing" is now used to indicate when a block could not be found in the datastore. The original verify behavior is still available by using the "--basic" option. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85cae36 - Browse repository at this point
Copy the full SHA 85cae36View commit details -
New command "filestore clean", replaces obsolete "... rm-invalid" com…
…mand. The new "filestore clean" uses the output of "filestore verify" to remove invalid or useless blocks. The new command can now also removes incomplete or orphan nodes. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebca489 - Browse repository at this point
Copy the full SHA ebca489View commit details -
Add "filestore fix-pins", remove obsolete "filestore find-dangling-pi…
…ns". The new command will repair broken pins by either removing or reconstructing the pin so that invalid blocks are not pinned. If the pin points to a block that no longer exists it is simply removed. If the pin is a recursive pin that points to a valid block but some of the nodes of the merkle tree are invalid the recursive pin is converted to a direct pin and new recursive pins are created for the nodes that are still valid. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d9f3844 - Browse repository at this point
Copy the full SHA d9f3844View commit details -
New command: "filestore repin".
The new command pins any un-pined nodes in a filestore that represent whole files. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 38eb47c - Browse repository at this point
Copy the full SHA 38eb47cView commit details -
Tweak help text for filestore commands.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43bb5f4 - Browse repository at this point
Copy the full SHA 43bb5f4View commit details -
Refactor some of the functionality of Repin into a new walkPins function. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f2fda7 - Browse repository at this point
Copy the full SHA 1f2fda7View commit details -
Rewrite "filestore rm" for greater functionality and to correctly han…
…dle pines. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9022879 - Browse repository at this point
Copy the full SHA 9022879View commit details -
Change "repin" to "unpinned" and just list the unpinned objects.
Just listing the unpinned objects is more flexible. For the old functionally just use something like: ipfs filestore unpinned | xargs ipfs pin add License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f08ea6b - Browse repository at this point
Copy the full SHA f08ea6bView commit details -
"filestore rm": Avoid checking for indirect pins when "--force" is used.
If "--force" is used than indirect pins are ignored so save time and don't check for them in the first place. This will also produce cleaner output when using "filestore clean" as it basically calls "filestore rm --force --direct". License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f97efd - Browse repository at this point
Copy the full SHA 6f97efdView commit details -
New command "filestore rm-dups"
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7db64c4 - Browse repository at this point
Copy the full SHA 7db64c4View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ee9d941 - Browse repository at this point
Copy the full SHA ee9d941View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 70f4453 - Browse repository at this point
Copy the full SHA 70f4453View commit details -
"filestore repin": Add --skip-root option.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53f499f - Browse repository at this point
Copy the full SHA 53f499fView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df10f8e - Browse repository at this point
Copy the full SHA df10f8eView commit details -
Fix a compile error in a test case.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 906320f - Browse repository at this point
Copy the full SHA 906320fView commit details -
Do not use separate absolute Path, just make the FullPath absolute.
In the various components of the "files" package do not store a separate absolute path, just make the FullPath absolute when possible. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9896fa - Browse repository at this point
Copy the full SHA f9896faView commit details -
Add way to add files on the API server's filesystem without sending t…
…he data. If the option API.ServerSideAdds is enabled than the new command "add-ss" will add files to ipfs by sending the filename, rather than the contents of the file, to the API server. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c2df48e - Browse repository at this point
Copy the full SHA c2df48eView commit details -
Filestore: Refactor test cases.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f37c326 - Browse repository at this point
Copy the full SHA f37c326View commit details -
Filestore: Update README and add testcase using new add-ss functionally
With the new "add-ss" command it is now possible to add files to the filestore with the daemon online. Update README to reflect this fact and create some new test cases to test the new functionally. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7991036 - Browse repository at this point
Copy the full SHA 7991036View commit details -
Filestore: Refactor fsutil.List
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4313c4f - Browse repository at this point
Copy the full SHA 4313c4fView commit details -
"filestore rm": Do not delete blocks that are shared with another pin…
…ned node. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2b09cb4 - Browse repository at this point
Copy the full SHA 2b09cb4View commit details -
New command "filestore ls-files"
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d97b42e - Browse repository at this point
Copy the full SHA d97b42eView commit details -
Add Filestore.Verify config option to control when block are verified.
The default value of "ifchanged" and blocks are only verified when the backing file has changed. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ded141 - Browse repository at this point
Copy the full SHA 1ded141View commit details -
Issues now on https://github.com/ipfs-filestore/go-ipfs/issues License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9f689fa - Browse repository at this point
Copy the full SHA 9f689faView commit details -
Configuration menu - View commit details
-
Copy full SHA for f40117f - Browse repository at this point
Copy the full SHA f40117fView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff4ee54 - Browse repository at this point
Copy the full SHA ff4ee54View commit details -
Create an alternative blockstore for use with the filestore.
Restore blockstore, write_cache to original unmodified versions. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for af94888 - Browse repository at this point
Copy the full SHA af94888View commit details -
Factor out filestore specific code from DagServices.
This also eliminate the need for AddOpts and ExtraInfo interface. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3d3b544 - Browse repository at this point
Copy the full SHA 3d3b544View commit details -
Keep track of offsets in the DAG builder and not the splitter.
This completely elements the need for AdvReader and cleans up a lot of other code. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6153f43 - Browse repository at this point
Copy the full SHA 6153f43View commit details -
Filestore: Change FileRoot constant to Internal
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c0fe98f - Browse repository at this point
Copy the full SHA c0fe98fView commit details -
Simplify "multi" datastore. Move logic into filestore's blockstore.
The datastore now only sends Put and Delete requests to the first datastore. Adding to other datastores is done directly. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72fb3c6 - Browse repository at this point
Copy the full SHA 72fb3c6View commit details -
In the fsrepo, provide ways to get sub-datastore by name.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 976635a - Browse repository at this point
Copy the full SHA 976635aView commit details -
Gofmt and clean up diff noise.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 47962cc - Browse repository at this point
Copy the full SHA 47962ccView commit details -
New command "filestore upgrade"
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c82a9cf - Browse repository at this point
Copy the full SHA c82a9cfView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 951df45 - Browse repository at this point
Copy the full SHA 951df45View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 490026c - Browse repository at this point
Copy the full SHA 490026cView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d168f04 - Browse repository at this point
Copy the full SHA d168f04View commit details -
Filestore: res.Request() => req
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d44c892 - Browse repository at this point
Copy the full SHA d44c892View commit details -
"filestore verify": add ability to specify hashes to verify
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fe38b3 - Browse repository at this point
Copy the full SHA 2fe38b3View commit details
Commits on Jun 3, 2016
-
Filestore: Prevent server crash when DataPtr.PosInfo is not set.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd077d3 - Browse repository at this point
Copy the full SHA fd077d3View commit details
Commits on Jun 6, 2016
-
Fix multi-file add so it works as expected.
If neither "-w" or "-r" is specified don't use an mfs-root. Add and pin each file separately. Towards ipfs#2811 License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 293e848 - Browse repository at this point
Copy the full SHA 293e848View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aafc61d - Browse repository at this point
Copy the full SHA aafc61dView commit details -
Filestore: change "add --no-copy" to "filestore add"
Also change "add-ss --no-copy" to "filestore add-ss" and remove "add-ss". The API.ServerSideAdds option is now Filestore.APIServerSidePaths. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b643748 - Browse repository at this point
Copy the full SHA b643748View commit details -
Rework "filestore add" command. Absolute paths now always required.
Rework "filestore add" command to now always accept string arguments for better control on how filenames are handled and eliminate the need for a separate "add-ss" command. For now absolute paths are always required. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0cdf270 - Browse repository at this point
Copy the full SHA 0cdf270View commit details -
Handle errors returned by the splitter in the DAG builder.
Implements: "// TODO: handle err (which wasn't handled either when the splitter was channeled". License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 30a11ce - Browse repository at this point
Copy the full SHA 30a11ceView commit details -
Filestore: Add support for "porcelain" output.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d4f1638 - Browse repository at this point
Copy the full SHA d4f1638View commit details -
Filestore: Add another '-v' level to "filestore verify".
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07376d8 - Browse repository at this point
Copy the full SHA 07376d8View commit details -
Filestore: Allow adds when server is online.
Directory adds not supported yet. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ddf150 - Browse repository at this point
Copy the full SHA 7ddf150View commit details -
Filestore: Don't Store Empty Files in Filestore
Empty files don't have a DataPtr for some reason and thus will cause an error when added to the filestore. So, for now just don't add them to the filestore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3676047 - Browse repository at this point
Copy the full SHA 3676047View commit details -
Filestore: new func CleanPath like filepath.Clean but leaves '..' alone
Use the new function to clean the path before adding it to the filestore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4827fa7 - Browse repository at this point
Copy the full SHA 4827fa7View commit details -
Filestore: Readd support for realtive directories with '-P' and '-l' …
…options. Add the '-P' (--physical) and '-l' (--logical) options to filestore add to create absolute directories from relative ones. The '-P' options uses the physical (no symbolic links) location of the current directory and the '-l' option uses the PWD env. variable if it is available and if it names the current directory. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c449829 - Browse repository at this point
Copy the full SHA c449829View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e69a33a - Browse repository at this point
Copy the full SHA e69a33aView commit details -
Filestore: Add example script. Update README.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6eb4f0d - Browse repository at this point
Copy the full SHA 6eb4f0dView commit details
Commits on Jun 9, 2016
-
Filestore: Use filepath.IsAbs() not path.IsAbs().
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 53cb291 - Browse repository at this point
Copy the full SHA 53cb291View commit details -
Filestore: Fix -P to work as expected on Windows.
Requires some windows specific stubs. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ea3716f - Browse repository at this point
Copy the full SHA ea3716fView commit details -
Filestore: Fix add-dir.sh script
(Accidental deleted some lines before commit.) License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 26416a4 - Browse repository at this point
Copy the full SHA 26416a4View commit details -
Update README to reflect the fact that the filestore has now been tested on Windows. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2bf9260 - Browse repository at this point
Copy the full SHA 2bf9260View commit details
Commits on Jun 12, 2016
-
Filestore: Make sure to explicitly close files to avoid a file handle…
… leak. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0106446 - Browse repository at this point
Copy the full SHA 0106446View commit details
Commits on Jun 13, 2016
-
Move multi-datastore out of go-datastore.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 629803e - Browse repository at this point
Copy the full SHA 629803eView commit details -
Merge remote-tracking branch 'upstream/master' into kevina/filestore
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3bf502 - Browse repository at this point
Copy the full SHA d3bf502View commit details -
Filestore: Eliminate need for DataPtr
Eliminate the need for DataPtr by reconstruct the the Node before sending it to the Filestore. This eliminates the need for some bookkeeping at the cost of doing some unnecessary work further down. Informal test show the performance is about the same. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d5ef180 - Browse repository at this point
Copy the full SHA d5ef180View commit details -
Filestore: Generalize Reconstruct() function
Generalize Reconstruct() function so that either the reference or the optimized version of reconstruct can be used interchangeably. For now the reference implementation is used as the optimized version does not work when blockDataSize == 0. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b454ba0 - Browse repository at this point
Copy the full SHA b454ba0View commit details -
Filestore: Rewrite Optimized version of Reconstruct().
The old version could only handle adding the data component to a protocol buffer encoded node. The new version adds the ability to also remove the data component. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7a64523 - Browse repository at this point
Copy the full SHA 7a64523View commit details -
Store PosInfo in BasicBlock, eliminate NodeToBlock hook in DAGService.
This also eliminates the need for FilestoreBlock License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1135469 - Browse repository at this point
Copy the full SHA 1135469View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e976430 - Browse repository at this point
Copy the full SHA e976430View commit details
Commits on Jun 14, 2016
-
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6ff54cf - Browse repository at this point
Copy the full SHA 6ff54cfView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b5c3561 - Browse repository at this point
Copy the full SHA b5c3561View commit details -
Filestore: Simplify the specialized Blockstore
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 382e1a6 - Browse repository at this point
Copy the full SHA 382e1a6View commit details
Commits on Jun 17, 2016
-
Filestore: Clean up Errors and Command Line help text.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 02a6f2a - Browse repository at this point
Copy the full SHA 02a6f2aView commit details
Commits on Jun 18, 2016
-
Filestore: More Error message cleanup.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cdb8ea5 - Browse repository at this point
Copy the full SHA cdb8ea5View commit details -
Filestore: Clean up Errors and documentation.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9cc988 - Browse repository at this point
Copy the full SHA a9cc988View commit details -
Filestore: Remove spurious ".EnableStdin()."
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 36a9948 - Browse repository at this point
Copy the full SHA 36a9948View commit details
Commits on Jun 19, 2016
-
Filestore: Use LevelDB directly.
Rather than working on top of another generic Datastore, use LevelDB directly. This increase the speed of "ipfs filestore ls" by an order of magnitude. The datastore Query() method adds a lot unnecessary overhead, by allowing filestore_util.List direct access to the database its speed is increased by an order of magnitude when used with a filter function to only list file roots. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 09e3da1 - Browse repository at this point
Copy the full SHA 09e3da1View commit details
Commits on Jul 6, 2016
-
Filestore: Documentation: Change README
License: MIT Signed-off-by: Dominic Della Valle <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a861ad7 - Browse repository at this point
Copy the full SHA a861ad7View commit details
Commits on Aug 4, 2016
-
Merge remote-tracking branch 'upstream/master' into kevina/filestore
Conflicts: commands/cli/parse.go core/coreunix/add.go importer/helpers/helpers.go repo/fsrepo/defaultds.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f82b39e - Browse repository at this point
Copy the full SHA f82b39eView commit details
Commits on Aug 5, 2016
-
Filestore: Enhance "filestore upgrade" to convert keys to base32.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3c3f02c - Browse repository at this point
Copy the full SHA 3c3f02cView commit details
Commits on Aug 19, 2016
-
Merge remote-tracking branch 'upstream/master' into kevina/filestore
Conflicts: blocks/blocks.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ffc5f1 - Browse repository at this point
Copy the full SHA 3ffc5f1View commit details
Commits on Aug 20, 2016
-
Replace the multi-datastore with a multi-blockstore.
Instead of using a multi-datastore, mount each datastore under a different mount point and use a multi-blockstore to check each mount point for the block. The first mount checked of the multi-blockstore is considered the "cache", all others are considered read-only. This implies that the garbage collector only removes block from the first mount. This change also factors out the pinlock from the blockstore into its own structure. Only the multi-datastore now implements the GCBlockstore interface. In the future this could be separated out from the blockstore completely. For now caching is only done on the first mount, in the future this could be reworked. The bloom filter is the most problematic as the read-only mounts are not necessary immutable and can be changed by methods outside of the blockstore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 270e402 - Browse repository at this point
Copy the full SHA 270e402View commit details -
Implement multiblockstore.AllKeysChan(), GC now uses the first mount.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a482ee1 - Browse repository at this point
Copy the full SHA a482ee1View commit details -
Add DAGService.GetLinks() method and use it in the GC and elsewhere.
This method will use the (also new) LinkService if it is available to retrieving just the links for a MerkleDAG without necessary having to retrieve the underlying block. For now the main benefit is that the pinner will not break when a block becomes invalid due to a change in the backing file. This is possible because the metadata for a block (that includes the Links) is stored separately and thus always available even if the backing file changes. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a73226 - Browse repository at this point
Copy the full SHA 5a73226View commit details -
Filestore: Don't pin by default when adding files.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7697929 - Browse repository at this point
Copy the full SHA 7697929View commit details
Commits on Aug 21, 2016
-
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a8f0c9f - Browse repository at this point
Copy the full SHA a8f0c9fView commit details -
Pinner: Providing Pinned.String() method and use it in "block rm"
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8bcc429 - Browse repository at this point
Copy the full SHA 8bcc429View commit details -
Filestore: Simplify "filestore rm" removing pinning commands.
Simplify "filestore rm" to always check pins (to be consistent with "block rm") and to not attempt to remove pins (as it should no longer be necessary as filestore objects are now pinned by default). Also remove the filestore utility commands as they are no longer necessary. "filestore unpinned" is no longer needed as filestore objects will not get garbage collected. "filestore fix-pins" is no longer needed as the pin check is required in "filestore rm", and pinned invalid blocks will no longer break pinning related operations. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c4fefd5 - Browse repository at this point
Copy the full SHA c4fefd5View commit details -
Filestore: Update README to reflect reality.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 75baf15 - Browse repository at this point
Copy the full SHA 75baf15View commit details
Commits on Aug 22, 2016
-
"blockstore rm": move core functionally into blockstore_util package
Also enhance remove command to remove from optionally sub-blockstore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33099b2 - Browse repository at this point
Copy the full SHA 33099b2View commit details -
Filestore: Use "block rm" to remove blocks.
That is replace the specialized "filestore rm" with "block rm" that removes blocks from the from the filestore mount in the blockstore. "filestore clean" also uses the generic "block rm" thereby eliminating the need for the special case removal code in filestore_util. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f9acb13 - Browse repository at this point
Copy the full SHA f9acb13View commit details -
"block/filestore rm": Allow removal of pinned but duplicate blocks.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f68bba7 - Browse repository at this point
Copy the full SHA f68bba7View commit details -
"add": add "--allow-dup" option.
This option adds a files the the primary blockstore even if the block is in another blockstore such as the filestore. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e9ba1fb - Browse repository at this point
Copy the full SHA e9ba1fbView commit details -
Filestore: kill "rm-dups" replace it by a more flexable "dups".
The output of "filestore dups" can be passed into "block rm" to remove duplicates. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 68f7240 - Browse repository at this point
Copy the full SHA 68f7240View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9542730 - Browse repository at this point
Copy the full SHA 9542730View commit details
Commits on Aug 27, 2016
-
Filestore: Fix typos in README.md
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5917f56 - Browse repository at this point
Copy the full SHA 5917f56View commit details -
Filestore: Remove note about managled hashed from README.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 68ece81 - Browse repository at this point
Copy the full SHA 68ece81View commit details -
Filestore: Enhance "filestore ls-files" command.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ec3ac46 - Browse repository at this point
Copy the full SHA ec3ac46View commit details -
Filestore: Add (failing) tests that paths are not modified.
(Note failed test are marked as such) License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0b6dc58 - Browse repository at this point
Copy the full SHA 0b6dc58View commit details -
Revert "Resolve symlink if it is directly referenced in cli (ipfs#2897)"
This reverts commit fe7b01f. Conflicts: commands/cli/parse.go Revert "Merge pull request ipfs#3023 from ipfs/feature/eval-symlink-windows" This reverts commit 16c5a89, reversing changes made to 8c77ff8. Conflicts: commands/cli/parse.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9090771 - Browse repository at this point
Copy the full SHA 9090771View commit details -
Filestore: Path tests now work.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c99d37 - Browse repository at this point
Copy the full SHA 6c99d37View commit details
Commits on Aug 28, 2016
-
Filestore: Output full paths when added.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c3c9b5 - Browse repository at this point
Copy the full SHA 0c3c9b5View commit details -
Bug fix for "Add DAGService.GetLinks() method..."
Bug fix for 5a73226: Kevin Atkinson <[email protected]> 2016-08-19 15:52:27 Add DAGService.GetLinks() method and use it in the GC and elsewhere. Eventually Squash me. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8b396fd - Browse repository at this point
Copy the full SHA 8b396fdView commit details -
Filestore: Add better example script.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d8a17f0 - Browse repository at this point
Copy the full SHA d8a17f0View commit details
Commits on Sep 1, 2016
-
Filestore: Add new verification level, Refactor.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for df3f170 - Browse repository at this point
Copy the full SHA df3f170View commit details -
"filestore verify": adjust porcelain output.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 75e61f3 - Browse repository at this point
Copy the full SHA 75e61f3View commit details -
Filestore: Fix new example script so it is more correct.
That is use the new level of "ipfs verify" to find any broken objects as a change in one backing file can break any number of other objects. Also use access(path,R_OK) on each file before attempting to add it to minimize the possibility of a file not being able to be added. This extra step can likely be removed if "ipfs filestore add" can simply skip files it can't read rather than abort. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12631ee - Browse repository at this point
Copy the full SHA 12631eeView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f4d6a9f - Browse repository at this point
Copy the full SHA f4d6a9fView commit details
Commits on Sep 2, 2016
-
Distinguish between Offline and Local Mode.
This fixes filestore operations when the daemon is started in offline mode. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b34fd9c - Browse repository at this point
Copy the full SHA b34fd9cView commit details
Commits on Sep 3, 2016
-
Filestore: Store empty files in the filestore itself.
Requires some special casing as the actual path to the file in not available. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5fd8d6a - Browse repository at this point
Copy the full SHA 5fd8d6aView commit details -
Filestore: Minor enhancement to example script.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cdb4951 - Browse repository at this point
Copy the full SHA cdb4951View commit details
Commits on Sep 4, 2016
-
Require filestore to be enabled with "filestore enable".
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 83f9ec8 - Browse repository at this point
Copy the full SHA 83f9ec8View commit details
Commits on Sep 7, 2016
-
Blockstore: Minor refactor of RmBlocks.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e2cac2 - Browse repository at this point
Copy the full SHA 5e2cac2View commit details
Commits on Sep 10, 2016
-
Adder: Don't hold the PinLock when not pinning.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ebf86f2 - Browse repository at this point
Copy the full SHA ebf86f2View commit details -
Filestore: Bug fix when adding files in "online" mode.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba8060d - Browse repository at this point
Copy the full SHA ba8060dView commit details
Commits on Sep 15, 2016
-
Filestore: Fix a race condition when updating DataObj
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f342a7 - Browse repository at this point
Copy the full SHA 8f342a7View commit details -
Filestore: Better logic in Update() method
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 84e73c3 - Browse repository at this point
Copy the full SHA 84e73c3View commit details -
Filestore: Fix maintenance commands so they are safe to run Online
And do so while avoiding the need for holding onto locks. Maintenance commands are run on a snapshot of the database that is guaranteed to be in a consistent state. Basically a snapshot is taken before a file is added. To avoid a race condition when deleting a block that has since become valid, the value of the snapshot is compared with the current value in the database and if they don't match then the block is not deleted. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5cd6a93 - Browse repository at this point
Copy the full SHA 5cd6a93View commit details -
Filestore: Remove OrigData from ListRes and use iterators instead
The recent commit "Filestore: Fix a race condition when updating DataObj" introduced a rather serious bug as the bytes returned through a leveldb iterator Value() method could change on the next call to Next() and I was using that result (without making a copy) in a buffered channel. Fix that bug by using Iterators instead when that field is required. Iterators are more efficient than channels anyway. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 38ad631 - Browse repository at this point
Copy the full SHA 38ad631View commit details -
Filestore: Use iterator in VerifyFull. Other refactoring.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e318684 - Browse repository at this point
Copy the full SHA e318684View commit details -
Filestore: Rework list filtering so it also works on verify command.
Refactor filename filtering used by the "ls" command so that filename filtering can also be used by the "verify" command. Other related changes to the filter functions in filestore/util. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 602abc0 - Browse repository at this point
Copy the full SHA 602abc0View commit details -
Filestore: Enhance add-dir.py script to work without cache file.
Old shell should should likely be retired. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c75bca3 - Browse repository at this point
Copy the full SHA c75bca3View commit details -
Filestore: Clarify verify levels, minor refactor
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ac9b1a - Browse repository at this point
Copy the full SHA 3ac9b1aView commit details -
Filestore: Remove unused function.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5238994 - Browse repository at this point
Copy the full SHA 5238994View commit details -
Filestore: Redo "clean" command so it works again and related changes.
The orignal "clean" command worked by doing up to three separate passes and removing problem blocks after each pass. The three-pass approach depended on the blocks being deleted from the previous pass. The change introduced in "Filestore: Fix maintenance commands so they are safe to run Online" broke this by using a single snapshot for all passes. This commit reworks the "verify" command so that the three-pass approach is no longer required. Blocks are now normally only reported "incomplete" when one the child nodes is missing, if a child node is just unreadable the status is now reported as "problem". The flag "incomplete-when" can change this behavior. This change eliminates the need for the second (incomplete) pass. To eliminate the need for the thired (orphan) pass in clean, a new "verify-post-orphan" command is created. This command works like "verify" but in addition checks for orphans that would be created if "incomplete" blocks are removed. Also add more comprehensives tests of the "clean" command to the sharness tests to make sure the "clean" does not break again. Other various changes to the "verify" command including adding of a "--no-obj-info" flag that only reports the status and hash. Also fix special "append" status so that it is reported correctly. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c8950e - Browse repository at this point
Copy the full SHA 4c8950eView commit details -
"filestore clean": Avoid blocking while holidng the GCLock
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c515ca0 - Browse repository at this point
Copy the full SHA c515ca0View commit details -
Filestore: Bug fix to example script.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c27121b - Browse repository at this point
Copy the full SHA c27121bView commit details -
"block rm": Just return "error" in ProcRmOutput.
The RmError structure is no longer needed. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f6a43a - Browse repository at this point
Copy the full SHA 4f6a43aView commit details -
"block rm": Document RemovedBlock, rename CheckPins to FilterPinned.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5ab877b - Browse repository at this point
Copy the full SHA 5ab877bView commit details
Commits on Sep 16, 2016
-
Filestore: Rename example script. Update README. Document Filestore.V…
…erify. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9871144 - Browse repository at this point
Copy the full SHA 9871144View commit details -
Adder: Make sure errors from addAllAndPin make it to the client
Before the error would be printed by the daemon but not make it to the client. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15e6ec7 - Browse repository at this point
Copy the full SHA 15e6ec7View commit details -
Filestore: Fail cleanly when adding symlinks with daemon running.
Before adding a symlink could crash the daemon. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6857aec - Browse repository at this point
Copy the full SHA 6857aecView commit details
Commits on Sep 22, 2016
-
Merge commit '19779b3707827355f3b9d6c5fbd17e924ea42e91' into kevina/f…
…ilestore Conflicts: core/builder.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4cf2e8c - Browse repository at this point
Copy the full SHA 4cf2e8cView commit details -
Merge commit '8ffab98d55628cf590f363ab203da2d4ba160ba2' into kevina/f…
…ilestore Conflicts: core/commands/add.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43bdd07 - Browse repository at this point
Copy the full SHA 43bdd07View commit details -
Merge commit '8830aae9bcef257b11401b7c9e834a3aa107386a' into kevina/f…
…ilestore Conflicts: core/builder.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 580fb9f - Browse repository at this point
Copy the full SHA 580fb9fView commit details -
Merge commit '531b89abc980d2a0080baa0baa0b41638e559b3a' into kevina/f…
…ilestore Conflicts: core/commands/block.go repo/fsrepo/defaultds.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 157055b - Browse repository at this point
Copy the full SHA 157055bView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7728d47 - Browse repository at this point
Copy the full SHA 7728d47View commit details -
Merge branch 'blockservice-fix' into kevina/filestore
Conflicts: blocks/blockstore/blockstore.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 97f1ca2 - Browse repository at this point
Copy the full SHA 97f1ca2View commit details
Commits on Sep 23, 2016
-
Merge commit '87ecb92fceb58497268f7460ac1c877a97b056df' into blockser…
…vice-fix Conflicts: blocks/blockstore/blockstore.go blockservice/blockservice.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43d7d8e - Browse repository at this point
Copy the full SHA 43d7d8eView commit details -
Merge branch 'blockservice-fix' into kevina/filestore
Conflicts: blocks/blocks.go blocks/blockstore/blockstore.go blocks/blockstore/util/remove.go core/builder.go core/commands/block.go core/commands/pin.go core/coreunix/add.go core/coreunix/add_test.go merkledag/merkledag.go merkledag/merkledag_test.go merkledag/node.go pin/gc/gc.go pin/pin.go repo/fsrepo/defaultds.go unixfs/mod/dagmodifier_test.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9709cb5 - Browse repository at this point
Copy the full SHA 9709cb5View commit details -
Merge remote-tracking branch 'upstream/master' into kevina/filestore
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3f6214b - Browse repository at this point
Copy the full SHA 3f6214bView commit details
Commits on Sep 25, 2016
-
Run gofmt on some files, other diff noise cleanup.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f478548 - Browse repository at this point
Copy the full SHA f478548View commit details
Commits on Oct 14, 2016
-
Don't use a separate LinkService for DAGService.GetLinks()
Instead make LinkService a part of DAGService. The LinkService is now simply an interface that DAGService implements. Also provide a GetOfflineLinkService() method that the GC uses to get an offline instance. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 73130fe - Browse repository at this point
Copy the full SHA 73130feView commit details -
Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mda…
…g.Link Author: Kevin Atkinson <[email protected]> Fix EnumerateChildren & hasChild to take a *cid.Cid instead of []*mdag.Link Author: Jeromy Johnson <[email protected]> make FetchGraph use a cid pin: fix TestPinRecursiveFail License: MIT Signed-off-by: Jeromy <[email protected]> License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3af102a - Browse repository at this point
Copy the full SHA 3af102aView commit details -
Revert "Adder: Make sure errors from addAllAndPin make it to the client"
This reverts commit 15e6ec7. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 739e27c - Browse repository at this point
Copy the full SHA 739e27cView commit details
Commits on Oct 15, 2016
-
This reverts commit 7728d47 Undoes: bitswap: redo: don't re-provide blocks we've provided very recently Breaks lots of filestore tests, need fixing. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24cff3a - Browse repository at this point
Copy the full SHA 24cff3aView commit details -
Merge remote-tracking branch 'upstream/master' into kevina/filestore
This also involved fixing the filestore code to use Cids. Conflicts: blocks/blocks.go blocks/blockstore/blockstore.go blocks/blockstore/blockstore_test.go core/builder.go core/commands/block.go core/commands/dht.go core/core.go importer/helpers/helpers.go merkledag/merkledag.go merkledag/node.go pin/gc/gc.go repo/fsrepo/fsrepo.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a855ab3 - Browse repository at this point
Copy the full SHA a855ab3View commit details -
Filestore: Use the new write-though block service.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e74f619 - Browse repository at this point
Copy the full SHA e74f619View commit details -
Filestore: Disable config.Filestore.APIServerSidePaths for now.
Disable config.Filestore.APIServerSidePaths for now due to security concerns. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 241d10d - Browse repository at this point
Copy the full SHA 241d10dView commit details
Commits on Oct 17, 2016
-
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51f71e1 - Browse repository at this point
Copy the full SHA 51f71e1View commit details -
Clarify reason for Has() in Put() in MultiBlockstore.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0e045c6 - Browse repository at this point
Copy the full SHA 0e045c6View commit details -
In NewBlockstoreWPrefix don't assume "" is the default value.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5c3b48b - Browse repository at this point
Copy the full SHA 5c3b48bView commit details -
Add test that PosInfo() is getting set.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3d0f2e0 - Browse repository at this point
Copy the full SHA 3d0f2e0View commit details -
blockstore: use helper func to convert from Cid to DsKey and the reverse
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba807ea - Browse repository at this point
Copy the full SHA ba807eaView commit details -
Adder: Disallow adding multiple directories unless "-w" is used.
Adding multiple directories without "-w" will not produce the expected result, so for now it is best to disallow it. This also added a NumFiles() method to SliceFile. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3f0a59 - Browse repository at this point
Copy the full SHA d3f0a59View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85908c2 - Browse repository at this point
Copy the full SHA 85908c2View commit details -
Filestore: Accommodate systems without sub-second mod-times in tests
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 15fa70a - Browse repository at this point
Copy the full SHA 15fa70aView commit details -
Filestore: bug fix, go 'case' does not fall-through
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a32f091 - Browse repository at this point
Copy the full SHA a32f091View commit details -
Filestore: Change the default value of Filestore.Verify to 'Always'
The previous default of 'IfChanged' can be unreliable on MacOS as it does not have sub-second mod-times. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b9ad427 - Browse repository at this point
Copy the full SHA b9ad427View commit details -
Filestore: Verify level 6 behavior now depends on Filestore.Verify
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db6c9e8 - Browse repository at this point
Copy the full SHA db6c9e8View commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 97933ac - Browse repository at this point
Copy the full SHA 97933acView commit details -
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2c58788 - Browse repository at this point
Copy the full SHA 2c58788View commit details
Commits on Nov 4, 2016
-
Merge remote-tracking branch 'upstream/kevina/posinfo-2' into kevina/…
…filestore Conflicts: blocks/blockstore/blockstore.go blocks/blockstore/blockstore_test.go commands/files/file.go core/commands/add.go core/coreunix/add.go core/coreunix/add_test.go importer/balanced/builder.go importer/helpers/dagbuilder.go importer/helpers/helpers.go merkledag/node.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d283e7e - Browse repository at this point
Copy the full SHA d283e7eView commit details -
Gofmt and other diff noise cleanup.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 85f1089 - Browse repository at this point
Copy the full SHA 85f1089View commit details -
Filestore: Support Raw Blocks.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9e6636d - Browse repository at this point
Copy the full SHA 9e6636dView commit details -
Merge remote-tracking branch 'upstream/master' into kevina/filestore
Conflicts: blocks/blockstore/blockstore.go core/builder.go core/core.go License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f080bdb - Browse repository at this point
Copy the full SHA f080bdbView commit details -
Filestore: Enable default LevelDB Compression By Default
It can be disabled with the Filestore.NoDDBCompression option. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0313956 - Browse repository at this point
Copy the full SHA 0313956View commit details -
Filestore: Move custom version of filepath.Clean() into its own package.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 77bf0c3 - Browse repository at this point
Copy the full SHA 77bf0c3View commit details -
Filestore: Use the CidToDsKey form ds-help package.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f3d5399 - Browse repository at this point
Copy the full SHA f3d5399View commit details
Commits on Nov 7, 2016
-
Filestore: Implement Key struct for future multi DataObj per hash sup…
…port. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a2b2a0 - Browse repository at this point
Copy the full SHA 3a2b2a0View commit details -
Filestore: Move snapshot related code into its own file.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b028088 - Browse repository at this point
Copy the full SHA b028088View commit details -
Filestore: Remove support for old format and Upgrade command.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c69cd67 - Browse repository at this point
Copy the full SHA c69cd67View commit details -
Filestore: Prep work for multi DataObj per hash support.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cdd0b69 - Browse repository at this point
Copy the full SHA cdd0b69View commit details -
Filestore: Enhance Key structure.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b0e2d0d - Browse repository at this point
Copy the full SHA b0e2d0dView commit details -
Filestore: Basic support for multiple DataObjs per hash
Some Filestore clean operations are broken. Needs more tests. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4bd48f8 - Browse repository at this point
Copy the full SHA 4bd48f8View commit details -
Filestore: Fix maintenance commands.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4da34e4 - Browse repository at this point
Copy the full SHA 4da34e4View commit details -
Filestore: Remove seperate veirfy-post-orphan command.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d292b8 - Browse repository at this point
Copy the full SHA 6d292b8View commit details -
Filestore: enhance "ls" and "verify" command
Add --full-key option to "filestore ls" command. Add "ls" format option to "filestore verify". License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dfc5342 - Browse repository at this point
Copy the full SHA dfc5342View commit details -
Filestore: Enhance "rm" command.
Also fix bug discovered in "verify". License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4bd3d40 - Browse repository at this point
Copy the full SHA 4bd3d40View commit details -
Filestore: Documentation updates and improvements.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 12d62f4 - Browse repository at this point
Copy the full SHA 12d62f4View commit details -
Filestore "ls": Enhance "w/type" format.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c64c0e6 - Browse repository at this point
Copy the full SHA c64c0e6View commit details -
Filestore: Improve shareness test descriptions.
License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ae0f4a9 - Browse repository at this point
Copy the full SHA ae0f4a9View commit details -
Revert "Filestore: Disable config.Filestore.APIServerSidePaths for now."
This reverts commit 241d10d. License: MIT Signed-off-by: Kevin Atkinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9215a1e - Browse repository at this point
Copy the full SHA 9215a1eView commit details