diff --git a/plugins/partition/partition.py b/plugins/partition/partition.py index c1f4259..80e81c4 100644 --- a/plugins/partition/partition.py +++ b/plugins/partition/partition.py @@ -481,20 +481,18 @@ class partition(cryptobox.plugins.base.CryptoBoxPlugin): def __get_partition_name(self, blockdev, number): - """Return the name of a specific partition of a device - + """Return the devicename of a specific partition of a device + No tests are performed, whether the partition exists or + not. """ - ## do we need to put a "p" between name and number? - ## TODO: should we check for existence? if re.search("[0-9]$", blockdev): - ## blockdev endswith a digit - we need a 'p' + ## blockdev ends with a digit, so it is a partition, we insert a 'p' return "%sp%d" % (blockdev, number) else: - ## no 'p' necessary + ## whole disk, no 'p' necessary return "%s%d" % (blockdev, number) - def __format_one_partition(self, dev_name, fs_type): """Format a single partition """ diff --git a/plugins/volume_mount/language.hdf b/plugins/volume_mount/language.hdf index 14e3387..faebd6a 100644 --- a/plugins/volume_mount/language.hdf +++ b/plugins/volume_mount/language.hdf @@ -53,7 +53,7 @@ WarningMessage { InvalidContainerType { Title = Unknown format - Text = The type of this volume ist not known. Maybe you want to initialize it first? + Text = The type of this volume is not known. Maybe you want to initialize it first? Link.Text = Format volume Link.Rel = volume_format_fs }