@@ -41,7 +41,9 @@ func NewNFSDriver(root string, version int, options string) nfsDriver {
4141}
4242
4343func (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
5355func (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
5860func (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
6367func (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
6874func (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
7379func (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
98105func (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
132141func (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