summaryrefslogtreecommitdiffstats
path: root/mdadm.h
Commit message (Collapse)AuthorAgeFilesLines
* add --export option to --examineKay Sievers2008-05-061-3/+4
| | | | | | | From: Kay Sievers <kay.sievers@vrfy.org> Cc: David Zeuthen <david@fubar.dk> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
* Make device-special files for partitions when using --incrementalNeil Brown2008-05-051-1/+1
|
* Unify code into find_free_devnum.Neil Brown2008-05-051-0/+3
| | | | | Two places have code to find a free md device number. Make this a subroutine.
* diff -ru mdadm-2.6.4-orig/Query.c mdadm-2.6.4/Query.cNeil Brown2008-04-291-0/+1
|
* Replace sysarray with mdinfoNeil Brown2007-12-141-17/+9
| | | | | Sure, mdinfo is bigger, but having a uniform structure for lots of things will make life easier.
* Use 'mdinfo' instead of special 'sysdev' structure.Neil Brown2007-12-141-14/+8
| | | | | there is needless duplicatiion between mdinfo and sysdev, so discard the latter.
* Find super from fd on an array.Neil Brown2007-12-141-1/+1
| | | | | We used to use the major/minor numbers, but that isn't sufficient any more, so pass the fd, and possibly check 'text' version.
* Drop the superblock arg from all metadata methods.Neil Brown2007-12-141-18/+22
| | | | It is now in the 'supertype'
* Fix compare_super to take supertype instead of a superblock.Neil Brown2007-12-141-2/+2
| | | | | As this function takes 2 superblocks, the change is a bit more subtle, so is done separately.
* Add 'supertype' arg to almost all metadata methods.Neil Brown2007-12-141-11/+12
| | | | The 'superblock' will be moved into this structure soon.
* Allow metadata handlers to free their own superblock.Neil Brown2007-12-141-0/+1
| | | | | | As the metadata handler allocates the superblock, it should free it too. DDF will have a more complex 'superblock' which needs more complex freeing.
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-1/+1
|
* Add klibc support to mdadm.hmaximilian attems2007-09-241-1/+8
| | | | | | | | klibc still misses a lot functionality to let mdadm link against, this small step helps to get to the real trouble.. :) Signed-off-by: maximilian attems <max@stro.at> Signed-off-by: Neil Brown <neilb@suse.de>
* Fix parsing of "-a" in various contexts.Doug Ledford2007-07-091-0/+1
| | | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> This one fixes a bug where once manage mode is set, the -a short option is no longer parsed correctly (true of grow mode as well). This happens because when you switch the short opts to the bitmap_auto version, it specifies that the argument must follow a, yet the loop expects to get an undecorated option and parse it as the disk dev instead of trying to parse optarg. So, create a new short opt array that is used for manage and grow that doesn't list a as having an argument.
* Release 2.6.2mdadm-2.6.2Neil Brown2007-05-211-1/+1
|
* Add --auto-detect for in-kernel autodetect.Neil Brown2007-05-211-0/+3
| | | | This is equivalent to raidautorun that some distros provide.
* Add --export option to --detail to use key=value pairs.Kay Sievers2007-05-081-1/+2
| | | | | | | | udev likes to get information about a device as key=value pairs so it can create disk/by-id links etc. So add --export flag which causes the output of --detail to easily parsable. From: Kay Sievers <kay.sievers@novell.com>
* Don't include uclibc as part of 'everything'Neil Brown2007-02-221-0/+4
| | | | | As I cannot compile in on x86-64. Also, small dietlibc fix
* Add new mode: --incrementalNeil Brown2006-12-211-0/+33
| | | | | --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev.
* Centralise code for copying uuidNeil Brown2006-12-141-0/+1
| | | | Rather than opencoding the byteswap all the time.
* Support --uuid= with --create to choose your own UUID.Neil Brown2006-12-141-2/+2
|
* Central calls to ioctl BLKGETSIZENeil Brown2006-12-141-0/+1
| | | | Instead of opencoding the same thing everywhere.
* Fix and test --update=uuidNeil Brown2006-12-141-1/+1
| | | | A number of odd bugs here, but now we have a regression test as well.
* When resync finished, report the mismatch count if there is one.Neil Brown2006-12-141-0/+2
| | | | | This doesn't get mailed out, but will appear in syslog... Maybe it should be mailed if it was a 'check' or 'repair' pass...
* --wait or -W will wait for resync activity to finish on the given devices.Neil Brown2006-12-141-0/+1
|
* Increase raid456 stripe cache size if needed to --grow the array.Neil Brown2006-12-141-0/+2
| | | | | The setting used unfortunately requires intimate knowledge of the kernel, and it not reset when the reshape finishes.
* Give useful message if raid4/5/6 cannot be started because it is not clean ↵Neil Brown2006-12-141-1/+1
| | | | and is also degraded.
* Improve allocation and use of space for bitmaps in version1 metadataNeil Brown2006-12-141-1/+2
| | | | | | | | | | Depending on the size of the array we reserve space for up to 128K of bitmap, and we use it where possible. When hot-adding to a version 1.0 we can still only use the 3K at the end though - need a sysfs interface to improve that. If a small chunksize is requested on Create, we don't auto-enlarge the reserved space - this still needs to be fixed.
* Remove some unused interfaces to the metadata handlers.Neil Brown2006-12-141-1/+0
| | | | | This stuff has never been used (at least as far as git history can see). I wonder why it was there...
* Remove partitions from components of an md arrayNeil Brown2006-10-131-0/+1
| | | | They do nothing but cause confusion.
* Allow symlink creation to be disabled from command line or mdadm.confNeil Brown2006-08-111-0/+2
|
* More consistent honoring of --configfileNeil Brown2006-06-261-9/+9
| | | | | Never use /etc/mdadm.conf if --config file is given (previously some code used one, some used the other).
* Improve ftw handling.Neil Brown2006-06-261-5/+21
| | | | | | | If not 'ftw' is available, still allow openning of devices by dev number. More recent version of uclibc support nftw, so add support to check for that.
* Yet another include file that someone doesn't like....Neil Brown2006-06-021-1/+17
| | | | | | | It seems byteswap.h isn't universally accepted, so we do it by hand... Signed-off-by: Neil Brown <neilb@suse.de>
* Allow default metadata to be specified in mdadm.confNeil Brown2006-06-021-0/+1
| | | | | | | CREATE metadata=1 in mdadm.conf will cause version-1 superblocks to be the default. Signed-off-by: Neil Brown <neilb@suse.de>
* Finally (I hope) get byteorder stuff portable.Neil Brown2006-06-021-7/+18
| | | | | | | /usr/include/endian.h and /usr/include/byteswap.h together can give us almost what we need... Signed-off-by: Neil Brown <neilb@suse.de>
* check return status of all write/fwrite functions as required by glibc 2.4Neil Brown2006-05-291-1/+1
| | | | | | | | | | | | From: Luca Berra <bluca@vodka.it> glibc 2.4 is pedantic on ignoring return values from fprintf, fwrite and write, so now we check the rval and actually do something with it. in the Grow.c case i only print a warning, since i don't think we can do anything in case we fail invalidating those superblocks (is should never happen, but then...) Signed-off-by: Neil Brown <neilb@suse.de>
* Uclibc has deprecated 'random' so use 'rand' instead.Neil Brown2006-05-291-0/+3
| | | | | | | | | | | glibc says of rand Do not use this function in applications intended to be portable when good randomness is needed. Go figure... Signed-off-by: Neil Brown <neilb@suse.de>
* add CFLAGS to mdassemble build and fix a couple of non-returning functionsNeil Brown2006-05-291-4/+2
| | | | | | | | pass CFLAGS to mdassemble build, enabling -Wall -Werror showed some issues also fixed by the patch. From: Luca Berra <bluca@vodka.it> Signed-off-by: Neil Brown <neilb@suse.de>
* Support --auto-update-homehostNeil Brown2006-05-261-0/+1
| | | | | | | | | This can be used to bootstrape homehost tagging. If no arrays are found that are tagged, we look for any array and tag it. Signed-off-by: Neil Brown <neilb@suse.de>
* When assembly arrays using incomplete detail, prefer arrays built for this host.Neil Brown2006-05-231-0/+1
| | | | | | | | i.e. if assembling with --name or --super-minor, then if we find two different arrays with the same apparent identity, and one was built for 'this' host, then prefer that one instead of giving up in disgust. Signed-off-by: Neil Brown <neilb@suse.de>
* Reorganise Assemble code somewhat.Neil Brown2006-05-231-0/+1
| | | | | | | | | | | We make sure all devices can are consistent before doing any --update This saves us from updating some but not all of an array, and then aborting. It also means we can backtrack on out decisions, which we might want to do later. Signed-off-by: Neil Brown <neilb@suse.de>
* Make sure homehost is set correctly when --update=uuidNeil Brown2006-05-231-2/+4
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --examine as appropriateNeil Brown2006-05-191-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Include homehost information in --detail where appropriate.Neil Brown2006-05-191-2/+2
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Make homehost information appear in superblock.Neil Brown2006-05-191-2/+2
| | | | | | | | When an array is created, if the homehost is know, the superblock gets it, either in the uuid, (via sha1) or in the name field. Signed-off-by: Neil Brown <neilb@suse.de>
* Allow homehost to be set on command line or in config fileNeil Brown2006-05-191-0/+15
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Just updaqte copyright dates and email addressNeil Brown2006-05-191-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Arrange the 'auto' setting in mdadm.conf can choose default type.Neil Brown2006-05-161-1/+1
| | | | | | | | | | | | 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>
* When updating uuid, update the bitmap as well - external bitmapsNeil Brown2006-05-161-0/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>