github.com/wallyworld/juju@v0.0.0-20161013125918-6cf1bc9d917a/worker/diskmanager/diskmanager_unsupported.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // +build !linux 5 6 package diskmanager 7 8 import ( 9 "runtime" 10 11 "github.com/juju/juju/storage" 12 ) 13 14 var blockDeviceInUse = func(storage.BlockDevice) (bool, error) { 15 panic("not supported") 16 } 17 18 func listBlockDevices() ([]storage.BlockDevice, error) { 19 // Return an empty list each time. 20 return nil, nil 21 } 22 23 func init() { 24 logger.Infof( 25 "block device support has not been implemented for %s", 26 runtime.GOOS, 27 ) 28 DefaultListBlockDevices = listBlockDevices 29 }