You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Have `${DataDir}/bzzd.ipc` as IPC path default.
- Respect the `--datadir` flag.
- Keep only the global `--ipcpath` flag and drop the local `--ipcpath` flag
as flags might overwrite each other. (Note: before global `--ipcpath`
was ignored even if it was set)
fixes ethersphere#795
Copy file name to clipboardExpand all lines: cmd/swarm/fs.go
+17-19Lines changed: 17 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ import (
24
24
"time"
25
25
26
26
"github.com/ethereum/go-ethereum/cmd/utils"
27
-
"github.com/ethereum/go-ethereum/node"
27
+
"github.com/ethereum/go-ethereum/log"
28
28
"github.com/ethereum/go-ethereum/rpc"
29
29
"github.com/ethereum/go-ethereum/swarm/fuse"
30
30
"gopkg.in/urfave/cli.v1"
@@ -41,27 +41,24 @@ var fsCommand = cli.Command{
41
41
Action: mount,
42
42
CustomHelpTemplate: helpTemplate,
43
43
Name: "mount",
44
-
Flags: []cli.Flag{utils.IPCPathFlag},
45
44
Usage: "mount a swarm hash to a mount point",
46
-
ArgsUsage: "swarm fs mount --ipcpath <path to bzzd.ipc> <manifest hash> <mount point>",
45
+
ArgsUsage: "swarm fs mount <manifest hash> <mount point>",
47
46
Description: "Mounts a Swarm manifest hash to a given mount point. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
48
47
},
49
48
{
50
49
Action: unmount,
51
50
CustomHelpTemplate: helpTemplate,
52
51
Name: "unmount",
53
-
Flags: []cli.Flag{utils.IPCPathFlag},
54
52
Usage: "unmount a swarmfs mount",
55
-
ArgsUsage: "swarm fs unmount --ipcpath <path to bzzd.ipc> <mount point>",
53
+
ArgsUsage: "swarm fs unmount <mount point>",
56
54
Description: "Unmounts a swarmfs mount residing at <mount point>. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
57
55
},
58
56
{
59
57
Action: listMounts,
60
58
CustomHelpTemplate: helpTemplate,
61
59
Name: "list",
62
-
Flags: []cli.Flag{utils.IPCPathFlag},
63
60
Usage: "list swarmfs mounts",
64
-
ArgsUsage: "swarm fs list --ipcpath <path to bzzd.ipc>",
61
+
ArgsUsage: "swarm fs list",
65
62
Description: "Lists all mounted swarmfs volumes. This assumes you already have a Swarm node running locally. You must reference the correct path to your bzzd.ipc file",
66
63
},
67
64
},
@@ -70,7 +67,7 @@ var fsCommand = cli.Command{
70
67
funcmount(cliContext*cli.Context) {
71
68
args:=cliContext.Args()
72
69
iflen(args) <2 {
73
-
utils.Fatalf("Usage: swarm fs mount --ipcpath <path to bzzd.ipc> <manifestHash> <file name>")
70
+
utils.Fatalf("Usage: swarm fs mount <manifestHash> <file name>")
0 commit comments