[gparted] Disable unmount of busy bcache devices (#183)
- From: Mike Fleetwood <mfleetwo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Disable unmount of busy bcache devices (#183)
- Date: Tue, 1 Mar 2022 21:41:14 +0000 (UTC)
commit fd8c7857da99e75a8569dd643b331b17cf96fd3d
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date: Wed Jan 26 22:24:54 2022 +0000
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
src/Win_GParted.cc | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 1e354583..3e3cd4f5 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]