Re: [PATCH] enable auto=yes by default when using udev

2006-07-18 Thread Christian Pernegger
I think I'm leaning towards auto-creating names if they look like standard names (or are listed in mdadm.conf?), but required auto=whatever to create anything else. The auto= option has the disadvantage that it is different for partitionable and regular arrays -- is there no way to detect from

Re: [PATCH] enable auto=yes by default when using udev

2006-07-17 Thread Bill Davidsen
Michael Tokarev wrote: Neil Brown wrote: On Monday July 3, [EMAIL PROTECTED] wrote: Hello, the following patch aims at solving an issue that is confusing a lot of users. when using udev, device files are created only when devices are registered with the kernel, and md devices are

Re: [PATCH] enable auto=yes by default when using udev

2006-07-17 Thread Neil Brown
On Tuesday July 4, [EMAIL PROTECTED] wrote: Michael Tokarev [EMAIL PROTECTED] wrote: Why to test for udev at all? If the device does not exist, regardless if udev is running or not, it might be a good idea to try to create it. Because IT IS NEEDED, period. Whenever the operation fails or

Re: [PATCH] enable auto=yes by default when using udev

2006-07-04 Thread Michael Tokarev
Neil Brown wrote: On Monday July 3, [EMAIL PROTECTED] wrote: Hello, the following patch aims at solving an issue that is confusing a lot of users. when using udev, device files are created only when devices are registered with the kernel, and md devices are registered only when started.

Re: [PATCH] enable auto=yes by default when using udev

2006-07-04 Thread Luca Berra
On Tue, Jul 04, 2006 at 12:46:03AM +0200, Luca Berra wrote: On Mon, Jul 03, 2006 at 09:14:38AM +1000, Neil Brown wrote: However + + /* if we are using udev and auto is not set, mdadm will almost +* certainly fail, so we force it here. +*/ + if (autof == 0

Re: [PATCH] enable auto=yes by default when using udev

2006-07-04 Thread Mario 'BitKoenig' Holbe
Michael Tokarev [EMAIL PROTECTED] wrote: Why to test for udev at all? If the device does not exist, regardless if udev is running or not, it might be a good idea to try to create it. Because IT IS NEEDED, period. Whenever the operation fails or not, and Perhaps it was just a typo and you

Re: [PATCH] enable auto=yes by default when using udev

2006-07-03 Thread Mario 'BitKoenig' Holbe
Jason Lunz [EMAIL PROTECTED] wrote: there's a udevd you can check for. I don't know whether that's a better test or not. It's not. For example, the Debian package does also start this udevd on package upgrades, even when a 2.4 kernel is running which definitely has no udev support :) regards

Re: [PATCH] enable auto=yes by default when using udev

2006-07-03 Thread David Greaves
Neil Brown wrote: I guess I could test for both, but then udev might change again I'd really like a more robust check. Maybe I could test if /dev was a mount point? IIRC you can have diskless machines with a shared root and nfs mounted static /dev/ David -- - To unsubscribe from this

Re: [PATCH] enable auto=yes by default when using udev

2006-07-03 Thread Frank Blendinger
On Mon, Jul 03, 2006 at 09:14:38AM +1000, Neil Brown wrote: I'm worried that this test is not very robust. On my Debian/unstable system running used, there is no /dev/.udevdb though there is a /dev/.udev/db I guess I could test for both, but then udev might change again I'd really

Re: [PATCH] enable auto=yes by default when using udev

2006-07-03 Thread Luca Berra
On Mon, Jul 03, 2006 at 09:14:38AM +1000, Neil Brown wrote: However + + /* if we are using udev and auto is not set, mdadm will almost +* certainly fail, so we force it here. +*/ + if (autof == 0 access(/dev/.udevdb,F_OK) == 0) + autof=2; + I'm

[PATCH] enable auto=yes by default when using udev

2006-07-02 Thread Luca Berra
Hello, the following patch aims at solving an issue that is confusing a lot of users. when using udev, device files are created only when devices are registered with the kernel, and md devices are registered only when started. mdadm needs the device file _before_ starting the array. so when using

Re: [PATCH] enable auto=yes by default when using udev

2006-07-02 Thread Neil Brown
On Monday July 3, [EMAIL PROTECTED] wrote: Hello, the following patch aims at solving an issue that is confusing a lot of users. when using udev, device files are created only when devices are registered with the kernel, and md devices are registered only when started. mdadm needs the

Re: [PATCH] enable auto=yes by default when using udev

2006-07-02 Thread Jason Lunz
[EMAIL PROTECTED] said: Maybe I could test if /dev was a mount point? Any other ideas? there's a udevd you can check for. I don't know whether that's a better test or not. Jason - To unsubscribe from this list: send the line unsubscribe linux-raid in the body of a message to [EMAIL PROTECTED]