Skip to content
Snippets Groups Projects
Commit ca7be253 authored by Mark Harrison's avatar Mark Harrison
Browse files

Whitespace fix

parent cb2e727b
No related branches found
No related tags found
No related merge requests found
...@@ -101,34 +101,34 @@ sub handler { ...@@ -101,34 +101,34 @@ sub handler {
my $output = run_command("/sbin/mount"); my $output = run_command("/sbin/mount");
foreach my $line (split(/\n/, $output)) { foreach my $line (split(/\n/, $output)) {
my @parts = split(/\s+/, $line); my @parts = split(/\s+/, $line);
next unless $parts[2] =~ /\//; next unless $parts[2] =~ /\//;
$mounts->{$parts[0]} = $parts[2]; $mounts->{$parts[0]} = $parts[2];
}; };
my $status = {}; my $status = {};
my $zoneroots = ""; my $zoneroots = "";
foreach my $zone (@zones) { foreach my $zone (@zones) {
my $output = run_command("$zonecfg -z $zone info zonepath"); my $output = run_command("$zonecfg -z $zone info zonepath");
chomp $output; chomp $output;
my @result = split(/:\s*/, $output); my @result = split(/:\s*/, $output);
my $path = $result[1]; my $path = $result[1];
chomp $path; chomp $path;
my $dataset = $mounts->{$path}; my $dataset = $mounts->{$path};
if ($dataset) { if ($dataset) {
my $creation = run_command("$zfs get -H -o value -p creation $dataset"); my $creation = run_command("$zfs get -H -o value -p creation $dataset");
chomp $creation; chomp $creation;
$status->{"${zone}_creation"} = [$creation, "i"]; $status->{"${zone}_creation"} = [$creation, "i"];
} }
else { else {
$dataset = undef; $dataset = undef;
} }
# Store the values # Store the values
$status->{"${zone}_path"} = [$path, "s"]; $status->{"${zone}_path"} = [$path, "s"];
$status->{"${zone}_dataset"} = [$dataset, "s"]; $status->{"${zone}_dataset"} = [$dataset, "s"];
$zoneroots .= "$path "; $zoneroots .= "$path ";
}; };
...@@ -145,13 +145,13 @@ sub handler { ...@@ -145,13 +145,13 @@ sub handler {
); );
unless ( $config->{disable_fsstat} ) { unless ( $config->{disable_fsstat} ) {
my $fsstat = run_command("/bin/fsstat $zoneroots 5 2 "); my $fsstat = run_command("/bin/fsstat $zoneroots 5 2 ");
foreach (split(/\n/, $fsstat)) { foreach (split(/\n/, $fsstat)) {
next unless (/^\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)$/); next unless (/^\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)$/);
my $fs = $12; my $fs = $12;
my $fs_read_bytes; my $fs_read_bytes;
my $fs_read = $9; my $fs_read = $9;
my $fs_write_bytes; my $fs_write_bytes;
my $fs_write = $11; my $fs_write = $11;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment