diff options
Diffstat (limited to 'lib/python/Components')
| -rw-r--r-- | lib/python/Components/Harddisk.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 3c242510..e925acd1 100644 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -21,6 +21,9 @@ class Harddisk: self.prochdx = num2prochdx(index) self.devidex = "/dev/ide/host%d/bus%d/target%d/lun0/" % (host, bus, target) + def index(self): + return self.index + def capacity(self): procfile = tryOpen(self.prochdx + "capacity") |
