home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.minix
- Path: sparky!uunet!grebyn!escom!al
- From: al@escom.com (Al Donaldson)
- Subject: Re: strange behavior(?)
- Message-ID: <1993Jan10.194932.9702@escom.com>
- Reply-To: al@escom.COM (Al Donaldson)
- Organization: ESCOM Corp., Oakton VA (USA)
- References: <1992Dec22.162113.22648@udel.edu> <BzoL9v.Fv1@cs.vu.nl>
- Date: Sun, 10 Jan 1993 19:49:32 GMT
- Lines: 20
-
- In article <BzoL9v.Fv1@cs.vu.nl> kjb@cs.vu.nl (Kees J. Bot) writes:
- >Rory <cfctech%opusnet%opus@ph.gmr.com> writes:
- >> If more than 5 partitions are mounted, "ls -l" will "stumble"
- >> every time it comes to a file with a different owner or group.
- >
- >With five mounted partitions your block cache becomes crowded with bit
- >map blocks. Each time ls has to print another user name it calls
- >getpwnam(3), which reads /etc/passwd, that is no longer in the cache...
-
- The Prentice Hall 1.5 version of ls.c doesn't even cache the last user
- name (the code says it does, but it doesn't). It calls getpwnam()
- for _every_ file listed by ls. I posted a two-line patch to ls on
- 16 Sep 92 that fixed this problem. Email me for the patch if you're
- running 1.5 and interested in fixing this problem.
-
- But this doesn't sound like the problem listed above, otherwise it
- would "stumble" for every file listed.
-
- Al
-
-