[Gptfdisk-general] [PATCH 0/4] Fix some assorted bugs noticed when running sgdisk on a beaglebone b
Brought to you by:
srs5694
From: Cody P S. <de...@co...> - 2015-06-17 21:37:20
|
"IeeeToInt: initialize suffix" fixes an issue where sgdisk would occasionally try to create partitions that started very far into the disk. "Always use off64_t to avoid overflow issues" fixes an issue on 32bit when CFLAGS are overridden and as a result _FILE_OFFSET_BITS is not passed. Note that with this change, I don't think we actually need to pass _FILE_OFFSET_BITS any more. "if there is any error, report it via return value" ensures that if there is an error writing data, the command does not return success, hiding it's failure until later in the calling script. "seek: detect and complain about seek overflows" fixes a theoretical issue related to the off64_t issue fixed above. I haven't actually triggered the bug this fixes, though. Cody P Schafer (4): IeeeToInt: initialize suffix if there is any error, report it via return value Always use off64_t to avoid overflow issues seek: detect and complain about seek overflows diskio-unix.cc | 11 ++++++++--- gptcl.cc | 5 ++++- support.cc | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) -- 2.4.3 |