[gparted] Use struct FS_Limits in GParted_Core::create() (#787204)



commit 8729556778c88bb5c60b82817e916eec23505cb6
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Fri Jan 12 15:22:25 2018 +0000

    Use struct FS_Limits in GParted_Core::create() (#787204)
    
    Bug 787204 - Minimum and maximum size of the UDF partition/disk

 src/GParted_Core.cc |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
index bdf77a1..3c493cb 100644
--- a/src/GParted_Core.cc
+++ b/src/GParted_Core.cc
@@ -1866,8 +1866,13 @@ bool GParted_Core::create( Partition & new_partition, OperationDetail & operatio
        }
        else
        {
+               FileSystem *p_filesystem = get_filesystem_object( new_partition.filesystem );
+               FS_Limits fs_limits;
+               if ( p_filesystem != NULL )
+                       fs_limits = p_filesystem->get_filesystem_limits();
+
                success = create_partition( new_partition, operationdetail,
-                                           get_fs( new_partition.filesystem ).MIN / 
new_partition.sector_size );
+                                           fs_limits.min_size / new_partition.sector_size );
        }
        if ( ! success )
                return false;


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