Re: Adding linux_link(2) system call, second round

2011-08-01 Thread Matthias Drochner
m...@netbsd.org said: Both behaviors are standard compliant, since SUSv2 says nothing about resolving symlinks or not. While the DESCRIPTION chapter doesn't tell it explicitely, we have the following in ERRORS: [ELOOP] A loop exists in symbolic links encountered during resolution of the

[PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread Emmanuel Dreyfus
On Sun, Jul 31, 2011 at 06:36:53PM +, Christos Zoulas wrote: I don't have an issue with it as long as: - fsck does not get confused - filesystems don't need to be modified to support it - there is consensus that this is not harmful - I am also ambivalent about

Re: pchb@acpi

2011-08-01 Thread Manuel Bouyer
On Mon, Aug 01, 2011 at 11:30:31AM +0200, Matthias Drochner wrote: bou...@antioche.eu.org said: device_properties() uses property lists, so I think poplists is right for your usage too. It looks like it's a property of a bus node and I can't see why it should be different from a device

Re: Adding linux_link(2) system call, second round

2011-08-01 Thread Joerg Sonnenberger
On Mon, Aug 01, 2011 at 04:05:33AM +0200, Emmanuel Dreyfus wrote: Joerg Sonnenberger jo...@britannica.bec.de wrote: Given the very small number of programs that manage to mess up the symlink usage, I'm kind of opposed to providing another system call just as work around for them. You

Re: Adding linux_link(2) system call, second round

2011-08-01 Thread Emmanuel Dreyfus
Joerg Sonnenberger jo...@britannica.bec.de wrote: You did not explain what problems it would introduce, did you? You are adding a lot of complexity to workaround portability issues of a single application. It is not that complex. See the patch I posted this morning, the thing is really

Re: Adding linux_link(2) system call, second round

2011-08-01 Thread Rhialto
On Mon 01 Aug 2011 at 10:50:50 +0200, Matthias Drochner wrote: While the DESCRIPTION chapter doesn't tell it explicitely, we have the following in ERRORS: [ELOOP] A loop exists in symbolic links encountered during resolution of the path1 or path2 argument. This implies that the

Re: Adding linux_link(2) system call, second round

2011-08-01 Thread Emmanuel Dreyfus
Rhialto rhia...@falu.nl wrote: LN(1) FreeBSD General Commands Manual LN(1) (...) -PWhen creating a hard link to a symbolic link, create a hard link to the symbolic link itself. This option cancels the -L option. I can add this this to

SATA: lost interrupt/reset failed (was: scsictl equivalent for SATA)

2011-08-01 Thread Edgar Fuß
But if you plugged the new drive in the same slot as the old one, you should be able to use it without extra steps. In the meantime, I figured out that the supposedly failed drive is OK. There seems to be something wrong with the SATA channel it was attached to: [...] svwsata0 at pci1 dev 14

Re: scsictl equivalent for SATA

2011-08-01 Thread Paul Goyette
drvctl should work for you - this was added in the last couple of months. On Mon, 1 Aug 2011, Manuel Bouyer wrote: On Mon, Aug 01, 2011 at 12:43:03PM +0200, Edgar Fuß wrote: I've got a hot-pluggable SATA drive in a RAID1 that failed. I've never been into this with SATA, only with SCA. What

Re: scsictl equivalent for SATA

2011-08-01 Thread Edgar Fuß
drvctl should work for you - this was added in the last couple of months. The server in question is on 4.0.1.

Re: SATA: lost interrupt/reset failed (was: scsictl equivalent for SATA)

2011-08-01 Thread Manuel Bouyer
On Mon, Aug 01, 2011 at 02:18:36PM +0200, Edgar Fuß wrote: But if you plugged the new drive in the same slot as the old one, you should be able to use it without extra steps. In the meantime, I figured out that the supposedly failed drive is OK. There seems to be something wrong with the

Re: SATA: lost interrupt/reset failed

2011-08-01 Thread Edgar Fuß
I would try to unplung/replug the drive. I already did that. I would also look at SMART datas (using the smartmontool package, atactl from 4.0 won't report all details). OK, I'll re-attach the drive to another machine. I already did attach it to a desktop machine to check it does spin up (you

Re: pchb@acpi

2011-08-01 Thread Matthias Drochner
bou...@antioche.eu.org said: up to now, device_properties() has been used to pass informations which doesn't comes directly from the parent (as opposed to the attach structure) If we allow to attach pci at acpi, the information would come directly from the parent. It is not only address space

Re: pchb@acpi

2011-08-01 Thread Manuel Bouyer
On Mon, Aug 01, 2011 at 07:33:27PM +0200, Matthias Drochner wrote: bou...@antioche.eu.org said: up to now, device_properties() has been used to pass informations which doesn't comes directly from the parent (as opposed to the attach structure) If we allow to attach pci at acpi, the

Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread Christos Zoulas
In article 20110801094633.ga17...@homeworld.netbsd.org, Emmanuel Dreyfus m...@netbsd.org wrote: -=-=-=-=-=- On Sun, Jul 31, 2011 at 06:36:53PM +, Christos Zoulas wrote: I don't have an issue with it as long as: - fsck does not get confused - filesystems don't need to be modified

Re: pchb@acpi

2011-08-01 Thread Matthias Drochner
bou...@antioche.eu.org said: To me it's not clear if it's the way to go (and I guess we'd need a pci@pcibios as well ... I think the pcibios gives so little value that it doesn't deserve an extra attachment. ACPI is another league - it is essential for interrupt routing and power management.

Re: Adding linux_link(2) system call, second round

2011-08-01 Thread David Holland
On Mon, Aug 01, 2011 at 04:05:32AM +0200, Emmanuel Dreyfus wrote: You still haven't explained what glusterfs is doing that's so evil or why it can't be fixed by having it copy the symlink when that's the case in question. glusterfs uses the native filesystem as its storage backend.

Re: pchb@acpi

2011-08-01 Thread Jukka Ruohonen
On Mon, Aug 01, 2011 at 08:59:57PM +0200, Matthias Drochner wrote: I think it is OK to attach the PCI buses which are defined by ACPI at acpi. The attachment frontend can install hooks to get interrupt routing right. This would also help wakeup support for eg USB and ethernet devices.

Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread Emmanuel Dreyfus
Christos Zoulas chris...@astron.com wrote: Except for the ktruser() call, looks good to me (my personal opinion). Um, yes, that one was another pending patch I had for later. For now ktrace does not show symlink(2) targets, which is annoying: sometime you cannot tell what is going on. --

Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread David Laight
On Mon, Aug 01, 2011 at 09:46:33AM +, Emmanuel Dreyfus wrote: + if (flags FOLLOW) + namei_simple_flags = NSM_FOLLOW_TRYEMULROOT; + else + namei_simple_flags = NSM_NOFOLLOW_TRYEMULROOT; + + error = namei_simple_user(path, namei_simple_flags, vp); Not

Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread David Holland
On Mon, Aug 01, 2011 at 09:31:11PM +0100, David Laight wrote: + if (flags FOLLOW) + namei_simple_flags = NSM_FOLLOW_TRYEMULROOT; + else + namei_simple_flags = NSM_NOFOLLOW_TRYEMULROOT; + + error = namei_simple_user(path, namei_simple_flags, vp); Not

Re: [PATCH] llink(2) (was: Re: Adding linux_link(2) system call, second round)

2011-08-01 Thread David Holland
On Mon, Aug 01, 2011 at 09:00:36PM +, David Holland wrote: Not withstanding dh's comment, why not pass in all the namei flags. + error = namei_simple_user(path, flags, vp); Because I gimmicked up the flags for namei_simple specifically to disallow that sort of thing

Re: kcpuset(9) interface

2011-08-01 Thread YAMAMOTO Takashi
hi, Hello, Here is a reworked dynamic CPU set implementation for kernel (shared cpuset.c in src/common will be moved to libc) - a kcpuset(9) interface: http://www.netbsd.org/~rmind/kcpuset_ng.diff It supports early use while the system is cold through a fix up mechanism, see