Disable unmount of busy jbds (#89)

GParted automatically enables the Partition > Unmount action for busy
partitions.  This is not going to be supported for jbds so disable it.

Closes #89 - GParted doesn't recognise EXT4 fs journal partition
This commit is contained in:
Mike Fleetwood 2022-01-27 00:09:45 +00:00 committed by Curtis Gedak
parent 00f72e632b
commit 20d7835fcc
1 changed files with 1 additions and 0 deletions

View File

@ -1265,6 +1265,7 @@ void Win_GParted::set_valid_operations()
&& selected_filesystem.fstype != FS_ATARAID
&& selected_filesystem.fstype != FS_LUKS
&& selected_filesystem.fstype != FS_BCACHE
&& selected_filesystem.fstype != FS_JBD
&& ( selected_filesystem.busy
|| selected_filesystem.get_mountpoints().size() /* Have mount point(s) */
|| selected_filesystem.fstype == FS_LINUX_SWAP