Check if the target loopback is a block device

This commit is contained in:
Guillaume J. Charmes
2013-11-27 18:21:17 -08:00
parent 1214b8897b
commit 8a5d927a53
2 changed files with 7 additions and 5 deletions
+4 -3
View File
@@ -46,9 +46,10 @@ const (
sysSysIoctl = syscall.SYS_IOCTL
sysEBusy = syscall.EBUSY
osORdOnly = os.O_RDONLY
osORdWr = os.O_RDWR
osOCreate = os.O_CREATE
osORdOnly = os.O_RDONLY
osORdWr = os.O_RDWR
osOCreate = os.O_CREATE
osModeDevice = os.ModeDevice
)
func toSysStatT(i interface{}) *sysStatT {