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



commit d842b8cdfb08bad8dd844640b8472a8501d011d3
Author: Curtis Gedak <gedakc gmail com>
Date:   Wed Nov 27 11:52:51 2013 -0700

    Show SWRAID active/not active status in information dialog (#712533)
    
    Bug #712533 - Partitions not detected as busy inside Software RAID on
                  some distros

 src/Dialog_Partition_Info.cc |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc
index f38cfe9..6e378d9 100644
--- a/src/Dialog_Partition_Info.cc
+++ b/src/Dialog_Partition_Info.cc
@@ -311,11 +311,13 @@ void Dialog_Partition_Info::Display_Info()
                                 */
                                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
-                                * means that this linux swap partition is enabled and being used by
-                                * the operating system.
+                                * means that this linux swap or linux software raid partition
+                                * is enabled and being used by the operating system.
                                 */
                                str_temp = _("Active") ;
                        }
@@ -343,11 +345,13 @@ void Dialog_Partition_Info::Display_Info()
                         */
                        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
-                        *  means that this linux swap partition is not enabled and is not
-                        *  in use by the operating system.
+                        *  means that this linux swap or linux software raid partition
+                        *  is not enabled and is not in use by the operating system.
                         */
                        str_temp = _("Not active") ;
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]