mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
chore(refactor): move xfs and mount code out of zfs package
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
935a544538
commit
d537bd3655
5 changed files with 86 additions and 59 deletions
|
|
@ -27,6 +27,7 @@ import (
|
|||
"github.com/openebs/zfs-localpv/pkg/mgmt/restore"
|
||||
"github.com/openebs/zfs-localpv/pkg/mgmt/snapshot"
|
||||
"github.com/openebs/zfs-localpv/pkg/mgmt/volume"
|
||||
"github.com/openebs/zfs-localpv/pkg/mount"
|
||||
"github.com/openebs/zfs-localpv/pkg/zfs"
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/sys/unix"
|
||||
|
|
@ -349,7 +350,7 @@ func (ns *node) NodeGetVolumeStats(
|
|||
return nil, status.Error(codes.InvalidArgument, "path is not provided")
|
||||
}
|
||||
|
||||
if zfs.IsMountPath(path) == false {
|
||||
if mount.IsMountPath(path) == false {
|
||||
return nil, status.Error(codes.InvalidArgument, "path is not a mount path")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue