X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=BSbzQ+Ep+r1Yy4ll8YT5bnThKF5mlO1jWYXFabV9mKVC185KgqStS
	6DEePj09WUewCvYgbwEVGTO45fQusdN4bZPEhzGUnnUo/hue825BsonKZG+BYjnR
	3prhdzc9Kgr86EhPcJ9mUrysPJUyv5c3nTceq70garX+zMTbtYZ3Rs=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=wCa0VBXaZjNW8fJZ1teanRzJ57o=; b=nJKLHvCZmCvX/NT0cAV7bLB1LSeo
	qMr/P+8mVMuAnbdMGD9sbvWq4aJj/DNB7zJJFcwjHFPwYqitvlLQNb44Zu0BSok4
	FIHVaXYNgLQCTLrW4WbmhqQHrOzbAnAB+IRzVgpCCk2PWfsmfw7CsnQlI6jROIs0
	sNAWf241vWu6FOU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2
X-HELO: calimero.vinschen.de
Date: Thu, 13 Feb 2014 11:00:25 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: get rid of getpwent? (Was: cygwin-1.7.28 getpwent header declaration changes ?)
Message-ID: <20140213100025.GB24159@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <52F92D58.9030408@etr-usa.com> <52F95D1D.4050108@tiscali.co.uk> <4510121021.20140211062515@mtu-net.ru> <52FAB14C.8060800@tiscali.co.uk> <52FABAF5.2060701@etr-usa.com> <52FAD730.9090507@redhat.com> <20140212090804.GM2821@calimero.vinschen.de> <52FB9E51.7030607@cornell.edu> <20140212195931.GA2246@calimero.vinschen.de> <20140212213729.GA5589@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn"
Content-Disposition: inline
In-Reply-To: <20140212213729.GA5589@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.21 (2010-09-15)

--x+6KMIRAuhnl3hBn
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Feb 12 16:37, Christopher Faylor wrote:
> On Wed, Feb 12, 2014 at 08:59:31PM +0100, Corinna Vinschen wrote:
> >There's only one tiny problem.  Whatever I think about the full
> >enumerate being right or wrong, I have this vague feeling that I'd like
> >to have this implemented fully at one point.  My cat disapproves, but we
> >can't agree on everything, I guess.  Another configuration option in
> >/etc/nsswitch.conf might comfort her.
>=20
> I don't know if this has been mentioned but would a cache help here,
> i.e., nscd?  I think that's how Linux deals with this type of situation.

Caching is wonderful for the usual requests for single entries from the
DB, and for this we have already two caches, the LSA cache and Cygwin's
own cache.  But caching doesn't help at all when enumerating.

There's also the problem to rely on an external program.  If it turns
out that the current implementation is too slow, I'm prepared to add
caching to cygserver to have a system-wide caching server, but Cygwin
shouldn't *require* that cygserver runs.  And either way, it still
wouldn't help when enumerating all accounts.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--x+6KMIRAuhnl3hBn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJS/Je4AAoJEPU2Bp2uRE+gvgEP/376dEwpWq1hI/Gz8fq4HnJc
U581jTSMp4DgxWaltr05Z3XfG8bvtiSwWhAq9hLE0g0n35UDhQkc4QOKcq4mFMJQ
Q2dBHFCIkQVK3kG8OHRdS8uG8p/NHbrS+CvKCTIzj4+YOX6LMI906yr1pIJatswX
O0ryMjnbR2D/2eBltXKwL8V+PUM6TbWYgqvYx0OBmXxnWGABHMvIyFmDWCz1rF2X
cW6Vtjvdho2wrZQ4OCaGI0vTofwZQ0KhWtVERZ1uPlUSt29FibqlPAk4WomK1z+6
GC6bUNyfn7dV7krimu6t9maQqLcoGO+p8tHyYYljDovwsmdP/R5B6Qq8R51BWNwi
xTjXiy7ihmvLCamrWa4XXvQ38zGbflkroDmU4Ws/lJGvMnjMTGSer4QXiVPEEVzX
lnljhq4TdYu5ht8zfzHsS5U3r5wFSIuuTEUdost4xhjpgBaWmiz4C/fYl5W/YIHq
RiA/n99m4FPGv4c5wUdWMDsjGMiR1MGpO12g2LXXJwjAy56Pn2ChRV9eU20d4f8S
tbRidH/PoVw+Fcu81N/h6kz/ZNoaOjkBl0mlhNHaqqneHs6DGI1k8/HH/emrH9D3
gBLRErDLxRHKDnX/sRRS5XZy+qRvi9lV5HOOIN0fB8Fzd8/J5rgW8VJcO1LhNum7
oCjHe0LCb+OwUUoExT2l
=k6x1
-----END PGP SIGNATURE-----

--x+6KMIRAuhnl3hBn--
