GEOM/libdisk problem on pc98

2002-11-04 Thread Takahashi Yoshihiro
The test program for libdisk is a failure in pc98 disks. I wonder at why pc98 disks don't have their type ('ty') in the result of kern.geom.conftxt, but i386 disks have. #./tst01 da0 PC98 [da0s1] 2 40958 error = -1 BSD [da0s1b] 2 1024 error = 310 BSD [da0s1a] 1026 39934 error = 310 c 0x8062040

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread John Hay
USB is only the transport. It doesn't add or remove functionality (the only exception being probing for LUNs on CBI devices). If you want to determine the geometry you will have to do this through SCSI commands. I was hoping that the CAM code would be smart enough to request the details

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread M. Warner Losh
In message: [EMAIL PROTECTED] John Hay [EMAIL PROTECTED] writes: : What is the GET_GEOMETRY used for anyway? : : Well the short version of the problem is that fdisk -BI disk works : on -stable to get a FreeBSD partition on the Compact Flash. This does : not work on -current anymore.

Re: GEOM/libdisk problem on pc98

2002-11-04 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Takahashi Yoshihiro writes: The test program for libdisk is a failure in pc98 disks. I wonder at why pc98 disks don't have their type ('ty') in the result of kern.geom.conftxt, but i386 disks have. I still have practically no documentation of the PC98 format and no

Re: WIne freezes -current for half a year

2002-11-04 Thread Ulrich 'Q' Spoerlein
On Sun, 3 Nov 2002 18:26:50 -0800 Alex Zepeda [EMAIL PROTECTED] wrote: Actually, I think he's complaining that WINE isn't working in -current. Yup. That's about right. Last time I tried Wine (sometime within the past three or four months) I was trying to install either Free Agent or WinMX.

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nick Hibma
Well the short version of the problem is that fdisk -BI disk works on -stable to get a FreeBSD partition on the Compact Flash. This does not work on -current anymore. I have traced that back to the commit in umass.c rev 1.61 that removed the fake geometry setting and just leave the cylinders,

Re: cvs commit: src/sys/fs/specfs spec_vnops.c

2002-11-04 Thread Stijn Hoop
On Mon, Nov 04, 2002 at 08:48:01AM +0100, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Doug Barton writes: Kirk, I'm adding a bunch of people to the list who were involved in a thread on -current on this topic. I also tried this change and noticed that things did seem a tiny bit

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nick Hibma
Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Nick fdisk likely should do something sane in the face of such insanity, but it is unclear what and fdisk is a royal pita to work on anyway :-( Warner -- [EMAIL

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-04 Thread Markus Friedl
yes, geteuid() could work, too, but why is ssh-agent running with a privileged user id? shouldn't both the real and effective user id be the uid of the user? On Sun, Nov 03, 2002 at 08:49:02PM +0100, Alexander Leidinger wrote: Hi, [Markus: this is on FreeBSD-current with $OpenBSD:

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread John Hay
Well the short version of the problem is that fdisk -BI disk works on -stable to get a FreeBSD partition on the Compact Flash. This does not work on -current anymore. I have traced that back to the commit in umass.c rev 1.61 that removed the fake geometry setting and just leave the

Weird NFS Client behaviour?

2002-11-04 Thread Juli Mallett
I'm seeing some very dodgy behaviour in my home NFS environment. I have a 4.7-RC2 box serving up /export, and this machine is called 'thefather'. I have my laptop, 5.0-CURRENT (a day or two stale), and this machine is called 'luna'. I also have a 4.7-STABLE (a week or two stale) box, called

Re: WIne freezes -current for half a year

2002-11-04 Thread Terry Lambert
Alex Zepeda wrote: On Sun, Nov 03, 2002 at 02:36:41PM -0800, Terry Lambert wrote: My understanding of his post was that, 6 months later, the machine unfreezes, and everything works normally... 8-) 8-). Actually, I think he's complaining that WINE isn't working in -current. Yup.

alpha tinderbox failure

