DragonFly BSD
DragonFly kernel List (threaded) for 2005-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: dirent changes


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 25 Aug 2005 17:13:30 -0700 (PDT)

    I'm trying to figure out this part of the patch.  What's the issue
    with ncookies being taken out of synch with the original uio ?

						-Matt

Index: vfs/ufs/ufs_vnops.c
===================================================================
RCS file: /home/joerg/wd/repository/dragonflybsd/src/sys/vfs/ufs/ufs_vnops.c,v
retrieving revision 1.30
diff -u -r1.30 ufs_vnops.c
--- vfs/ufs/ufs_vnops.c 10 Aug 2005 16:46:17 -0000      1.30
+++ vfs/ufs/ufs_vnops.c 19 Aug 2005 12:30:03 -0000
@@ -1680,12 +1680,12 @@
                                    dp->d_name);
                        }
 
+                       if (!error)
+                               ncookies++;
                        if (retval)
                                break;
                        /* advance dp */
                        dp = (struct direct *)((char *)dp + dp->d_reclen); 
-                       if (!error)
-                               ncookies++;
                }
                /* we need to correct uio_offset */
                uio->uio_offset = startoffset + (caddr_t)dp - dirbuf;





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