Re: [ext2resize] bug in ext2resize 1.1.14
Status: Inactive
Brought to you by:
adilger
From: Andrew C. <cl...@gn...> - 2000-09-12 09:00:51
|
Dieter Stueken wrote: > > while trying to resize my 137Gb partition I got a core. > After analyzing the problem I found a serious bug in > ext2resize 1.1.14 when shrinking a huge partition: > > I found a parameter "ext2_max_groups = 1024" from tune.c, > which is capable to handle about 8GB. Although it is adapted > to handle greater partitions if needed by ext2resize.c:main(), > the calculated size needed, however is taken from the (possibly > smaller) size requested, not from the actual size if the file system. > > Thus I got a segfault in ext2_determine_itoffset(). > > Maybe there is a newer version meanwhile, with this problem > resolved; but I just escaped to kill may 137Gb :-( and > I did not find any hint about such a bug anywhere. > > I helped me by drastically increasing the parameters from > tune.c for my needs, but I think there should be a better > solution for that. GNU Parted (www.gnu.org/software/parted) fixes this problem (it dynamically allocates buffers according to the number of groups) GNU Parted was forked off from ext2resize. We were going to keep things in sync, but Lennert seems to be short on time to apply changes I make... Andrew Clausen |