Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/chs-ubc2]: src/sys/ufs/ufs Put back the calls to cluster_*(), but #if 0 ...



details:   https://anonhg.NetBSD.org/src/rev/e42390594a26
branches:  chs-ubc2
changeset: 471347:e42390594a26
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jun 22 02:29:49 1999 +0000

description:
Put back the calls to cluster_*(), but #if 0 them out.  This is mostly
for use as a reference point.

diffstat:

 sys/ufs/ufs/ufs_readwrite.c |  16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 2d1651242a90 -r e42390594a26 sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c       Tue Jun 22 02:28:27 1999 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c       Tue Jun 22 02:29:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_readwrite.c,v 1.22.4.1 1999/06/07 04:25:35 chs Exp $       */
+/*     $NetBSD: ufs_readwrite.c,v 1.22.4.2 1999/06/22 02:29:49 thorpej Exp $   */
 
 /*-
  * Copyright (c) 1993
@@ -145,6 +145,11 @@
 #else
                if (lblktosize(fs, nextlbn) >= ip->i_ffs_size)
                        error = bread(vp, lbn, size, NOCRED, &bp);
+#if 0
+               else if (doclusterread)
+                       error = cluster_read(vp,
+                           ip->i_ffs_size, lbn, size, NOCRED, &bp);
+#endif
                else if (lbn - 1 == vp->v_lastr) {
                        int nextsize = BLKSIZE(fs, ip, nextlbn);
                        error = breadn(vp, lbn,
@@ -343,8 +348,13 @@
                if (ioflag & IO_SYNC)
                        (void)bwrite(bp);
                else if (xfersize + blkoffset == fs->fs_bsize)
-                       bawrite(bp);
-               else
+#if 0
+                       if (doclusterwrite)
+                               cluster_write(bp, ip->i_ffs_size);
+                       else
+#endif
+                               bawrite(bp);
+                else
                        bdwrite(bp);
 #endif
                if (error || xfersize == 0)



Home | Main Index | Thread Index | Old Index