Show SWRAID active/not active status in information dialog (#712533)

Bug #712533 - Partitions not detected as busy inside Software RAID on
              some distros
This commit is contained in:
Curtis Gedak 2013-11-27 11:52:51 -07:00 committed by Mike Fleetwood
parent ad63ede421
commit d842b8cdfb
1 changed files with 10 additions and 6 deletions

View File

@ -311,11 +311,13 @@ void Dialog_Partition_Info::Display_Info()
*/ */
str_temp = _("Busy (At least one logical partition is mounted)") ; str_temp = _("Busy (At least one logical partition is mounted)") ;
} }
else if ( partition .filesystem == FS_LINUX_SWAP ) else if ( partition .filesystem == FS_LINUX_SWAP
|| partition .filesystem == FS_LINUX_SWRAID
)
{ {
/* TO TRANSLATORS: Active /* TO TRANSLATORS: Active
* means that this linux swap partition is enabled and being used by * means that this linux swap or linux software raid partition
* the operating system. * is enabled and being used by the operating system.
*/ */
str_temp = _("Active") ; str_temp = _("Active") ;
} }
@ -343,11 +345,13 @@ void Dialog_Partition_Info::Display_Info()
*/ */
str_temp = _("Not busy (There are no mounted logical partitions)") ; str_temp = _("Not busy (There are no mounted logical partitions)") ;
} }
else if ( partition.filesystem == GParted::FS_LINUX_SWAP ) else if ( partition .filesystem == FS_LINUX_SWAP
|| partition .filesystem == FS_LINUX_SWRAID
)
{ {
/* TO TRANSLATORS: Not active /* TO TRANSLATORS: Not active
* means that this linux swap partition is not enabled and is not * means that this linux swap or linux software raid partition
* in use by the operating system. * is not enabled and is not in use by the operating system.
*/ */
str_temp = _("Not active") ; str_temp = _("Not active") ;
} }