[gparted] Disable unmount of busy jbds (#89)



commit 20d7835fcc5e327f818c830b323cea5472b38ce9
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Thu Jan 27 00:09:45 2022 +0000

    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

 src/Win_GParted.cc | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 3e3cd4f5..2bae1f7b 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]