2002-11-04 Thread Dag-Erling Smorgrav
-- Rebuilding the temporary build tree -- stage 1: bootstrap tools -- stage 2: cleaning up the object tree

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-04 Thread Dag-Erling Smorgrav
Markus Friedl [EMAIL PROTECTED] writes: yes, geteuid() could work, too, but why is ssh-agent running with a privileged user id? shouldn't both the real and effective user id be the uid of the user? There seems to be a bug in our pam_ssh(8). It switches to user privileges when reading the

Re: cvs commit: src/sys/fs/specfs spec_vnops.c

2002-11-04 Thread Stijn Hoop
On Mon, Nov 04, 2002 at 09:49:06AM +0100, Stijn Hoop wrote: On Mon, Nov 04, 2002 at 08:48:01AM +0100, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Doug Barton writes: Kirk, I'm adding a bunch of people to the list who were involved in a thread on -current on this topic. I

Ports funkyness

2002-11-04 Thread Daniel O'Connor
OK, so I update my ancient -current box and then realise I have to update all my packages too.. No problem except I get funky stuff like - [guppy 23:02] /usr/ports/sysutils/portupgrade sudo portupgrade windowmaker-0.65.1_1 [Updating the pkgdb

Re: ssh-agent broken with pam_ssh for xdm (+ fix for ssh-agent.c)

2002-11-04 Thread Alexander Leidinger
On Mon, 04 Nov 2002 12:11:40 +0100 Dag-Erling Smorgrav [EMAIL PROTECTED] wrote: Dag-Erling Smorgrav [EMAIL PROTECTED] writes: There seems to be a bug in our pam_ssh(8). It switches to user privileges when reading the user's keys, but switches back before starting the agent, instead of

Re: Current on PPC

2002-11-04 Thread Peter Grehan
Hi Paolo, What's the status of FreeBSD-CURRENT on PPC (mainly PowerMac stuff)? It's riding out the storm of all the recent -current changes. There should be another snapshot available soon - details will be posted on freebsd-ppc. later, Peter. To Unsubscribe: send mail to [EMAIL PROTECTED]

cdrecord-ProDVD ready

2002-11-04 Thread Joerg Schilling
Hi all, I just put out a cdrecord-ProDVD binary for FreeBSD on ftp://ftp.fokus.gmd.de/pub/unix/cdrecord/ProDVD/ It has been compiled on 4.4 but also runs on curent. Note that there is not yet a version for commercial use. The recent binary will only work with the free

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread John Hay
Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Hmmm, I made an interesting discovery. I searched through some of the scsi drivers, sys/dev/{aha|ahb|aic*|sym}, looking for XPT_CALC_GEOMETRY and they all fake the

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], John Hay wri tes: Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Hmmm, I made an interesting discovery. I searched through some of the scsi drivers, sys/dev/{aha|ahb|aic*|sym},

USB problem (Who owns USB code in -current?)

2002-11-04 Thread Maksim Yevmenkin
Dear Hackers, Who owns USB code in -current? I need an USB expert advice on the FreeBSD specific USB problem. Basically whenever i put my laptop into docking station and try to plug Bluetooth USB dongle i get uhub1: device problem, disabling port 1 message. This problem *does not* exist when i

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 01:16, Hidetoshi Shimokawa [EMAIL PROTECTED] wrote: I have the same problem and reverting rev. 1.134 of /sys/kern/uipc_socket.c fixes the problem. The change might have something wrong with a loopback interface. True. I had been

Patch for fetch

2002-11-04 Thread Craig Boston
The attached is a quick patch for fetch(1). It adds a new option (-g) that forces the transfer progress to be printed, even if it thinks that stderr is not a tty or that it is not the foreground process. This is useful for me in a program that runs make fetch in a port directory through a pipe

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, Hidetoshi Shimokawa wrote: I have the same problem and reverting rev. 1.134 of /sys/kern/uipc_socket.c fixes the problem. The change might have something wrong with a loopback interface. /\ Hidetoshi Shimokawa \/ [EMAIL PROTECTED] PGP public key:

Re: libc size

