[Ovirt-devel] [PATCH node] Fix mke2fs calls to use -j to create ext3 filesystems instead of -T ext3

Perry Myers pmyers at redhat.com
Tue Jan 20 05:52:06 UTC 2009


-T is supposed to be used for filsystem usage models like floppy, largefile,
small, etc...  -T ext3 doesn't even look to be a valid combination of options.

So instead use -j to create ext3 filesystem.  -t ext3 works in Fedora 10, but
is a relatively new option and won't work on older OSes.

Signed-off-by: Perry Myers <pmyers at redhat.com>
---
 scripts/ovirt-config-storage |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 25c2e9e..b8261cf 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -300,7 +300,7 @@ perform_partitioning()
     vgcreate /dev/HostVG "${DRIVE}2"
 
     log "Creating boot filesystem"
-    mke2fs -T ext3 "${DRIVE}1"         -L "BOOT"
+    mke2fs -j "${DRIVE}1" -L "BOOT"
     tune2fs -c 0 -i 0 "${DRIVE}1"
     mkdir -p /dev/disk/by-label
     ln -snf "${DRIVE}1" /dev/disk/by-label/BOOT
@@ -314,19 +314,19 @@ perform_partitioning()
     if [ "$ROOT_SIZE" -gt 0 ]; then
         log "Creating root partition"
         lvcreate --name Root    --size ${ROOT_SIZE}M    /dev/HostVG
-        mke2fs -T ext3 /dev/HostVG/Root    -L "ROOT"
+        mke2fs -j /dev/HostVG/Root -L "ROOT"
         tune2fs -c 0 -i 0 /dev/HostVG/Root
     fi
     if [ "$CONFIG_SIZE" -gt 0 ]; then
         log "Creating config partition"
         lvcreate --name Config  --size ${CONFIG_SIZE}M  /dev/HostVG
-        mke2fs -T ext3 /dev/HostVG/Config  -L "CONFIG"
+        mke2fs -j /dev/HostVG/Config -L "CONFIG"
         tune2fs -c 0 -i 0 /dev/HostVG/Config
     fi
     if [ "$LOGGING_SIZE" -gt 0 ]; then
         log "Creating log partition"
         lvcreate --name Logging --size ${LOGGING_SIZE}M /dev/HostVG
-        mke2fs -T ext3 /dev/HostVG/Logging -L "LOGGING"
+        mke2fs -j /dev/HostVG/Logging -L "LOGGING"
         tune2fs -c 0 -i 0 /dev/HostVG/Logging
         echo "/dev/HostVG/Logging /var/log ext3 defaults 0 0" >> /etc/fstab
     fi
@@ -343,7 +343,7 @@ perform_partitioning()
     fi
 
     if [ "$use_data" = 0 ]; then
-        mke2fs -T ext3 /dev/HostVG/Data -L "DATA"
+        mke2fs -j /dev/HostVG/Data -L "DATA"
         tune2fs -c 0 -i 0 /dev/HostVG/Data
         echo "/dev/HostVG/Data /data ext3 defaults 0 0" >> /etc/fstab
         echo "/data/images /var/lib/libvirt/images bind bind 0 0" >> /etc/fstab
-- 
1.6.0.6




More information about the ovirt-devel mailing list