[gparted/ataraid] Display array device as mount point of mdadm started ATARAID members (#75)



commit 8ae721c524a97911f548d9aa0394e30e381771a4
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Sun Nov 17 19:22:06 2019 +0000

    Display array device as mount point of mdadm started ATARAID members (#75)
    
    This matches how other non-file systems are handled, by displaying the
    access reference in the mount point column.  For LVM Physical Volumes
    the Volume Group name is displayed [1] and for an active Linux Software
    RAID array the array device is displayed [2].
    
    [1] 8083f11d84dbd4f186271a3cdbf5170db259f8b8
        Display LVM2 VGNAME as the PV's mount point (#160787)
    
    [2] f6c2f00df7858a7f4b97e699b9bcf1023bba850a
        Populate member mount point with SWRaid array device (#756829)
    
    Closes #75 - Errors with GPT on RAID 0 ATARAID array

 src/GParted_Core.cc | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 6317e32c..757c0b30 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1423,6 +1423,12 @@ void GParted_Core::set_mountpoints( Partition & partition )
                if ( ! array_path.empty() )
                        partition.add_mountpoint( array_path );
        }
+       else if (partition.filesystem == FS_ATARAID)
+       {
+               Glib::ustring array_path = SWRaid_Info::get_array(partition.get_path());
+               if (! array_path.empty())
+                       partition.add_mountpoint(array_path);
+       }
        else if ( partition.filesystem == FS_LUKS )
        {
                LUKS_Mapping mapping = LUKS_Info::get_cache_entry( partition.get_path() );


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