Eric Sandeen wrote: > http://people.redhat.com/esandeen/livecd-creator-imagefile.bz2 > contains an image (for now) which, when resized to 578639, corrupts > the filesystem. > > This is a bit crazy, I guess, because the fs currently has only > 1 free block, but still, we should be graceful about the failure. > Perhaps it would make sense to check the requested valuea against > the minimum value resize2fs would compute for "-P" and fail (at > least without a force). heh, well, maybe not: [root@inode e2fsprogs]# dumpe2fs -h /mnt/test/livecd-creator-imagefile | grep "Block count" dumpe2fs 1.41.5 (23-Apr-2009) Block count: 578640 [root@inode e2fsprogs]# resize/resize2fs.static -P /mnt/test/livecd-creator-imagefile resize2fs 1.41.5 (23-Apr-2009) Estimated minimum size of the filesystem: 9171138 The estimated minimum size is 16x the current size. So much for that plan, at least without a bit more work. -Eric -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html