WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] This patch resizes the file system on the xm-test HVM di

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] This patch resizes the file system on the xm-test HVM disk.img to use
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 May 2006 17:26:17 +0000
Delivery-date: Fri, 19 May 2006 10:29:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User stekloff@xxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 224e9878c6d45d36d8d215706406d4ba91b3d6bb
# Parent  33b2ae0246632237d6b8f1893b307f2f51b0315b
This patch resizes the file system on the xm-test HVM disk.img to use
the entire space available.

Signed-off-by: Daniel Stekloff <dsteklof@xxxxxxxxxx>
---
 tools/xm-test/ramdisk/bin/create_disk_image |    7 +++++++
 1 files changed, 7 insertions(+)

diff -r 33b2ae024663 -r 224e9878c6d4 tools/xm-test/ramdisk/bin/create_disk_image
--- a/tools/xm-test/ramdisk/bin/create_disk_image       Fri May 19 16:21:49 
2006 +0100
+++ b/tools/xm-test/ramdisk/bin/create_disk_image       Fri May 19 16:29:34 
2006 +0100
@@ -207,6 +207,13 @@ function dd_rootfs_to_image()
        dd if="$ROOTFS" of="$LOOPP" > /dev/null 2>&1
        if [ $? -ne 0 ]; then
                die "Failed to dd $ROOTFS to $LOOPP."
+       fi
+
+       # Resize fs to use full partition
+       e2fsck -f $LOOPP 
+       resize2fs $LOOPP
+       if [ $? -ne 0 ]; then
+               die "Failed to resize rootfs on $LOOPP."
        fi
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] This patch resizes the file system on the xm-test HVM disk.img to use, Xen patchbot-unstable <=