diff options
| author | yamt <yamt@NetBSD.org> | 2002-12-15 07:25:37 +0000 |
|---|---|---|
| committer | yamt <yamt@NetBSD.org> | 2002-12-15 07:25:37 +0000 |
| commit | ad4e5e579343decc9679aee4cee3e6e15520032f (patch) | |
| tree | c9c3db63c5607256e74741d553a8210d7d008141 /libexec | |
| parent | 74fe783bef7fc475b18e871100c5d0dd30199526 (diff) | |
for -b, use ssize instead of segshift.
segshift is invalid for v2 filesystems.
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/lfs_cleanerd/cleanerd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/lfs_cleanerd/cleanerd.c b/libexec/lfs_cleanerd/cleanerd.c index 19aedbfd68c..10b5e53d760 100644 --- a/libexec/lfs_cleanerd/cleanerd.c +++ b/libexec/lfs_cleanerd/cleanerd.c @@ -1,4 +1,4 @@ -/* $NetBSD: cleanerd.c,v 1.39 2002/06/14 00:58:40 perseant Exp $ */ +/* $NetBSD: cleanerd.c,v 1.40 2002/12/15 07:25:37 yamt Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ #if 0 static char sccsid[] = "@(#)cleanerd.c 8.5 (Berkeley) 6/10/95"; #else -__RCSID("$NetBSD: cleanerd.c,v 1.39 2002/06/14 00:58:40 perseant Exp $"); +__RCSID("$NetBSD: cleanerd.c,v 1.40 2002/12/15 07:25:37 yamt Exp $"); #endif #endif /* not lint */ @@ -524,7 +524,7 @@ clean_fs(FS_INFO *fsp, unsigned long (*cost_func)(FS_INFO *, SEGUSE *), if (options & CLEAN_BYTES) { /* Count bytes */ cleaned_bytes = 0; - to_clean = nsegs << fsp->fi_lfs.lfs_segshift; + to_clean = nsegs * fsp->fi_lfs.lfs_ssize; for (; i && cleaned_bytes < to_clean; i--, ++sp) { if (add_segment(fsp, sp, sbp) < 0) { syslog(LOG_WARNING,"add_segment failed" |
