]> git.proxmox.com Git - pve-manager.git/commitdiff
pveperf: use fsync syscall from PVE::Tools
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Jan 2019 16:20:50 +0000 (17:20 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 31 Jan 2019 10:44:15 +0000 (11:44 +0100)
allows to drop the libfile-sync-perl dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
bin/pveperf
debian/control

index 6f6fe2d818ce4c78d9dfb61e21f48f96560da30e..d994c239bb8c17bc116a9caf0b7961d4a7e1ac33 100755 (executable)
@@ -2,10 +2,12 @@
 
 use strict;
 use warnings;
-use File::Sync;
+
 use Time::HiRes qw( usleep ualarm gettimeofday tv_interval );
 use Net::DNS::Resolver;
 
+use PVE::Tools;
+
 if ($#ARGV >= 1) {
     print STDERR "usage: $0 [PATH]\n";
     exit -1;
@@ -84,7 +86,7 @@ sub test_fsync {
  
            print TMP $data;
 
-           File::Sync::fsync (\*TMP);
+           PVE::Tools::fsync(fileno(\*TMP));
 
            close (TMP);
 
index 22ec34fd64742c77014bd9fb02c5627d6bba66ff..e98feeff717986c87eec9a1ab06f9ed73757e8e2 100644 (file)
@@ -38,7 +38,6 @@ Depends: apt-transport-https,
          libcrypt-ssleay-perl,
          libev-perl,
          libfile-readbackwards-perl,
-         libfile-sync-perl,
          libfilesys-df-perl,
          libhttp-daemon-perl,
          libintl-perl,