* Oops, new tar speedup patch
@ 1998-05-17 12:15 Felix von Leitner
1998-05-17 14:11 ` Ensoniq AudioPCI card running? Stefan Reinauer
0 siblings, 1 reply; 2+ messages in thread
From: Felix von Leitner @ 1998-05-17 12:15 UTC (permalink / raw)
To: axp-list, linux-kernel, tar-bugs
Small omission in the group cache that would have marked all group
lookups after the first one as failed.
Sorry!
Felix
--- names.c Sun May 17 14:14:42 1998
+++ names.c.new Sun May 17 14:14:11 1998
@@ -48,6 +48,9 @@
static uid_t cached_uid; /* valid only if cached_uname is not empty */
static gid_t cached_gid; /* valid only if cached_gname is not empty */
+int lookup_failed = 0;
+int glookup_failed = 0;
+
/*------------------------------------------.
| Given UID, find the corresponding UNAME. |
`------------------------------------------*/
@@ -111,12 +114,18 @@
passwd = getpwnam (uname);
if (passwd)
{
+ lookup_failed = 0;
cached_uid = passwd->pw_uid;
strncpy (cached_uname, uname, UNAME_FIELD_SIZE);
}
- else
+ else {
+ lookup_failed = 1;
+ strncpy (cached_uname, uname, UNAME_FIELD_SIZE);
return 0;
+ }
}
+ if (lookup_failed)
+ return 0;
*uidp = cached_uid;
return 1;
}
@@ -137,12 +146,18 @@
group = getgrnam (gname);
if (group)
{
+ glookup_failed = 0;
cached_gid = group->gr_gid;
strncpy (cached_gname, gname, GNAME_FIELD_SIZE);
}
- else
+ else {
+ glookup_failed = 1;
+ strncpy (cached_gname, gname, GNAME_FIELD_SIZE);
return 0;
+ }
}
+ if (glookup_failed)
+ return 0;
*gidp = cached_gid;
return 1;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Ensoniq AudioPCI card running?
1998-05-17 12:15 Oops, new tar speedup patch Felix von Leitner
@ 1998-05-17 14:11 ` Stefan Reinauer
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Reinauer @ 1998-05-17 14:11 UTC (permalink / raw)
To: axp-list
-----BEGIN PGP SIGNED MESSAGE-----
Hi...
has anyone tried to get the Ensoniq AudioPCI soundcard
working on Linux/Alpha?
I got the driver to compile and insmod cleanly, even
reading from /dev/dsp seems to work fine, but anything
written to /dev/dsp will lock up the machine because it
does an interruptable_sleep_on and doesn't wake up again.
(Seems like after you get 7 interrupts, the 8th won't come)
My card isn't the original ensoniq audiopci, but the clone
spacewalker soundsystem PCI 3d, which identifies itself as
ensoniq card.
TIA,
Stefan
- --
21x64 - What else?
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQEVAwUBNV7v6Su+zKndEmP5AQFrdgf/az9NIDg39/mtZUjU7KUXXigSYeKEY2xI
Zp4a+0Dn4jK2LC3N5d4bQum1XCYMxmF8RYbpzSfCIMG3Nm5j9+z2MBOxrv5cZe9S
nznfrspRqxuAWrfptTpJcsSBuV+Cd0owgqBFWd0kT0ELA/vtkZOOd+FqJB0Rd7hg
4TWFRh5g4NgE05Smw3i3Aykv2LW+9ennsWEOfKMxZjQ3SJ+6o7qXP7AbBT9gNTK5
QffDZ5cYC/6l7N1BHHgL3x0Mfz/+7XRhlvhO14Xn9oT3lNJJEEdrti1VB6R322Dc
HWdE1n7nhhpdGFZq/uXO81hd1O3VEFJ75qcNq4uXVfnDq7IjcSx/Lg==
=XgW7
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-05-17 14:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-17 12:15 Oops, new tar speedup patch Felix von Leitner
1998-05-17 14:11 ` Ensoniq AudioPCI card running? Stefan Reinauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox