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:
parent
5d86c616a8
commit
fd8c7857da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue