Skip to content

Commit 8b30765

Browse files
committed
release version 0.14
1 parent 7201cbb commit 8b30765

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = 0.13
1+
VERSION = 0.14
22
GO_FMT = gofmt -s -w -l .
33
GO_XC = goxc -os="linux" -tasks-="rmbin"
44

@@ -31,4 +31,4 @@ bintray:
3131
$(GO_XC) bintray
3232

3333
github:
34-
$(GO_XC) publish-github
34+
$(GO_XC) publish-github

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ The method below will install the sysvinit and /etc/default options that can be
3636
1. Install the Package
3737

3838
```
39-
$ wget https://github.com/gondor/docker-volume-netshare/releases/download/v0.13/docker-volume-netshare_0.13_amd64.deb
40-
$ sudo dpkg -i docker-volume-netshare_0.13_amd64.deb
39+
$ wget https://github.com/gondor/docker-volume-netshare/releases/download/v0.14/docker-volume-netshare_0.14_amd64.deb
40+
$ sudo dpkg -i docker-volume-netshare_0.14_amd64.deb
4141
```
4242

4343
2. Modify the startup options in `/etc/default/docker-volume-netshare`

netshare/drivers/nfs.go

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ func NewNFSDriver(root string, version int, options string) nfsDriver {
4141
}
4242

4343
func (n nfsDriver) Create(r volume.Request) volume.Response {
44-
log.Debugf("Create: %s, %v", r.Name, r.Options)
44+
log.Debugf("Entering Create: name: %s, options %v", r.Name, r.Options)
45+
46+
log.Debugf("Create volume -> name: %s, %v", r.Name, r.Options)
4547
dest := mountpoint(n.root, r.Name)
4648
if err := createDest(dest); err != nil {
4749
return volume.Response{Err: err.Error()}
@@ -51,26 +53,31 @@ func (n nfsDriver) Create(r volume.Request) volume.Response {
5153
}
5254

5355
func (n nfsDriver) Remove(r volume.Request) volume.Response {
54-
log.Debugf("Removing volume %s", r.Name)
56+
log.Debugf("Entering REmove: name: %s, options %v", r.Name, r.Options)
5557
return volume.Response{}
5658
}
5759

5860
func (n nfsDriver) Path(r volume.Request) volume.Response {
61+
log.Debugf("Entering Path: %v", r)
62+
5963
log.Debugf("Path for %s is at %s", r.Name, mountpoint(n.root, r.Name))
6064
return volume.Response{Mountpoint: mountpoint(n.root, r.Name)}
6165
}
6266

6367
func (s nfsDriver) Get(r volume.Request) volume.Response {
68+
log.Debugf("Entering Get: %v", r)
69+
6470
log.Debugf("Get for %s is at %s", r.Name, mountpoint(s.root, r.Name))
6571
return volume.Response{Volume: &volume.Volume{Name: r.Name, Mountpoint: mountpoint(s.root, r.Name)}}
6672
}
6773

6874
func (s nfsDriver) List(r volume.Request) volume.Response {
69-
log.Debugf("List Volumes")
75+
log.Debugf("Entering List: %v", r)
7076
return volume.Response{Volumes: s.mountm.GetVolumes(s.root)}
7177
}
7278

7379
func (n nfsDriver) Mount(r volume.Request) volume.Response {
80+
log.Debugf("Entering Mount: %v", r)
7481
n.m.Lock()
7582
defer n.m.Unlock()
7683
dest := mountpoint(n.root, r.Name)
@@ -96,6 +103,8 @@ func (n nfsDriver) Mount(r volume.Request) volume.Response {
96103
}
97104

98105
func (n nfsDriver) Unmount(r volume.Request) volume.Response {
106+
log.Debugf("Entering Unmount: %v", r)
107+
99108
n.m.Lock()
100109
defer n.m.Unlock()
101110
dest := mountpoint(n.root, r.Name)
@@ -130,8 +139,6 @@ func (n nfsDriver) fixSource(name string) string {
130139
}
131140

132141
func (n nfsDriver) mountVolume(source, dest string, version int) error {
133-
log.Debugf("Enter mountVolume")
134-
135142
var cmd string
136143

137144
options := n.mountOptions(n.mountm.GetOptions(dest))

0 commit comments

Comments
 (0)