aboutsummaryrefslogtreecommitdiffstats
path: root/lib/find_devices
diff options
context:
space:
mode:
authorpapoteur-mga <yves.brungard_git@gadz.org>2013-10-13 16:53:01 +0200
committerpapoteur-mga <yves.brungard_git@gadz.org>2013-10-13 16:53:01 +0200
commitd121c7409f14ca8bf6259ecf1bf3e4ed44ac080a (patch)
tree2f7aed47fd6a3807a9cab9f6dbf29495e14de0b3 /lib/find_devices
parentff90c569069867f998d68eb09ccebf33d4d7de49 (diff)
downloadisodumper-d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a.tar
isodumper-d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a.tar.gz
isodumper-d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a.tar.bz2
isodumper-d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a.tar.xz
isodumper-d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a.zip
Add a test for the size of the device. Exit if the size is too small
Diffstat (limited to 'lib/find_devices')
-rwxr-xr-xlib/find_devices3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/find_devices b/lib/find_devices
index 6a56c03..0b32eac 100755
--- a/lib/find_devices
+++ b/lib/find_devices
@@ -17,4 +17,5 @@ for dev in devs:
path = str(dev.Get('', 'DeviceFile'))
vend = str(dev.Get('', 'DriveVendor'))
model = str(dev.Get('', 'DriveModel'))
- print vend + ' ' + model + ', ' +path
+ size = str(dev.Get('', 'DeviceSize'))
+ print vend + ' ' + model + ', ' +path+', ' + size