Revision f83057ad lib/storage/base.py
b/lib/storage/base.py | ||
---|---|---|
359 | 359 |
""" |
360 | 360 |
return (self.GetActualSize(), self.GetActualSpindles()) |
361 | 361 |
|
362 |
def GetUserspaceAccessUri(self, hypervisor): |
|
363 |
"""Return URIs hypervisors can use to access disks in userspace mode. |
|
364 |
|
|
365 |
@rtype: string |
|
366 |
@return: userspace device URI |
|
367 |
@raise errors.BlockDeviceError if userspace access is not supported |
|
368 |
|
|
369 |
""" |
|
370 |
ThrowError("Userspace access with %s block device and %s hypervisor is not " |
|
371 |
"supported." % (self.__class__.__name__, |
|
372 |
hypervisor)) |
|
373 |
|
|
362 | 374 |
def __repr__(self): |
363 | 375 |
return ("<%s: unique_id: %s, children: %s, %s:%s, %s>" % |
364 | 376 |
(self.__class__, self.unique_id, self._children, |
Also available in: Unified diff