]> git.proxmox.com Git - pve-storage.git/commit
storage: replace build-in stat occurrences
authorAlwin Antreich <a.antreich@proxmox.com>
Tue, 28 Apr 2020 13:58:15 +0000 (15:58 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 30 Apr 2020 16:37:19 +0000 (18:37 +0200)
commit92ae59df9eb967761aa9205a89612f16e26b3d73
tree30dba5553ee852b836c53a63123279f3e0ae4e6d
parentcd554b79d1f868dbe499c570dc352ee0b851b1eb
storage: replace build-in stat occurrences

with File::stat::stat to minimize variable declarations. And allow to
mock this method in tests instead of the perl build-in stat.

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
PVE/Diskmanage.pm
PVE/Storage/Plugin.pm