github.com/jiasir/docker@v1.3.3-0.20170609024000-252e610103e7/daemon/graphdriver/zfs/zfs_linux.go (about) 1 package zfs 2 3 import ( 4 "fmt" 5 "syscall" 6 7 "github.com/Sirupsen/logrus" 8 "github.com/docker/docker/daemon/graphdriver" 9 ) 10 11 func checkRootdirFs(rootdir string) error { 12 var buf syscall.Statfs_t 13 if err := syscall.Statfs(rootdir, &buf); err != nil { 14 return fmt.Errorf("Failed to access '%s': %s", rootdir, err) 15 } 16 17 if graphdriver.FsMagic(buf.Type) != graphdriver.FsMagicZfs { 18 logrus.Debugf("[zfs] no zfs dataset found for rootdir '%s'", rootdir) 19 return graphdriver.ErrPrerequisites 20 } 21 22 return nil 23 } 24 25 func getMountpoint(id string) string { 26 return id 27 }