Home | History | Annotate | Download | only in utils

Lines Matching refs:device

8 partitions present of a storage device. cgpt is a utility which allows to read
22 devices: a dictionary keyed by the storage device names (as in
51 """Get device information from cgpt and parse it into a dictionary.
54 dev_name: a string the Linux storage device name, (i.e. '/dev/sda')
86 def get_partition(self, device, partition_name):
87 """Retrieve a dictionary representing a partition on a device.
90 device: a string, the Linux device name
94 CgptError in case the device or partiton on that device are not
99 result = self.devices[device][partition_name]
101 raise CgptError('could not retrieve partiton %s of device %s' % (
102 partition_name, device))
105 def set_partition(self, device, partition_name, partition_value):
109 device: a string, the Linux device name
121 current = self.get_partition(device, partition_name)
136 current['partition'], ' '.join(options), device)