Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/lfs_cleanerd Don't "compress" segment data if we wer...
details: https://anonhg.NetBSD.org/src/rev/49dd8d7614b1
branches: trunk
changeset: 499572:49dd8d7614b1
user: perseant <perseant%NetBSD.org@localhost>
date: Thu Nov 23 23:01:55 2000 +0000
description:
Don't "compress" segment data if we were using mmap instead of malloc/copy
to read the segment.
diffstat:
libexec/lfs_cleanerd/cleanerd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 22caa84941ba -r 49dd8d7614b1 libexec/lfs_cleanerd/cleanerd.c
--- a/libexec/lfs_cleanerd/cleanerd.c Thu Nov 23 22:56:53 2000 +0000
+++ b/libexec/lfs_cleanerd/cleanerd.c Thu Nov 23 23:01:55 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cleanerd.c,v 1.26 2000/11/22 22:17:39 perseant Exp $ */
+/* $NetBSD: cleanerd.c,v 1.27 2000/11/23 23:01:55 perseant Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -40,7 +40,7 @@
#if 0
static char sccsid[] = "@(#)cleanerd.c 8.5 (Berkeley) 6/10/95";
#else
-__RCSID("$NetBSD: cleanerd.c,v 1.26 2000/11/22 22:17:39 perseant Exp $");
+__RCSID("$NetBSD: cleanerd.c,v 1.27 2000/11/23 23:01:55 perseant Exp $");
#endif
#endif /* not lint */
@@ -811,7 +811,7 @@
}
/* Compress segment buffer, if necessary */
- if (slp->sl_bytes < seg_size(lfsp) / 2) {
+ if (!do_mmap && slp->sl_bytes < seg_size(lfsp) / 2) {
if (debug > 1)
syslog(LOG_DEBUG, "compressing: %d < %d",
(int)slp->sl_bytes, seg_size(lfsp) / 2);
Home |
Main Index |
Thread Index |
Old Index