5 Commits
Author SHA1 Message Date
William Douglas e999af5e5b Fixup gofmt errors 2022-11-03 09:14:37 -07:00
Mark D Horn 46d525b565 storage: Use lsblk data for device path
Do not assume the path is /dev/<name>, use parsed path
from the output of lsblk.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-06-24 09:08:59 -07:00
Mark D Horn 59302346d6 linter: enable whitespace
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-04-24 14:53:17 -07:00
Mark D Horn 2885e8ed44 lint: Only ignore the few problem functions
Instead of skipping whole files, just exclude the few
complex functions.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2020-03-31 19:51:47 -07:00
Karthik Prabhu Vinod d67c1ab57c Refactor storage code
a.) Break storage code into smaller readable units with each structure
and operations around it in the same file
b.) Remove commented code
c.) Rename storage.go, storage.go to
block_devices.go
block_devices_ops.go respectively
d.) Remove unused function FreeSpace

Signed-off-by: Karthik Prabhu Vinod <karthik.prabhu.vinod@intel.com>
2020-03-31 18:30:45 -07:00