diff options
author | papoteur-mga <yves.brungard_git@gadz.org> | 2013-10-13 16:53:01 +0200 |
---|---|---|
committer | papoteur-mga <yves.brungard_git@gadz.org> | 2013-10-13 16:53:01 +0200 |
commit | d121c7409f14ca8bf6259ecf1bf3e4ed44ac080a (patch) | |
tree | 2f7aed47fd6a3807a9cab9f6dbf29495e14de0b3 /lib/find_devices | |
parent | ff90c569069867f998d68eb09ccebf33d4d7de49 (diff) | |
download | isodumper-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-x | lib/find_devices | 3 |
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 |