diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-01-11 15:45:50 +0100 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-01-11 17:11:41 +0100 |
commit | 34fd2cbe48d8df7ca0cd6b90330e58b671edd20d (patch) | |
tree | ed72f6330a07b7b0ddc7a7f4e6b1de8bca936e79 /.gitignore | |
parent | dce0b0c1e30a728537abfd25cbe8a55dce22db37 (diff) |
add 'string' field getter to parttype
'string' getter wraps fdisk_parttype_get_string to fetch the partition
type UUID in case of a GPT label device.
This is useful to confirm or check the partition type UUID of any device
with a GPT label.
>>> import fdisk
>>> cxt = fdisk.Context('./disk.bin', readonly=False)
>>> pa = cxt.partitions[0]
>>> pa.type.string
'C12A7328-F81F-11D2-BA4B-00A0C93EC93B'
>>> pa.type.name
'EFI System'
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions