Update of /cvsroot/ext2resize/ext2resize/src
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv6907/src
Modified Files:
ext2online.c
Log Message:
Disable fallback to offline resizing in ext2online. Patch from the Fedora package.
Index: ext2online.c
===================================================================
RCS file: /cvsroot/ext2resize/ext2resize/src/ext2online.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** ext2online.c 11 Jun 2006 06:09:24 -0000 1.27
--- ext2online.c 11 Jun 2006 08:19:04 -0000 1.28
***************
*** 508,512 ****
if (ext2_ioctl(fs, EXT2_IOC_GROUP_EXTEND, &size))
fs->flags |= FL_IOCTL;
! else if (errno != ENOTTY)
return 0;
--- 508,518 ----
if (ext2_ioctl(fs, EXT2_IOC_GROUP_EXTEND, &size))
fs->flags |= FL_IOCTL;
! else /* if (errno != ENOTTY) */
! /*
! * Disable fallback to offline resizing. This change was
! * found in the Fedora/RedHat package, and was explained
! * with "resize2fs is incompatible with online resize, and
! * can result in corrupt filesystems." Use resize2fs instead.
! */
return 0;
|