Fix s3ql unmount
This commit is contained in:
parent
8cd8f6b6cd
commit
b412e81977
4 changed files with 5 additions and 8 deletions
pkg/s3
|
@ -105,14 +105,14 @@ func (ns *nodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpu
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
mounter.Unmount(req.GetTargetPath())
|
||||
if err != nil {
|
||||
if err := mounter.Unmount(req.GetTargetPath()); err != nil {
|
||||
return nil, status.Error(codes.Internal, err.Error())
|
||||
}
|
||||
glog.V(4).Infof("s3: bucket %s has been unmounted.", req.GetVolumeId())
|
||||
|
||||
return &csi.NodeUnpublishVolumeResponse{}, nil
|
||||
}
|
||||
|
||||
func (ns *nodeServer) NodeStageVolume(
|
||||
ctx context.Context,
|
||||
req *csi.NodeStageVolumeRequest) (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue