diff --git a/include/Partition.h b/include/Partition.h index e368fce8..ce070b15 100644 --- a/include/Partition.h +++ b/include/Partition.h @@ -115,7 +115,9 @@ public: bool strict ; //Indicator if start and end sectors must stay unchanged bool strict_start ; //Indicator if start sector must stay unchanged - + + Byte_Value sector_size ; //Sector size of the disk device needed for converting to/from sectors and bytes. + private: void sort_paths_and_remove_duplicates() ; diff --git a/src/Partition.cc b/src/Partition.cc index 3df0b353..33facd3a 100644 --- a/src/Partition.cc +++ b/src/Partition.cc @@ -43,6 +43,7 @@ void Partition::Reset() label .clear() ; uuid .clear() ; partition_number = sector_start = sector_end = sectors_used = sectors_unused = -1; + sector_size = 0 ; color .set( "black" ) ; inside_extended = busy = strict = strict_start = false ; logicals .clear() ;