#!/bin/sh
#
# Check that we are using ext3, not ext2

LANG=C
export LANG

awk "/ext2/ { print \"error: $0: Using ext2 on\",\$2 }" /proc/mounts
awk "/ext3/ { print \"success: $0: Using ext3 on\",\$2 }" /proc/mounts

# Make sure all ext3 mount points are online resizable
for p in `df -Pt ext3  | grep -v ^Filesystem |awk '{print $1}'`; do 
    if tune2fs -l $p| grep features | grep -q resize_inode ; then
	:
    else
	echo "error: $0: Missing resize_inode in ext3 fs $p"
    fi
done
