Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-11 Thread Martin Wilck
On Sat, 2017-05-06 at 15:50 -0400, Phil Turmel wrote: > > I think a case can be made for wiping it all during create, for > consistency with other kernel behaviour.  If you allocate memory for > userspace, or or create a new file on a filesystem with a specific > size, > linux goes to some length

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-09 Thread Peter Rajnoha
On 05/06/2017 06:25 PM, Wols Lists wrote: > On 03/05/17 15:13, Peter Rajnoha wrote: >> There's a difference though - when you're *creating* a completely new >> device that is an abstraction over existing devices, you (most of the >> time) expect that new device to be initialized. For those corner

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-09 Thread Peter Rajnoha
On 05/06/2017 06:25 PM, Wols Lists wrote: > On 03/05/17 15:13, Peter Rajnoha wrote: >> There's a difference though - when you're *creating* a completely new >> device that is an abstraction over existing devices, you (most of the >> time) expect that new device to be initialized. For those corner

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-09 Thread Phil Turmel
On 05/06/2017 12:25 PM, Wols Lists wrote: > On 03/05/17 15:13, Peter Rajnoha wrote: >> There's a difference though - when you're *creating* a completely new >> device that is an abstraction over existing devices, you (most of the >> time) expect that new device to be initialized. For those corner

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-06 Thread Wols Lists
On 03/05/17 15:13, Peter Rajnoha wrote: > There's a difference though - when you're *creating* a completely new > device that is an abstraction over existing devices, you (most of the > time) expect that new device to be initialized. For those corner cases > where people do need to keep the old

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-04 Thread Jes Sorensen
On 05/03/2017 10:13 AM, Peter Rajnoha wrote: On 05/02/2017 03:32 PM, Jes Sorensen wrote: On 04/28/2017 05:28 AM, Peter Rajnoha wrote: On 04/28/2017 07:05 AM, NeilBrown wrote: When an array is created the content is not initialized, so it could have remnants of an old filesystem or md array

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-04 Thread Jes Sorensen
On 05/03/2017 10:32 AM, Peter Rajnoha wrote: On 05/02/2017 03:42 PM, Jes Sorensen wrote: On 04/28/2017 01:05 AM, NeilBrown wrote: When an array is created the content is not initialized, so it could have remnants of an old filesystem or md array etc on it. udev will see this and might try to

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-03 Thread Peter Rajnoha
On 05/02/2017 03:42 PM, Jes Sorensen wrote: > On 04/28/2017 01:05 AM, NeilBrown wrote: >> >> When an array is created the content is not initialized, >> so it could have remnants of an old filesystem or md array >> etc on it. >> udev will see this and might try to activate it, which is almost >>

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-03 Thread Peter Rajnoha
On 05/02/2017 03:32 PM, Jes Sorensen wrote: > On 04/28/2017 05:28 AM, Peter Rajnoha wrote: >> On 04/28/2017 07:05 AM, NeilBrown wrote: >>> >>> When an array is created the content is not initialized, >>> so it could have remnants of an old filesystem or md array >>> etc on it. >>> udev will see

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-03 Thread Jes Sorensen
On 04/28/2017 01:05 AM, NeilBrown wrote: When an array is created the content is not initialized, so it could have remnants of an old filesystem or md array etc on it. udev will see this and might try to activate it, which is almost certainly not what is wanted. So create a mechanism for mdadm

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-05-03 Thread Jes Sorensen
On 04/28/2017 05:28 AM, Peter Rajnoha wrote: On 04/28/2017 07:05 AM, NeilBrown wrote: When an array is created the content is not initialized, so it could have remnants of an old filesystem or md array etc on it. udev will see this and might try to activate it, which is almost certainly not

Re: [dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-04-28 Thread Peter Rajnoha
On 04/28/2017 07:05 AM, NeilBrown wrote: > > When an array is created the content is not initialized, > so it could have remnants of an old filesystem or md array > etc on it. > udev will see this and might try to activate it, which is almost > certainly not what is wanted. > > So create a

[dm-devel] [mdadm PATCH] Create: tell udev md device is not ready when first created.

2017-04-27 Thread NeilBrown
When an array is created the content is not initialized, so it could have remnants of an old filesystem or md array etc on it. udev will see this and might try to activate it, which is almost certainly not what is wanted. So create a mechanism for mdadm to communicate with udev to tell it that