mirror of
https://gitlab.gnome.org/GNOME/gparted
synced 2024-09-17 23:11:30 +00:00
Use struct FS_Limits in GParted_Core::create() (#787204)
Bug 787204 - Minimum and maximum size of the UDF partition/disk
This commit is contained in:
parent
4fa262d7e3
commit
8729556778
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue