[gparted] Suppress "Unable to find mount point" warning for jbds (#89)



commit 00f72e632beb268ea4d6d091eb774b919a3c0a6f
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Tue Jan 25 23:52:30 2022 +0000

    Suppress "Unable to find mount point" warning for jbds (#89)
    
    Closes #89 - GParted doesn't recognise EXT4 fs journal partition

 src/GParted_Core.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index 2e1ed2f4..46c65193 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1506,8 +1506,9 @@ void GParted_Core::set_mountpoints( Partition & partition )
                if ( ! mapping.name.empty() )
                        partition.add_mountpoint( DEV_MAPPER_PATH + mapping.name );
        }
-       // Swap spaces don't have mount points so don't bother trying to add them.
-       else if (partition.fstype != FS_LINUX_SWAP)
+       // Swap spaces and jbds don't have mount points so don't bother trying to add them.
+       else if (partition.fstype != FS_LINUX_SWAP &&
+                partition.fstype != FS_JBD          )
        {
                if ( partition.busy )
                {


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