aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/fuse
diff options
context:
space:
mode:
authorViktor TrĂ³n <viktor.tron@gmail.com>2018-07-24 14:44:43 +0800
committerGitHub <noreply@github.com>2018-07-24 14:44:43 +0800
commitb536460f8e4166e1a884fd30290b56a85289503f (patch)
tree4630a130bad7ec02412a6df673313d2fbac71893 /swarm/fuse
parentafd8b847060eed094cd7c6e0d133338a33cf4631 (diff)
parent14bdcdeab448885d22e516933f59096311c19672 (diff)
downloaddexon-b536460f8e4166e1a884fd30290b56a85289503f.tar
dexon-b536460f8e4166e1a884fd30290b56a85289503f.tar.gz
dexon-b536460f8e4166e1a884fd30290b56a85289503f.tar.bz2
dexon-b536460f8e4166e1a884fd30290b56a85289503f.tar.lz
dexon-b536460f8e4166e1a884fd30290b56a85289503f.tar.xz
dexon-b536460f8e4166e1a884fd30290b56a85289503f.tar.zst
dexon-b536460f8e4166e1a884fd30290b56a85289503f.zip
Merge pull request #17231 from ethersphere/develop
swarm: client-side MRU signatures ; BMT fixes ; network simulation tests
Diffstat (limited to 'swarm/fuse')
-rw-r--r--swarm/fuse/swarmfs_unix.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/swarm/fuse/swarmfs_unix.go b/swarm/fuse/swarmfs_unix.go
index 7a913b0de..9ff55cc32 100644
--- a/swarm/fuse/swarmfs_unix.go
+++ b/swarm/fuse/swarmfs_unix.go
@@ -120,6 +120,10 @@ func (swarmfs *SwarmFS) Mount(mhash, mountpoint string) (*MountInfo, error) {
log.Trace("swarmfs mount: traversing manifest map")
for suffix, entry := range manifestEntryMap {
+ if suffix == "" { //empty suffix means that the file has no name - i.e. this is the default entry in a manifest. Since we cannot have files without a name, let us ignore this entry
+ log.Warn("Manifest has an empty-path (default) entry which will be ignored in FUSE mount.")
+ continue
+ }
addr := common.Hex2Bytes(entry.Hash)
fullpath := "/" + suffix
basepath := filepath.Dir(fullpath)