Re: extattr problems?

2009-01-11 Thread pluknet
2009/1/11 Tim Kientzle kient...@freebsd.org: pluknet wrote: 2009/1/11 Tim Kientzle kient...@freebsd.org: FreeBSD 6.3: fd = open(test, O_WRONLY | O_CREAT | O_EXCL, 0777); n = extattr_set_fd(fd, EXTATTR_NAMESPACE_USER, testattr, 1234, 4); After this, fd=3, n is non-zero, errno = 9 (EBADF)

Re: kernel panic

2009-01-11 Thread Peter Jeremy
On 2009-Jan-09 00:05:47 -0800, Kamlesh Patel shilp.ka...@yahoo.com wrote: How do i recover the system from this error. I can't reload the loader.old If you press any key during the first spinner, you should get a prompt similar to the following: FreeBSD/i386 BOOT Default: 0:ad(0,a)/boot/loader

Re: kernel dump with 7.1-RELEASE

2009-01-11 Thread Kostik Belousov
On Fri, Jan 09, 2009 at 06:39:53PM +0200, Omer Faruk Sen wrote: Hi, I am having kernel dump with FreeBSD 7.1: Here is crashinfo output of it (Actually i don't know the state of crashinfo in Fbsd 7.1) 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan 1 08:58:24 UTC 2009

Re: /dev/dsp* /dev/audio* devices not present

2009-01-11 Thread Rick C. Petty
On Sat, Jan 10, 2009 at 04:20:58AM -0800, per...@pluto.rain.com wrote: Rick C. Petty rick-freebsd2...@kiwi-computer.com wrote: That's not how devfs works. It's actually a feature that devfs doesn't list everything ever possible http://storage9.myopera.com/freejerk/files/bug-feature.jpg

Re: kernel dump with 7.1-RELEASE

2009-01-11 Thread Omer Faruk Sen
Hi Kostik, I will try that patch and will return to -hackers if that solves semid not allocated problem. Thanks for prompt action. Best Regards. On Sun, Jan 11, 2009 at 5:58 PM, Kostik Belousov kostik...@gmail.comwrote: On Fri, Jan 09, 2009 at 06:39:53PM +0200, Omer Faruk Sen wrote: Hi,

Re: Small change to 'ps'

2009-01-11 Thread Garance A Drosehn
At 1:51 AM -0500 1/9/09, Mike Meyer wrote: On Wed, 7 Jan 2009 Sheldon Givens shel...@sigsegv.ca wrote: And I guess I just feel like running a second command to do what should be possible to do with the first command (and is, on many platforms. ps --no-headers on linux for example) is a

Question about panic in brelse()

2009-01-11 Thread Christoph Mallon
Hi, I observe a failed assertion in the VFS regarding a buffer. I investigated a bit and now I want to present my findings and I have a question: Assume I have a buffer with b_iocmd = BIO_WRITE b_ioflags = BIO_ERROR b_error = EIO b_flags = B_NOCACHE passed to brelse() in

Re: extattr problems?

2009-01-11 Thread Tim Kientzle
pluknet wrote: It's strange.. FreeBSD jaw.ripn.net 6.3-RELEASE-p5. works for me (tm), extattr_set_fd() returns 4 as expected. Thank you! *That* was my mistake; I thought extattr_set_fd() returned 0 on success, non-zero on error. I re-read the man page and now everything makes sense. Thank

Re: extattr problems?

2009-01-11 Thread Tim Kientzle
I think this one is a bug. It appears that extattr_set_fd() obeys the permissions on the file, not the permissions of the descriptor. In particular, I see this on FreeBSD 6.3: [...@dark /tmp]$ ./extattr_test fd=3 extattr_set_fd() = -1 errno = 13 (Permission denied) [...@dark /tmp]$ cat

Re: /dev/dsp* /dev/audio* devices not present

2009-01-11 Thread perryh
Rick C. Petty rick-freebsd2...@kiwi-computer.com wrote: On Sat, Jan 10, 2009 at 04:20:58AM -0800, per...@pluto.rain.com wrote: Rick C. Petty rick-freebsd2...@kiwi-computer.com wrote: That's not how devfs works. It's actually a feature that devfs doesn't list everything ever possible