summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2012-07-24 17:22:25 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2012-07-24 17:22:25 +0200
commitfbda0ee9d9f5ecd34d38f0e416837e8ef3a10f68 (patch)
tree0aa2e455bc2dc3a2fc9a820da385ec59d23575e2
parent7b15b702b1f908595a2ae484117746587f8e03aa (diff)
for filesystems not supporting mmap'ing a file we need to use a
SyncToFd dummy just as we did for compressed files in 0.9.5
-rw-r--r--apt-pkg/contrib/mmap.cc1
-rw-r--r--debian/changelog2
2 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc
index aaa9da44f..3e6ef3520 100644
--- a/apt-pkg/contrib/mmap.cc
+++ b/apt-pkg/contrib/mmap.cc
@@ -102,6 +102,7 @@ bool MMap::Map(FileFd &Fd)
{
// for readonly, we don't need sync, so make it simple
Base = malloc(iSize);
+ SyncToFd = new FileFd();
return Fd.Read(Base, iSize);
}
// FIXME: Writing to compressed fd's ?
diff --git a/debian/changelog b/debian/changelog
index 25f658fe3..eb3c39e3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,8 @@ apt (0.9.7.3) UNRELEASED; urgency=low
second (filebased) constructor of DynamicMMap (Closes: #677704)
- refer to APT::Cache-Start in case the growing failed as if -Limit is
really the offender it will be noted in a previous error message.
+ - for filesystems not supporting mmap'ing a file we need to use a
+ SyncToFd dummy just as we did for compressed files in 0.9.5
-- David Kalnischkies <kalnischkies@gmail.com> Wed, 18 Jul 2012 11:45:57 +0200