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
This commit is contained in:
Mike Fleetwood 2019-11-19 07:59:29 +00:00 committed by Curtis Gedak
parent f6c86835eb
commit 1f1f44ff7a
1 changed files with 1 additions and 0 deletions

View File

@ -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) */