Revision b62ddbe5 lib/bdev.py
b/lib/bdev.py | ||
---|---|---|
2280 | 2280 |
try: |
2281 | 2281 |
f = open(dev_path, 'w') |
2282 | 2282 |
except IOError, err: |
2283 |
raise BlockDeviceError("Could not create '%'" % err) |
|
2283 |
raise errors.BlockDeviceError("Could not create '%'" % err)
|
|
2284 | 2284 |
else: |
2285 | 2285 |
f.truncate(size * 1024 * 1024) |
2286 | 2286 |
f.close() |
Also available in: Unified diff