mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 17:22:24 +00:00
procfs: whitespace/indendation cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
ff8d3b1d7a
commit
dc00c0529d
@ -378,6 +378,7 @@ sub decode_mount {
|
|||||||
|
|
||||||
sub parse_mounts {
|
sub parse_mounts {
|
||||||
my ($mounts) = @_;
|
my ($mounts) = @_;
|
||||||
|
|
||||||
my $mntent = [];
|
my $mntent = [];
|
||||||
while ($mounts =~ /^\s*([^#].*)$/gm) {
|
while ($mounts =~ /^\s*([^#].*)$/gm) {
|
||||||
# lines from the file are encoded so we can just split at spaces
|
# lines from the file are encoded so we can just split at spaces
|
||||||
@ -386,11 +387,14 @@ sub parse_mounts {
|
|||||||
# in glibc's parser frequency and pass seem to be optional
|
# in glibc's parser frequency and pass seem to be optional
|
||||||
$freq = $1 if $opts =~ s/\s+(\d+)$//;
|
$freq = $1 if $opts =~ s/\s+(\d+)$//;
|
||||||
$passno = $1 if $opts =~ s/\s+(\d+)$//;
|
$passno = $1 if $opts =~ s/\s+(\d+)$//;
|
||||||
push @$mntent, [decode_mount($what),
|
push @$mntent, [
|
||||||
|
decode_mount($what),
|
||||||
decode_mount($dir),
|
decode_mount($dir),
|
||||||
decode_mount($fstype),
|
decode_mount($fstype),
|
||||||
decode_mount($opts),
|
decode_mount($opts),
|
||||||
$freq, $passno];
|
$freq,
|
||||||
|
$passno,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
return $mntent;
|
return $mntent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user