1
0
mirror of synced 2026-02-24 15:37:48 +00:00

Use different exit values.

This commit is contained in:
Steve Kemp
2008-02-01 19:18:32 +00:00
parent 5d0748fbd5
commit a393694ad1

View File

@@ -162,7 +162,7 @@ if ( $CONFIG{'dir'} )
Please check and try again, or report this as a bug.
EOF
exit;
exit 1;
}
#
@@ -174,7 +174,7 @@ EOF
print "Filesystem type is not understood.\n";
print "We only handle ext3 right now!\n";
print "Aborting\n";
exit;
exit 1;
}
@@ -220,7 +220,7 @@ elsif ( $CONFIG{'lvm'} )
Please check and try again, or report this as a bug.
EOF
exit;
exit 1;
}
#
@@ -232,7 +232,7 @@ EOF
print "Filesystem type is not understood.\n";
print "We only handle ext3 right now!\n";
print "Aborting\n";
exit;
exit 1;
}
@@ -263,7 +263,7 @@ EOF
else
{
print "Unknown storage type. (Neither LVM nor loopback.)\n";
exit;
exit 1;
}
@@ -284,6 +284,7 @@ system( "resize2fs $path" );
# Job done.
#
print "All done\n";
exit 0;
@@ -407,7 +408,7 @@ sub parseCommandLineArguments
if ( $VERSION )
{
print( "xen-resize-guest release $RELEASE\n" );
exit;
exit 1;
}
#
@@ -453,7 +454,7 @@ sub testArguments
Please specify one with --hostname=some.host.name
EOF
exit;
exit 1;
}
#
@@ -469,7 +470,7 @@ EOF
--add=1 -> Increase the size of the disk image by 1Mb.
EOF
exit;
exit 1;
}
#
@@ -478,7 +479,7 @@ EOF
if ( xenRunning( $CONFIG{'hostname'} ) )
{
print "The guest $CONFIG{'hostname'} appears to be running!\n";
exit;
exit 1;
}
#
@@ -494,12 +495,12 @@ EOF
if ( $options == 0 )
{
print "Please specify one of --lvm or --dir\n";
exit;
exit 1;
}
if ( $options > 1 )
{
print "Please specify only one of --lvm or --dir - not both!\n";
exit;
exit 1;
}
#