Subject: CVS commit: src/usr.sbin/puffs/mount_psshfs
To: None <source-changes@NetBSD.org>
From: Antti Kantee <pooka@netbsd.org>
List: source-changes
Date: 05/20/2007 20:06:23
Module Name:	src
Committed By:	pooka
Date:		Sun May 20 20:06:23 UTC 2007

Modified Files:
	src/usr.sbin/puffs/mount_psshfs: psshfs.h subr.c

Log Message:
Observe that when doing ls -l, the attributes of the first file
getattr are usually still outstanding when we already would like
the result.  Instead of issueing another stat which will be serviced
only after all the other entries in the directory, record all the
outgoing readdir getattr buffers and if we encounter an outstanding
request when we need to fetch attrs, do a puffs_framev_framebuf_ccpromote()
wait for it instead of firing off the second query.  This shaves
almost 10% off the time for ls -lR.

Also, get rid of the SUPERREADDIR conditional, since it has penetrated
the code quite a bit and the #ifdef SUPERREADDIRs were starting to
look like tagliatelle alla bolognese (n.b. I love how it looks,
but I wouldn't like it either if my tagliatelle alla bolognese
looked like psshfs code).  Maybe it should be re-introduced in the
form of a switch?


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 src/usr.sbin/puffs/mount_psshfs/psshfs.h
cvs rdiff -r1.21 -r1.22 src/usr.sbin/puffs/mount_psshfs/subr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.