github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/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 "github.com/juju/juju/storage" 10 "github.com/juju/juju/version" 11 ) 12 13 var blockDeviceInUse = func(storage.BlockDevice) (bool, error) { 14 panic("not supported") 15 } 16 17 func listBlockDevices() ([]storage.BlockDevice, error) { 18 // Return an empty list each time. 19 return nil, nil 20 } 21 22 func init() { 23 logger.Infof( 24 "block device support has not been implemented for %s", 25 version.Current.OS, 26 ) 27 DefaultListBlockDevices = listBlockDevices 28 }