Neil Brown
8382f19bdc
Add new mode: --incremental
...
--incremental allows arrays to be assembled one device at a time.
This is expected to be used with udev.
2006-12-21 17:10:52 +11:00
Neil Brown
7572344665
Default to --auto=yes
...
so the array devices with 'standard' names
get created automatically, as this is almost always what is wanted.
2006-12-14 17:31:10 +11:00
Michael Labuschke
3a43c80392
Check error return on a couple of syscalls.
...
From: "Michael Labuschke" <michael@labuschke.de>
2006-10-23 14:56:35 +10:00
Luca Berra
e60c27d04e
Don't fail md_open if array already active.
...
From: Luca Berra <bluca@comedia.it>
There is no need and it causes occasional problems.
2006-10-16 15:27:16 +10:00
Neil Brown
38098016ca
Allow symlink creation to be disabled from command line or mdadm.conf
2006-08-11 18:00:05 +10:00
Neil Brown
0a6e1c6743
Create symlinks from /dev into /dev/md
...
When (auto)creating devices in /dev/md/, create
an appropriate symlink from /dev to avoid confusion.
2006-08-11 18:00:00 +10:00
Neil Brown
8aec876d2e
More consistent honoring of --configfile
...
Never use /etc/mdadm.conf if --config file is given (previously
some code used one, some used the other).
2006-06-26 15:11:01 +10:00
Neil Brown
d55e3aefc0
Support auto-assembling of stacked devices
...
and assorted bugfixes.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 03:11:57 +00:00
Neil Brown
2e2642f2c5
Never remove device nodes of active devices.
...
This is just too risky.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 02:32:15 +00:00
Neil Brown
e7bb5d23a9
Choose better devnumbers and tidy up some issues with finding names.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-26 01:40:53 +00:00
Neil Brown
4f589ad0c5
Just updaqte copyright dates and email address
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-19 05:25:11 +00:00
Neil Brown
f1ae21c411
Arrange the 'auto' setting in mdadm.conf can choose default type.
...
So when you say auto=md or auto=part in mdadm.conf, it give a preference
for type of array, but standard name will override.
But --auto=md is more insistant.
FIXME I'm not at all happy about handling of names that already exist.
I don't think that should be removed if the device is active.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-16 07:35:06 +00:00
Neil Brown
5bbb48424b
Allow default creation info to to be stored in mdadm.conf
...
Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-05-15 06:02:41 +00:00
Neil Brown
16c6fa807c
Create missing /dev files where needed.
...
Whenever we need a device file to open, if one cannot be found in /dev,
create a temporary one.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-03-28 06:26:53 +00:00
Neil Brown
1e0d770c0f
Release some compile fixes.
...
Signed-off-by: Neil Brown <neilb@suse.de>
2006-02-06 04:18:12 +00:00
Neil Brown
22a8899586
Sort mdstat entries so that composites are well-ordered.
...
This means that "-Ds" lists arrays in an approprate order
for assembly.
Signed-off-by: Neil Brown <neilb@suse.de>
2006-01-31 00:39:50 +00:00
Neil Brown
8f23b0b3fa
Replace sprintf calls with snprintf
...
To quiet diet-libc
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:42:13 +00:00
Neil Brown
173fc51539
Add device files created with --auto to list of known device files.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:37:57 +00:00
Neil Brown
0bbc98b563
Avoid using lstat, it isn't right.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-06-14 06:30:03 +00:00
Neil Brown
a0ef61bfad
Fix uninitialised variable compile warning.
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:31 +00:00
Neil Brown
48f7b27ab4
Document new --auto behaviour
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:16 +00:00
Neil Brown
0df46c2ad8
Change MAJOR() etc to major() etc
...
This allows for larger device number if glibc supports
it (requires 2.3.3).
Also fail before creating larger device number if glibc
support isn't present.
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:13 +00:00
Neil Brown
8d80900b49
When assembling with --auto, honour common device names
...
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
2005-04-04 05:16:10 +00:00
Neil Brown
b5e6464503
mdadm-1.8.0
2004-11-01 04:49:34 +00:00