Skip to contentSkip to conversation

LVM2 ./WHATS_NEW man/fsadm.8.in scripts/fsadm.sh

PATCH [email protected] 2 participants 2 messages Feb 4, 2009

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2009-02-04 12:47:05

Modified files:

	.              : WHATS_NEW 
	man            : fsadm.8.in 
	scripts        : fsadm.sh 

Log message:
add support for ext4 resize in fsadm

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1034&r2=1.1035
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/fsadm.8.in.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/fsadm.sh.diff?cvsroot=lvm2&r1=1.7&r2=1.8

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.45 - 
 ===================================
+  Add support for ext4 resize in fsadm
   Move locking_type reading inside init_locking().
   Rename get_vgs() to get_vgnames() and clarify related error messages.
   Allow clvmd to be built with all cluster managers & select one on cmdline.
man/fsadm.8.in +24 -19

70 lines not on this page · raw message

scripts/fsadm.sh +4 -4
@@ -19,7 +19,7 @@
 # Needed utilities:
 #   mount, umount, grep, readlink, blockdev, blkid, fsck, xfs_check
 #
-# ext2/ext3: resize2fs, tune2fs
+# ext2/ext3/ext4: resize2fs, tune2fs
 # reiserfs: resize_reiserfs, reiserfstune
 # xfs: xfs_growfs, xfs_info
 #
@@ -80,7 +80,7 @@
 	echo "  Options:"
 	echo "    -h | --help         Show this help message"
 	echo "    -v | --verbose      Be verbose"
-	echo "    -e | --ext-offline  unmount filesystem before Ext2/3 resize"
+	echo "    -e | --ext-offline  unmount filesystem before ext2/ext3/ext4 resize"
 	echo "    -f | --force        Bypass sanity checks"
 	echo "    -n | --dry-run      Print commands without running them"
 	echo "    -l | --lvresize     Resize given device (if it is LVM device)"
@@ -226,7 +226,7 @@
 	test -n "$BLOCKSIZE" -a -n "$BLOCKCOUNT" || error "Cannot parse $1 output"
 }
 ####################################
-# Resize ext2/ext3 filesystem
+# Resize ext2/ext3/ext4 filesystem
 # - unmounted or mounted for upsize
 # - unmounted for downsize
 ####################################
@@ -329,7 +329,7 @@
 	#IFS=$'\n'  # don't use bash-ism ??
 	IFS="$(printf \"\\n\")"  # needed for parsing output
 	case "$FSTYPE" in
-	  "ext3"|"ext2") resize_ext $NEWSIZE ;;
+	  "ext3"|"ext2"|"ext4") resize_ext $NEWSIZE ;;
 	  "reiserfs") resize_reiser $NEWSIZE ;;
 	  "xfs") resize_xfs $NEWSIZE ;;
 	  *) error "Filesystem \"$FSTYPE\" on device \"$VOLUME\" is not supported by this tool" ;;
#1 lore raw
Quoted 1 line · zkabelac at sourceware.org

add support for ext4 resize in fsadm

Ack.

Alasdair

Signature · 1 line
agk at redhat.com