2002-11-04 Thread Tim Kientzle
Miguel Mendez wrote: Tim Kientzle [EMAIL PROTECTED] wrote: 1) Fragility. Could a naive sysadmin (or a dying disk) break /[s]bin? What if the ldconfig hints files were hosed? Is ld-elf.so truly bulletproof? Agreed, and, fortunately, that was taken into account with the introduction

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nick Hibma
Hm, the only one that does something different is the iir/iir.c driver. I guess the best thing is to just copy what's in the aha driver. Nick Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Hmmm, I made

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Sun, 3 Nov 2002, Doug Barton wrote: On Mon, 4 Nov 2002, Hidetoshi Shimokawa wrote: I have the same problem and reverting rev. 1.134 of /sys/kern/uipc_socket.c fixes the problem. Confirmed here too, thanks for the tip. I had looked over the recent commits to /etc/lib/*, but none of

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Terry Lambert
Kelly Yancey wrote: I suspect something in lib/libc/net/res_send.c is using special knowledge of the contents of the socket buffer so calculate the real amount of data that can be read (which this patch does automatically). I'm looking into it. ...To ensure that the read does not block, and

Re: WIne freezes -current for half a year

2002-11-04 Thread Jan Stocker
It'd probably be a good idea to try it again before reporting it as if it were still not working. It may or may not have been fixed by the signal and FP register state commits, etc., so just because it was broken doesn't mean it's broken now. Even if it *is* still broken, it could be

Re: fdisk -BI ob clean disk broken

2002-11-04 Thread Nate Lawson
On Sat, 2 Nov 2002, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], John Hay wri tes: Hmmm. I just noticed that the disks probe with zero values for the heads, sectors/track and cylinders. I have tried two different USB CF readers and both do it. On 4.x it probes with the correct

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nate Lawson
See XPT_CALC_GEOMETRY in /sys/dev/aic7xxx/aic7xxx_osm.c On Mon, 4 Nov 2002, Nick Hibma wrote: Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Nick fdisk likely should do something sane in the face of such

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nate Lawson
On Mon, 4 Nov 2002, John Hay wrote: Let's work on the 'proper' solution first. What SCSI commands are suitable for getting the geometry, generically on a device? Hmmm, I made an interesting discovery. I searched through some of the scsi drivers, sys/dev/{aha|ahb|aic*|sym}, looking for

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Nate Lawson writ es: It might be more useful for GEOM to query the BIOS for the physical values and provide a way for upper levels (like CAM) to retrieve this. This is a driver task. besides GEOM is above CAM, not below it. -- Poul-Henning Kamp | UNIX since

Re: libc size

2002-11-04 Thread David O'Brien
On Mon, Nov 04, 2002 at 11:32:38AM -0800, Tim Kientzle wrote: Oh. So the real size of NetBSD's /bin and /sbin includes another 2.4M for /rescue. That makes it less impressive. I don't find the duplication appealing, either. (Why not just put the /rescue versions directly into /bin and

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nick Hibma
That wasn't quite what I meant. I was referring to SCSI commands that are sent to the device that return info that would be usable as the number of heads and cylinders. But I guess faking them like the ah[abc] drivers do will work, as this is what many systems are already running with. Nick

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Nate Lawson
On Mon, 4 Nov 2002, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Nate Lawson writ es: It might be more useful for GEOM to query the BIOS for the physical values and provide a way for upper levels (like CAM) to retrieve this. This is a driver task. besides GEOM is above CAM, not

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, Terry Lambert wrote: Kelly Yancey wrote: I suspect something in lib/libc/net/res_send.c is using special knowledge of the contents of the socket buffer so calculate the real amount of data that can be read (which this patch does automatically). I'm looking into it.

Re: umass CF geometry problems, was Re: fdisk -BI ob clean diskbroken

2002-11-04 Thread Terry Lambert
Nate Lawson wrote: 2. Adding a MI way to call an MD routine that will get the disk's physical geometry. I don't know much about the best way to do this. Perhaps we could invent a Common Access Method (CAM), and make it part of that API... -- Terry To Unsubscribe: send mail to [EMAIL

alpha tinderbox failure

2002-11-04 Thread Dag-Erling Smorgrav
-- Rebuilding the temporary build tree -- stage 1: bootstrap tools -- stage 2: cleaning up the object tree

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Terry Lambert
Kelly Yancey wrote: It doesn't matter. It isn't just DNS lookups, mountd fails to run too because it cannot connect to portmap via localhost. Oddly, in both cases sendto() is returning with errno = 49 (EADDRNOTAVAIL). I've tracked it down to this code in sys/netinet/ip_output.c: /*

5.0 Current experiences

2002-11-04 Thread Jerry Bell
I've been hammering 5.0 current for about two months now and I have to say, it's been working really well for me. Are there any gotchas or things I can help test out? I did have a problem on a build as of 10/28 where enabling the MAC functionality in rc.conf would send the system into never

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread David O'Brien
On Mon, Nov 04, 2002 at 10:45:42AM -0800, Kelly Yancey wrote: On Mon, 4 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 01:16, Hidetoshi Shimokawa [EMAIL PROTECTED] wrote: I have the same problem and reverting rev. 1.134 of /sys/kern/uipc_socket.c fixes the problem. The change might

SIO Overflows in -Current

2002-11-04 Thread Glenn Gombert
Is there any way to eliminate (or reduce) the SIO serial overflows that seem to occu often on several FreeBSD systems that I have. It seems to limit remote kernel debugging to about 19.2 Kbaud.. Thanks, -- Glenn Gombert [EMAIL PROTECTED] Never trust any operating system you don't have

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread Giorgos Keramidas
On 2002-11-04 10:45, Kelly Yancey [EMAIL PROTECTED] wrote: On Mon, 4 Nov 2002, Giorgos Keramidas wrote: True. I had been seeing problems with network connections the last days, and was already in the process of backing out changes one by one when I saw this. Reverting 1.134 fixes things

uuid.h is not C++ safe

2002-11-04 Thread Patrick Hartling
I was just about to put the new DCE 1.1 UUID functions into use in some C++ code, but linking fails because the function prototypes in uuid.h are not protected with the __cplusplus/extern C bits. It's easy enough for me to fix my local copy, but I'm sure this same thing could trip up other

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, Terry Lambert wrote: Kelly Yancey wrote: It doesn't matter. It isn't just DNS lookups, mountd fails to run too because it cannot connect to portmap via localhost. Oddly, in both cases sendto() is returning with errno = 49 (EADDRNOTAVAIL). I've tracked it down to

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, David O'Brien wrote: On Mon, Nov 04, 2002 at 10:45:42AM -0800, Kelly Yancey wrote: On Mon, 4 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 01:16, Hidetoshi Shimokawa [EMAIL PROTECTED] wrote: I have the same problem and reverting rev. 1.134 of

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Tue, 5 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 10:45, Kelly Yancey [EMAIL PROTECTED] wrote: On Mon, 4 Nov 2002, Giorgos Keramidas wrote: True. I had been seeing problems with network connections the last days, and was already in the process of backing out changes one by one

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread David O'Brien
On Mon, Nov 04, 2002 at 05:47:39PM -0800, Kelly Yancey wrote: A better question is why you are fixing a non-critical, over-1-year-old bug in networking code this close to the release??? Networking is our bread and butter, and changes to it can be tricky. A known non-critical bug that has

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread Giorgos Keramidas
On 2002-11-04 18:38, Kelly Yancey [EMAIL PROTECTED] wrote: Thanks for the info. Are you sure that you only reverted the one delta? Yes. I just recompiled the kernel from -rHEAD and started logging things while I connected to my dialup provider. Apparently lo0 does have the 127.0.0.1 address

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Mon, 4 Nov 2002, David O'Brien wrote: On Mon, Nov 04, 2002 at 05:47:39PM -0800, Kelly Yancey wrote: A better question is why you are fixing a non-critical, over-1-year-old bug in networking code this close to the release??? Networking is our bread and butter, and changes to it can

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Kelly Yancey
On Tue, 5 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 18:38, Kelly Yancey [EMAIL PROTECTED] wrote: Thanks for the info. Are you sure that you only reverted the one delta? Yes. I just recompiled the kernel from -rHEAD and started logging things while I connected to my dialup provider.

minor nit in /usr/src/usr.sbin/apm/apm.c

2002-11-04 Thread Andrew Lankford
Stupid question perhaps, but was the inclusion of sys/file.h and sys/ioctl.h twice in /usr/src/usr.sbin/apm/apm.c done intentionally? Thanks Andrew Lankford To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread Hidetoshi Shimokawa
At Tue, 5 Nov 2002 03:12:05 +0200, Giorgos Keramidas wrote: The curious thing is that Sendmail or ssh fail to look up hostnames, while running host(1) works. I don't know if this is of any help, but if you need more data about the local setup let me know. host(or dig, nslookup) doesn't use

What's the status of devfs(8)?

2002-11-04 Thread Andrew Lankford
When I try commands like: #devfs rule add path speaker mode 666 I get the following reply: devfs rule: ioctl DEVFSIO_RADD: Input/output error but /dev/devctl is in my /dev (devfs) partition. My kernel: FreeBSD bogushost2 5.0-CURRENT FreeBSD 5.0-CURRENT #17: Mon Nov 4 20:27:52 EST 2002

Re: Can't resolve hosts via dns on the command line with latest -current

2002-11-04 Thread Manfred Antar
At 08:25 PM 11/4/2002 -0800, Kelly Yancey wrote: On Tue, 5 Nov 2002, Giorgos Keramidas wrote: On 2002-11-04 18:38, Kelly Yancey [EMAIL PROTECTED] wrote: Thanks for the info. Are you sure that you only reverted the one delta? Yes. I just recompiled the kernel from -rHEAD and started logging

Re: WIne freezes -current for half a year

2002-11-04 Thread Jan Stocker
On Mon, 2002-11-04 at 22:00, Jan Stocker wrote: It'd probably be a good idea to try it again before reporting it as if it were still not working. It may or may not have been fixed by the signal and FP register state commits, etc., so just because it was broken doesn't mean it's broken

Re: Why is my -current system Hard Locking?

2002-11-04 Thread Nate Lawson
On Mon, 4 Nov 2002, Joel M. Baldwin wrote: I'm getting quite frustrated with -current. I've been running it for years and had relatively few problems. However for quite some time now I've had a problem with Hard Locks. By Hard Lock I mean that the system doesn't respond to ether traffic,

Re: WIne freezes -current for half a year

2002-11-04 Thread Jan Stocker
We've a compile problem for wine, which should be fixed first before we con continue this thread Jan FYI: text_i386.o context_i386.c context_i386.c: In function `get_thread_context': context_i386.c:376: structure has no member named `dr0' context_i386.c:377: structure has no member

Re: umass CF geometry problems, was Re: fdisk -BI ob clean disk broken

2002-11-04 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Nate Lawson writ es: On Mon, 4 Nov 2002, Poul-Henning Kamp wrote: In message [EMAIL PROTECTED], Nate Lawson writ es: It might be more useful for GEOM to query the BIOS for the physical values and provide a way for upper levels (like CAM) to retrieve this. This

Re: libc size

2002-11-04 Thread Max Khon
hi, there! On Mon, Nov 04, 2002 at 01:57:35PM -0800, David O'Brien wrote: another 2.4M for /rescue. That makes it less impressive. I don't find the duplication appealing, either. (Why not just put the /rescue versions directly into /bin and /sbin? That would be smaller still,

Re: Can't resolve hosts via dns on the command line with latest-current

2002-11-04 Thread Doug Barton
Kelly Yancey wrote: Thanks for the great trace and your patience. I believe I found the root of the problem. Could you please try the attached patch? Works for me, thanks. Doug To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-current in the body of the message

Re: libc size

2002-11-04 Thread Jake Burkholder
Apparently, On Tue, Nov 05, 2002 at 12:54:54PM +0600, Max Khon said words to the effect of; hi, there! On Mon, Nov 04, 2002 at 01:57:35PM -0800, David O'Brien wrote: another 2.4M for /rescue. That makes it less impressive. I don't find the duplication appealing, either.

Re: libc size

2002-11-04 Thread Max Khon
hi, there! On Tue, Nov 05, 2002 at 02:18:23AM -0500, Jake Burkholder wrote: Before someone says you can dlopen() from static binaries in order to implement nsswitch, please provide the patch proving it. Our best FreeBSD minds don't think it can be done properly and sanely. I have