diff options
author | Zahoor Mohamed <zahoor@zahoor.in> | 2017-04-12 08:06:02 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-04-12 08:06:02 +0800 |
commit | 1d1d988aa7caf60d6769bb474d4ec2f872eaaad4 (patch) | |
tree | 87ce615cd260871466fc1862994123848059b861 /swarm/api/manifest.go | |
parent | dd37064a151a1333b79f2fcde097ebc530d895a3 (diff) | |
download | go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.gz go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.bz2 go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.lz go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.xz go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.tar.zst go-tangerine-1d1d988aa7caf60d6769bb474d4ec2f872eaaad4.zip |
swarm/api: FUSE read-write support (#13872)
- Moved fuse related code in a new package, swarm/fuse
- Added write support
- Create new files
- Delete existing files
- Append to files (with limitations)
- More test coverage
Diffstat (limited to 'swarm/api/manifest.go')
-rw-r--r-- | swarm/api/manifest.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swarm/api/manifest.go b/swarm/api/manifest.go index 6b3630fd0..dbaaf4bff 100644 --- a/swarm/api/manifest.go +++ b/swarm/api/manifest.go @@ -162,7 +162,7 @@ func (m *ManifestWalker) walk(trie *manifestTrie, prefix string, walkFn WalkFn) type manifestTrie struct { dpa *storage.DPA - entries [257]*manifestTrieEntry // indexed by first character of path, entries[256] is the empty path entry + entries [257]*manifestTrieEntry // indexed by first character of basePath, entries[256] is the empty basePath entry hash storage.Key // if hash != nil, it is stored } @@ -340,6 +340,7 @@ func (self *manifestTrie) recalcAndStore() error { } list.Entries = append(list.Entries, entry.ManifestEntry) } + } manifest, err := json.Marshal(list) |