mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
refact(pkg): Removes unused import, variables and functions. (#321)
Signed-off-by: Rahul Grover <rahulgrover99@gmail.com>
This commit is contained in:
parent
0e6a02ea74
commit
a8376796b7
7 changed files with 10 additions and 36 deletions
|
|
@ -457,8 +457,7 @@ func CreateClone(vol *apis.ZFSVolume) error {
|
|||
}
|
||||
|
||||
if err := getVolume(volume); err != nil {
|
||||
var args []string
|
||||
args = buildCloneCreateArgs(vol)
|
||||
args := buildCloneCreateArgs(vol)
|
||||
cmd := exec.Command(ZFSVolCmd, args...)
|
||||
out, err := cmd.CombinedOutput()
|
||||
|
||||
|
|
@ -749,7 +748,7 @@ func ResizeZFSVolume(vol *apis.ZFSVolume, mountpath string, resizefs bool) error
|
|||
return err
|
||||
}
|
||||
|
||||
if resizefs == true {
|
||||
if resizefs {
|
||||
// resize the filesystem so that applications can use the expanded space
|
||||
err = handleVolResize(vol, mountpath)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue