mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
feat(zfspv): move to klog (#166)
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
This commit is contained in:
parent
54f2b0b9fd
commit
d0d1664d43
53 changed files with 124 additions and 2991 deletions
|
|
@ -17,10 +17,11 @@ limitations under the License.
|
|||
package zfs
|
||||
|
||||
import (
|
||||
"github.com/Sirupsen/logrus"
|
||||
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
|
||||
"k8s.io/kubernetes/pkg/util/mount"
|
||||
"os/exec"
|
||||
|
||||
apis "github.com/openebs/zfs-localpv/pkg/apis/openebs.io/zfs/v1"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/kubernetes/pkg/util/mount"
|
||||
)
|
||||
|
||||
// ResizeExtn can be used to run a resize command on the ext2/3/4 filesystem
|
||||
|
|
@ -29,7 +30,7 @@ func ResizeExtn(devpath string) error {
|
|||
cmd := exec.Command("resize2fs", devpath)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
logrus.Errorf("zfspv: ResizeExtn failed error: %s", string(out))
|
||||
klog.Errorf("zfspv: ResizeExtn failed error: %s", string(out))
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
@ -41,7 +42,7 @@ func ResizeXFS(path string) error {
|
|||
cmd := exec.Command("xfs_growfs", path)
|
||||
out, err := cmd.CombinedOutput()
|
||||
if err != nil {
|
||||
logrus.Errorf("zfspv: ResizeXFS failed error: %s", string(out))
|
||||
klog.Errorf("zfspv: ResizeXFS failed error: %s", string(out))
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue