[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#358001: partman: please create ext3 file systems with online resize support



tags 358001 + patch
thanks

Here is a more correct patch.  It will use ext2prepare if it is
available, and only if parted + tune2fs is used to create the file
system.  It is not done if mkfs.ext3 is used, as the default option
for mkfs.ext3 is to generate a file system with resize_inode included
(require the latest version of /etc/mke2fs.conf, hope it is included
in the e2fsprogs udeb).

The patch is relative to the current svn version, and is not yet
tested by me.  It should be fairly easy to test by editing the file
directly in a booted debian-installer environment after the udeb is
unpacked but before the partitioning starts.

The binary is available from the ext2resize-udeb package.  I would
recommend adding a dependency for partman-ext3 on this udeb, or
perhaps add it for the partman-lvm and partman-auto-lvm udebs (as
online resizing is most useful with volume managed partitions).

Index: partman-ext3/commit.d/format_ext3
===================================================================
--- partman-ext3/commit.d/format_ext3   (revision 39521)
+++ partman-ext3/commit.d/format_ext3   (working copy)
@@ -57,6 +57,9 @@
                    sync
                    if [ "$status" = OK ]; then
                        log-output -t partman --pass-stdout /sbin/tune2fs -j $device >/dev/null || status=failed
+                       if [ -x /sbin/ext2prepare ]; then
+                           log-output -t partman --pass-stdout /sbin/ext2prepare $device >/dev/null || status=failed
+                       fi
                        sync
                    fi
                fi



Reply to: