Releases: Quyzi/gpt
v4.1.0
v4.0.0
Behaviour changes
- Opening a
GptDisknow succeeds even if one header is invalid
(use theonly_valid_headersconfig flag to get the old behaviour back)
Changes
Type::from_strnow is case insensitive, Thanks @IronBatman2715- add
GptDisk::calculate_alignmentallowing to calculate the sector alignment, Thanks @gaochuntie - add
GptDisk::add_partition_at, Thanks @gaochuntie - Bump MSRV to 1.65
- implement Clone for GptDisk
- relax trait bounds on some functions of GptDisk
- remove
Partition::sizeand replace it withsectors_lenwhich returns the correct number of sectors, Thanks @sjoerdsimons GptDisk::{primary_header, backup_header, try_header}now return an error instead of justOption- Remove initialized state & configuration
- add the option to allow the partition count to be changed
- add the option to only open a disk if both headers are valid
- add the option to keep the backup partition readonly
- split
GptDisk::remove_partitioninto two functionsremove_partitionandremove_partition_by_guid - add
GptDisk::headerfunction which allows to get the current header (either primary or backup) - add
GptDisk::take_partitions - remove
GptDisk::update_partitions_safeand replace it with a config optionreadonly_backup - remove
GptDisk::update_partitions_embeddedand replace it with the config optionchange_partition_count - add
GptDisk::device_ref - add
GptDisk::device_mut - crc32 are now stored in the header after it has been written instead of always being zeros
- Add DragonFlyBSD as partition and OS type, Thanks @phcoder
GptDisknow accepts a genericDiskDevice- add ChromeOS RWFW partition type, Thanks @phcoder
- improve error reporting, returning
HeaderErroror the newGptError - add
HeaderBuilderto simplify creating a header (replaces Header::compute_new) - add
GptDisk::take_device - Support custom partition GUIDs
- logging is now optional use the
logortracingfeature to use the appropriate logging crate
v4.0.0-rc.2
v4.0.0-rc.2 (2024-04-04)
Changes
- remove
Partition::sizeand replace it withsectors_lenwhich returns the correct number of sectors GptDisk::{primary_header, backup_header, try_header}now return an error instead of justOption
v4.0.0-rc.1
v4.0.0-rc.1 (2023-11-18)
Behaviour changes
- Opening a
GptDisknow succeeds even if one header is invalid
(use theonly_valid_headersconfig flag to get the old behaviour back)
Changes
-
Bump MSRV to 1.63
-
Remove initialized state & configuration
-
add the option to allow the partition count to be changed
-
add the option to only open a disk if both headers are valid
-
add the option to keep the backup partition readonly
-
split
GptDisk::remove_partitioninto two functionsremove_partitionandremove_partition_by_guid -
add
GptDisk::headerfunction which allows to get the current header (either primary or backup) -
add
GptDisk::take_partitions -
remove
GptDisk::update_partitions_safeand replace it with a config optionreadonly_backup -
remove
GptDisk::update_partitions_embeddedand replace it with the config optionchange_partition_count -
add
GptDisk::device_ref -
add
GptDisk::device_mut -
crc32 are now stored in the header after it has been written instead of always being zeros
-
Add DragonFlyBSD as partition and OS type
-
GptDisknow accepts a genericDiskDevice -
add ChromeOS RWFW partition type
-
improve error reporting, returning
HeaderErroror the newGptError -
add
HeaderBuilderto simplify creating a header (replaces Header::compute_new) -
add
GptDisk::take_device -
Support custom partition GUIDs
v3.1.0
Changed
- Bump msrv to 1.60
- Update bitflags to 2.0
- Update crc to 3.0
- Update uuid to 1.0