chore(refactor): Remove MountInfo struct from api (#225)

Signed-off-by: Gagandeep Singh <codegagan@gmail.com>
This commit is contained in:
Gagandeep Singh 2020-10-11 22:29:23 -07:00 committed by GitHub
parent 55a155c4a5
commit 3da4f7308e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32 additions and 104 deletions

View file

@ -91,8 +91,8 @@ func NewNode(d *CSIDriver) csi.NodeServer {
// GetVolAndMountInfo get volume and mount info from node csi volume request
func GetVolAndMountInfo(
req *csi.NodePublishVolumeRequest,
) (*apis.ZFSVolume, *apis.MountInfo, error) {
var mountinfo apis.MountInfo
) (*apis.ZFSVolume, *zfs.MountInfo, error) {
var mountinfo zfs.MountInfo
mountinfo.FSType = req.GetVolumeCapability().GetMount().GetFsType()
mountinfo.MountPath = req.GetTargetPath()