mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
feat(zfspv) Add golint check to travis (#175)
Signed-off-by: vaniisgh <vanisingh@live.co.uk>
This commit is contained in:
parent
8b7ad5cb45
commit
8bbf3d7d2f
34 changed files with 321 additions and 266 deletions
|
|
@ -26,7 +26,7 @@ import (
|
|||
)
|
||||
|
||||
func xfsTempMount(volume string) error {
|
||||
device := ZFS_DEVPATH + volume
|
||||
device := ZFSDevPath + volume
|
||||
pvol := strings.Split(volume, "/")
|
||||
|
||||
// create a temporary directory to mount the xfs file system
|
||||
|
|
@ -70,8 +70,8 @@ func xfsTempMount(volume string) error {
|
|||
* There might be something there in the xfs log, we have to clear them
|
||||
* so that filesystem is clean and we can generate the UUID for it.
|
||||
*/
|
||||
func xfsGenerateUuid(volume string) error {
|
||||
device := ZFS_DEVPATH + volume
|
||||
func xfsGenerateUUID(volume string) error {
|
||||
device := ZFSDevPath + volume
|
||||
|
||||
// temporary mount the volume with nouuid to replay the logs
|
||||
err := xfsTempMount(volume)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue