[parted-devel] Gracefully exit instead of seg fault when resizing ext2 partitions

Otavio Salvador otavio at debian.org
Wed May 30 23:54:06 UTC 2007


"Matt Davis" <mattdavis9 at gmail.com> writes:

> From 5cdf7c149d7c5bc31a934d60c56c4c3641312542 Mon Sep 17 00:00:00 2001
> From: Matt Davis <mattdavis9 at gmail.com>
> Date: Wed, 30 May 2007 19:45:22 -0400
> Subject: This patch references Ticket #22
> http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/22
>
> While this does not fix the problem.  This does throw an exception and
> gracefully exitis.  The previous exit ended in a seg fault.
>
> This exception occurs when an ext2 block is not read properly.
> And can be replicated by trying to resize a ext2 drive
> (such as parted -s loop-dev resize 1 1 500M)

Please, add a testing for it since it's simple to reproduce.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list