From 1117bba911f3f49a0ff2d87bc905de9073290bcd Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Fri, 19 Apr 2013 16:29:38 +0300 Subject: [PATCH] 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 --- mic/utils/gpt_parser.py | 6 ++---- 1 file 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: -- 2.7.4