diff options
author | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2013-04-19 16:29:38 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2013-04-19 16:29:38 +0300 |
commit | 1117bba911f3f49a0ff2d87bc905de9073290bcd (patch) | |
tree | 4ef0de90fb3258c1d04b9fe5411b451d63ac6510 | |
parent | 6b2bcd1959cc2de86a559a9815b32364b814f27c (diff) | |
download | mic-1117bba911f3f49a0ff2d87bc905de9073290bcd.tar.gz mic-1117bba911f3f49a0ff2d87bc905de9073290bcd.tar.bz2 mic-1117bba911f3f49a0ff2d87bc905de9073290bcd.zip |
gpt_parser: update class commentary
We now support CRC checking and partition table changing, so update
commentaries.
Change-Id: Id3acd1699d2da2752d6d05c4400404361a3e5634
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
-rw-r--r-- | mic/utils/gpt_parser.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mic/utils/gpt_parser.py b/mic/utils/gpt_parser.py index 2f1d2d7..7ca0a78 100644 --- a/mic/utils/gpt_parser.py +++ b/mic/utils/gpt_parser.py @@ -76,10 +76,8 @@ def _validate_header(raw_hdr): (crc, raw_hdr[3])) class GptParser: - """ GPT partition table parser. The current implementation is simplified - and it assumes that the partition table is correct, so it does not check - the CRC-32 checksums and does not handle the backup GPT partition table. - But this implementation can be extended in the future, if needed. """ + """ GPT partition table parser. Allows reading the GPT header and the + partition table, as well as modifying the partition table records. """ def __init__(self, disk_path, sector_size = 512): """ The class constructor which accepts the following parameters: |