summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@intel.com>2013-04-10 11:50:35 +0300
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2013-04-19 16:27:17 +0300
commitd718139d103414305334c4d6ae2cb823e0abd1f6 (patch)
treed0e641744ed88d92f4a035cd59519c8a63cab986
parent25f9cc47abacb0967459e93b1b68c393cd0a854f (diff)
downloadmic-d718139d103414305334c4d6ae2cb823e0abd1f6.tar.gz
mic-d718139d103414305334c4d6ae2cb823e0abd1f6.tar.bz2
mic-d718139d103414305334c4d6ae2cb823e0abd1f6.zip
gpt_parser: spelling fixes
A couple of spelling fixes. Change-Id: I7807b071af34ce360bc274d9d0ffa8a7fd12a00b Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
-rw-r--r--mic/utils/gpt_parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/mic/utils/gpt_parser.py b/mic/utils/gpt_parser.py
index 1e09c14..a3043b9 100644
--- a/mic/utils/gpt_parser.py
+++ b/mic/utils/gpt_parser.py
@@ -56,7 +56,7 @@ def _validate_header(raw_hdr):
# Validate the signature
if raw_hdr[0] != 'EFI PART':
- raise MountError("GPT paritition table not found")
+ raise MountError("GPT partition table not found")
# Validate the revision
if raw_hdr[1] != _SUPPORTED_GPT_REVISION:
@@ -82,7 +82,7 @@ class GptParser:
But this implementation can be extended in the future, if needed. """
def __init__(self, disk_path, sector_size = 512):
- """ The class construcor which accepts the following parameters:
+ """ The class constructor which accepts the following parameters:
* disk_path - full path to the disk image or device node
* sector_size - size of a disk sector in bytes """
@@ -158,8 +158,8 @@ class GptParser:
raw_hdr[13]) # 12. CRC32 of partition array
def get_partitions(self, primary = True):
- """ This is a generator which parses teh GPT partition table and
- generates the following tupes for each partition:
+ """ This is a generator which parses the GPT partition table and
+ generates the following tuples for each partition:
(Index, Partition type GUID, Partition GUID, First LBA, Last LBA,
Attribute flags, Partition name)