[debsums] 82/184: Open files with O_NOATIME to reduce disk activity
Axel Beckert
abe at deuxchevaux.org
Mon Mar 2 21:21:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository debsums.
commit 37c93069e780b339631a6b41f5eabb2880962ca7
Author: Francois Marier <francois at debian.org>
Date: Sun Mar 8 11:43:12 2009 +1300
Open files with O_NOATIME to reduce disk activity
---
debian/changelog | 6 ++++++
debsums.in | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index af938e4..a3c9e11 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+debsums (2.0.42) UNRELEASED; urgency=low
+
+ * Open files with O_NOATIME to reduce disk activity (closes: #518608)
+
+ -- Francois Marier <francois at debian.org> Mon, 09 Mar 2009 10:48:58 +1300
+
debsums (2.0.41) unstable; urgency=low
* Updated Galician debconf template (closes: #509907)
diff --git a/debsums.in b/debsums.in
old mode 100644
new mode 100755
index fa68769..e585cd5
--- a/debsums.in
+++ b/debsums.in
@@ -11,7 +11,7 @@ use File::Find 'find';
use File::Temp 'tempdir';
use File::Path 'rmtree';
use File::Copy 'copy';
-use Fcntl qw/O_RDONLY O_NONBLOCK/;
+use Fcntl qw/O_RDONLY O_NONBLOCK O_NOATIME/;
use Getopt::Long qw/:config bundling/;
use Digest::MD5;
use constant ELF_MAGIC => "\177ELF";
@@ -254,7 +254,7 @@ sub is_replaced
$path = $diversion{$path}[0] if exists $diversion{$path}
and $diversion{$path}[1] ne $pack;
- unless (sysopen F, "$root/$path", O_RDONLY|O_NONBLOCK)
+ unless (sysopen F, "$root/$path", O_RDONLY|O_NONBLOCK|O_NOATIME)
{
return 0 if $localepurge
and $path =~ m!^usr/share/(?:man|locale)/([^/]+)/!
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git
More information about the Pkg-perl-cvs-commits
mailing list