[gparted/ataraid: 11/17] Prevent unmount of busy ATARAID members (#75)



commit 1f1f44ff7a9498408e1fd777645e06d5408e1d26
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Tue Nov 19 07:59:29 2019 +0000

    Prevent unmount of busy ATARAID members (#75)
    
    Since earlier commit "Display array device as mount point of mdadm
    started ATARAID members (#75)" GParted allows attempting to unmout a
    busy ATARAID member as if it was a file system.  This is not a valid
    thing to do, so disallow it.
    
    Closes #75 - Errors with GPT on RAID 0 ATARAID array

 src/Win_GParted.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index ec7e9415..2ffb00b1 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -1240,6 +1240,7 @@ void Win_GParted::set_valid_operations()
             && selected_partition_ptr->type   != TYPE_EXTENDED
             && selected_filesystem.filesystem != FS_LVM2_PV
             && selected_filesystem.filesystem != FS_LINUX_SWRAID
+            && selected_filesystem.filesystem != FS_ATARAID
             && selected_filesystem.filesystem != FS_LUKS
             && (    selected_filesystem.busy
                  || selected_filesystem.get_mountpoints().size() /* Have mount point(s) */


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