Commit 54f08ddf authored by Mike Hibler's avatar Mike Hibler

Add the "-s slice" option to the Linux version of mkextrafs.pl.

So we can specify a different slice (partition) to create the filesystem on.
parent 53d43153
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2005 University of Utah and the Flux Group.
# Copyright (c) 2000-2012 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
......@@ -18,10 +18,10 @@ sub mysystem($);
sub usage()
{
print("Usage: mkextrafs.pl [-f] [-lM] [-v <vglist>] <mountpoint>\n");
print("Usage: mkextrafs.pl [-f] [-s slice] [-lM] [-v <vglist>] <mountpoint>\n");
exit(-1);
}
my $optlist = "flv:M";
my $optlist = "fls:v:M";
#
# Yep, hardwired for now. Should be options or queried via TMCC.
......@@ -60,6 +60,9 @@ if (! getopts($optlist, \%options)) {
if (defined($options{"f"})) {
$forceit = 1;
}
if (defined($options{"s"})) {
$slice = $options{"s"};
}
if (defined($options{"l"})) {
$lvm = 1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment