Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions volcreate-logs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ sub create_volume {
}

# Create the volume.
my @command = ('-t', 'logs', $volume, $quota_kbytes, $mountpoint);
my @command = ('-t', 'logs', $volume, "${quota_kbytes}k", $mountpoint);
if ($quiet) {
unshift(@command, '-q');
}
Expand Down Expand Up @@ -393,11 +393,6 @@ sub parse_log {
warn "Unknown attribute on line $. ($key)\n";
next;
}
if ($key eq 'quota') {
if ($value =~ /^\d+$/xms) {
$value = kbytes("${value}M");
}
}
$log{$key} = $value;
}
warn "Unterminated log group on line $.\n";
Expand Down