This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1.1] Clean up netgroupcache
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Siddhesh Poyarekar <siddhesh at redhat dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, libc-alpha at sourceware dot org
- Date: Wed, 28 May 2014 11:05:21 +0200
- Subject: Re: [PATCH 1.1] Clean up netgroupcache
- Authentication-results: sourceware.org; auth=none
- References: <20140327040406 dot GA26264 at spoyarek dot pnq dot redhat dot com> <1499542 dot yzGAIksTkn at vapier> <20140327192254 dot GC1982 at domone dot podge> <20140327203207 dot GA2476 at domone dot podge> <20140327211516 dot GB2476 at domone dot podge> <20140328024737 dot GJ31211 at spoyarek dot pnq dot redhat dot com> <20140411143053 dot GB30142 at domone dot podge> <20140411165415 dot GM25518 at spoyarek dot pnq dot redhat dot com> <20140527202709 dot GA21440 at domone dot podge> <20140528015122 dot GA12497 at spoyarek dot pnq dot redhat dot com>
On Wed, May 28, 2014 at 07:21:22AM +0530, Siddhesh Poyarekar wrote:
> On Tue, May 27, 2014 at 10:27:09PM +0200, OndÅej BÃlka wrote:
> > > make check doesn't test nscd. You'll need to test this manually by
> > > adding various types of netgroups entries in /etc/netgroup.
> > >
> > How, I get back to this and now study manpages which is bit confusing. I
> > tried to install nis for that but ypcat does not seem to work, do you
> > have a test script?
>
> You don't need NIS to test it because you can add netgroup entries in
> a file called /etc/netgroup. I don't have a script handy to create
> these, but the netgroup manpage[1] should help you with the netgroup
> file format to come up with one. The file format is quite simple
> actually. Each netgroup entry is of type:
>
> netgroup_name (host1, user1, domain1) (host2, user2, domain2) ...
>
I already have these but do not know how to do query these, a nscd -g gives
yes cache is enabled
no cache is persistent
no cache is shared
211 suggested size
216064 total data pool size
0 used data pool size
28800 seconds time to live for positive entries
20 seconds time to live for negative entries
0 cache hits on positive entries
0 cache hits on negative entries