Seems that attached patch fixed this bug. I tested some cases, and everything works fine for me, but I'm not sure if it can break something hidden, so, developers, please review this fix.
On Sun, Feb 7, 2010 at 6:50 PM, 27/249 <i27...@gmail.com> wrote: > Yes, I forgot to add that this bug is still present in latest GIT tree > (checked 1 minute ago). > > On Sun, Feb 7, 2010 at 6:48 PM, 27/249 <i27...@gmail.com> wrote: >> Few weeks ago I described this bug in >> http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/250 >> >> This bug is very serious for me, so, since I didn't see any motion in >> bugtracker, I wish to try to fix it myself. If you can help me in any >> way - it will be very good :) First of all, it will be very nice to >> know what piece of code can commit partition table to disk. >> >> -- >> Best regards, AiX 27/249 <i27...@gmail.com> >> [Using null methods] >> > > > > -- > Best regards, AiX 27/249 <i27...@gmail.com> > [Using null methods] > -- Best regards, AiX 27/249 <i27...@gmail.com> [Using null methods]
--- parted-2.2_git20100207/libparted/labels/gpt.c.orig 2010-02-07 18:37:26.000000000 +0300 +++ parted-2.2_git20100207/libparted/labels/gpt.c 2010-02-07 20:21:27.642878475 +0300 @@ -898,7 +898,7 @@ GPTDiskData *gpt_disk_data = disk->disk_specific; int i; #ifndef DISCOVER_ONLY - int write_back = 1; + int write_back = 0; // Here was 1, why? #endif ped_disk_delete_all (disk);
_______________________________________________ bug-parted mailing list bug-parted@gnu.org http://lists.gnu.org/mailman/listinfo/bug-parted