aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/swarm.go
diff options
context:
space:
mode:
authorZahoor Mohamed <zahoor@zahoor.in>2017-04-12 08:06:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-04-12 08:06:02 +0800
commit1d1d988aa7caf60d6769bb474d4ec2f872eaaad4 (patch)
tree87ce615cd260871466fc1862994123848059b861 /swarm/swarm.go
parentdd37064a151a1333b79f2fcde097ebc530d895a3 (diff)
downloadgo-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/swarm.go')
-rw-r--r--swarm/swarm.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/swarm/swarm.go b/swarm/swarm.go
index 5a7f43f8b..eedac93f3 100644
--- a/swarm/swarm.go
+++ b/swarm/swarm.go
@@ -34,6 +34,7 @@ import (
"github.com/ethereum/go-ethereum/rpc"
"github.com/ethereum/go-ethereum/swarm/api"
httpapi "github.com/ethereum/go-ethereum/swarm/api/http"
+ "github.com/ethereum/go-ethereum/swarm/fuse"
"github.com/ethereum/go-ethereum/swarm/network"
"github.com/ethereum/go-ethereum/swarm/storage"
)
@@ -54,7 +55,7 @@ type Swarm struct {
corsString string
swapEnabled bool
lstore *storage.LocalStore // local store, needs to store for releasing resources after node stopped
- sfs *api.SwarmFS // need this to cleanup all the active mounts on node exit
+ sfs *fuse.SwarmFS // need this to cleanup all the active mounts on node exit
}
type SwarmAPI struct {
@@ -143,7 +144,7 @@ func NewSwarm(ctx *node.ServiceContext, backend chequebook.Backend, config *api.
// Manifests for Smart Hosting
log.Debug(fmt.Sprintf("-> Web3 virtual server API"))
- self.sfs = api.NewSwarmFS(self.api)
+ self.sfs = fuse.NewSwarmFS(self.api)
log.Debug("-> Initializing Fuse file system")
return self, nil
@@ -262,7 +263,7 @@ func (self *Swarm) APIs() []rpc.API {
},
{
Namespace: "swarmfs",
- Version: api.Swarmfs_Version,
+ Version: fuse.Swarmfs_Version,
Service: self.sfs,
Public: false,
},