|
@@ -116,19 +116,6 @@ func parseOptions(opt []string) (ZfsOptions, error) {
|
|
|
return options, nil
|
|
|
}
|
|
|
|
|
|
-func checkRootdirFs(rootdir string) error {
|
|
|
- var buf syscall.Statfs_t
|
|
|
- if err := syscall.Statfs(rootdir, &buf); err != nil {
|
|
|
- return fmt.Errorf("Failed to access '%s': %s", rootdir, err)
|
|
|
- }
|
|
|
-
|
|
|
- if graphdriver.FsMagic(buf.Type) != graphdriver.FsMagicZfs {
|
|
|
- log.Debugf("[zfs] no zfs dataset found for rootdir '%s'", rootdir)
|
|
|
- return graphdriver.ErrPrerequisites
|
|
|
- }
|
|
|
- return nil
|
|
|
-}
|
|
|
-
|
|
|
func lookupZfsDataset(rootdir string) (string, error) {
|
|
|
var stat syscall.Stat_t
|
|
|
if err := syscall.Stat(rootdir, &stat); err != nil {
|