Disable unmount of busy bcache devices (#183)

GParted automatically enables the Partition > Unmount action for busy
partitions.  Unregister (deactivate) bcache devices is not going to be
supported so disable it.

Closes #183 - Basic support for bcache
This commit is contained in:
Mike Fleetwood 2022-01-26 22:24:54 +00:00 committed by Curtis Gedak
parent 5d86c616a8
commit fd8c7857da
1 changed files with 1 additions and 0 deletions

View File

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