- 13 6月, 2015 1 次提交
-
-
This is similar to 'ipfs ls ...', but it: * Lists file sizes that match the content size: $ ipfs --encoding=json unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4 { "Objects": [ { "Argument": "/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4", "Links": [ { "Name": "busybox", "Hash": "QmPbjmmci73roXf9VijpyQGgRJZthiQfnEetaMRGoGYV5a", "Size": 1947624, "Type": 2 } ] } ] } $ ipfs cat /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox | wc -c 1947624 'ipfs ls ...', on the other hand, is using the Merkle-descendant size, which also includes fanout links and the typing information unixfs objects store in their Data: $ ipfs --encoding=json ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4 { "Objects": [ { "Hash": "/ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4", "Links": [ { "Name": "busybox", "Hash": "QmPbjmmci73roXf9VijpyQGgRJZthiQfnEetaMRGoGYV5a", "Size": 1948128, "Type": 2 } ] } ] } * Has a simpler text output corresponding to POSIX ls [1]: $ ipfs unixfs ls /ipfs/QmV2FrBtvue5ve7vxbAzKz3mTdWq8wfMNPwYd8d9KHksCF/gentoo/stage3/amd64/2015-04-02 bin dev etc proc run sys $ ipfs ls /ipfs/QmV2FrBtvue5ve7vxbAzKz3mTdWq8wfMNPwYd8d9KHksCF/gentoo/stage3/amd64/2015-04-02 QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4 1948183 bin/ QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 dev/ QmUz1Z5jnQEjwr78fiMk5babwjJBDmhN5sx5HvPiTGGGjM 1207 etc/ QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 proc/ QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 run/ QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn 4 sys/ The minimal output allows us to start off with POSIX compliance and then add options (which may or may not be POSIX compatible) to adjust the output format as we get a better feel for what we need ([2] through [3]). [1]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ls.html [2]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41724727&page=5 [3]: https://botbot.me/freenode/ipfs/2015-06-12/?msg=41725146&page=5 License: MIT Signed-off-by:W. Trevor King <wking@tremily.us>
由 W. Trevor King 提交于
-
- 12 6月, 2015 4 次提交
-
-
select with context when sending on channels
由 Juan Batiz-Benet 提交于 -
License: MIT Signed-off-by:Jeromy <jeromyj@gmail.com>
由 Jeromy 提交于 -
prevent wantmanager from leaking goroutines (and memory)
由 Juan Batiz-Benet 提交于 -
License: MIT Signed-off-by:Jeromy <jeromyj@gmail.com>
由 Jeromy 提交于
-
- 11 6月, 2015 2 次提交
-
-
License: MIT Signed-off-by:Jeromy <jeromyj@gmail.com>
由 Jeromy 提交于 -
License: MIT Signed-off-by:Jeromy <jeromyj@gmail.com>
由 Jeromy 提交于
-
- 08 6月, 2015 8 次提交
-
-
'key' objects dont marshal to json well
由 Juan Batiz-Benet 提交于 -
由 Jeromy 提交于
-
由 Jeromy 提交于
-
httpGw: make /tcp/0 work
由 Juan Batiz-Benet 提交于 -
由 Henry 提交于
-
also splits api, gw and fuse bring up into helper functions
由 Henry 提交于 -
Better symmetric NAT avoidance.
由 Juan Batiz-Benet 提交于 -
Different mutliaddrs is not enough. Nodes may share transports. NAT port mappings will likely only work on the base IP/TCP port pair. We go one step further, and require different root (IP) addrs. Just in case some NATs group by IP. In practice, this is what we want: use addresses only if hosts that are on different parts of the network have seen this address.
由 Juan Batiz-Benet 提交于
-
- 07 6月, 2015 5 次提交
-
-
If the same peer observed the same address twice, it would be double counted as different observations. This change adds a map to make sure we're counting each observer once. This is easily extended to require more than two observations, but i have not yet encountered NATs for whom this is relevant.
由 Juan Batiz-Benet 提交于 -
Use github.com/chriscool/go-sleep
由 Juan Batiz-Benet 提交于 -
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
fix typo
由 Juan Batiz-Benet 提交于
-
- 06 6月, 2015 3 次提交
-
-
Godeps: update cheggaaa/pb to the latest version
由 Juan Batiz-Benet 提交于 -
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
由 Harlan T Wood 提交于
-
- 05 6月, 2015 1 次提交
-
-
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于
-
- 03 6月, 2015 16 次提交
-
-
make the default repo for corebuilder work
由 Juan Batiz-Benet 提交于 -
由 Jeromy 提交于
-
implement patch command
由 Juan Batiz-Benet 提交于 -
WIP: object creator command better docs move patch command into object namespace dont ignore cancel funcs addressing comment from CR add two new subcommands to object patch and clean up main Run func cancel contexts in early returns switch to util.Key
由 Jeromy 提交于 -
Swap all 'crypto/rand' rng in tests with 'math/rand'
由 Juan Batiz-Benet 提交于 -
ipfs-test-lib: implement test_seq()
由 Juan Batiz-Benet 提交于 -
fix up some dependencies to avoid circular record deps
由 Juan Batiz-Benet 提交于 -
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
License: MIT Signed-off-by:Christian Couder <chriscool@tuxfamily.org>
由 Christian Couder 提交于 -
由 Jeromy 提交于
-
Revert "godeps: update everything to master"
由 Juan Batiz-Benet 提交于 -
由 Jeromy 提交于
-
由 rht 提交于
-
由 rht 提交于
-
Test repeat in 10 sec: increase check frequency tenfold
由 Juan Batiz-Benet 提交于 -
由 rht 提交于
-