summaryrefslogtreecommitdiffstats
path: root/mdstat.c
Commit message (Collapse)AuthorAgeFilesLines
* mdmon: don't monitor /proc/mounts to decide when to create .pid file.NeilBrown2010-02-081-7/+2
| | | | | | | | | | | Monitoring /proc/mounts and creating a .pid file as soon as /var/run is writable is racy. Most distros clean all non-directories from /var/run early in boot and if mdmon races with this it could lose the files as soon as they are created. Instead require that "mdmon --takeover" be run after /var is writable. Signed-off-by: NeilBrown <neilb@suse.de>
* mdmon: allow pid to be stored in different directory.NeilBrown2010-02-041-3/+13
| | | | | | | | /var/run probably doesn't persist from early boot. So if necessary, store in in /lib/init/rw or somewhere else that does persist. Signed-off-by: NeilBrown <neilb@suse.de>
* Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown2009-06-021-7/+2
| | | | | | Also removed 'paper' addresses. Signed-off-by: NeilBrown <neilb@suse.de>
* Wait for POLLPRI on /proc or /sys files.NeilBrown2009-04-141-2/+12
| | | | | | | | | | | | | From 2.6.30, /proc/mounts and various /sys files will probably always returns 'readable' to select, so we will need to wait on POLLPRI to get the 'new data is available' signal. When using select, this corresponds to an 'exception', so adjust calls to select accordingly. In one case we sometimes wait on a socket and sometime on /proc/mounts, so we need to test which. Signed-off-by: NeilBrown <neilb@suse.de>
* mdmon: recreate socket/pid file on SIGHUPDan Williams2008-09-151-1/+2
| | | | | | | | | | Allow mdmon to start while /var/run/mdadm is readonly. Later a SIGHUP can trigger mdmon to drop its pid and socket once /var/run/mdadm is writable. Of course one needs the pid to send a HUP, that can be stored in a distribution specific rw-init directory... For now, rely on a killall -HUP mdmon to get the files dumped. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Fix mdstat_wait_fdNeilBrown2008-08-191-3/+9
| | | | | | It didn't necessarily wait for the fd. Signed-off-by: NeilBrown <neilb@suse.de>
* Introduce devname2devnumNeil Brown2008-07-121-5/+1
| | | | and use it instead of opencoding.
* Remove stopped arrays.Neil Brown2008-05-271-2/+3
| | | | | | When an array becomes inactive, clean up and forget it. This involves signalling the manager.
* close some memory leaksDan Williams2008-05-151-0/+1
| | | | | | From: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* Merge mdmonNeil Brown2008-05-151-16/+44
|
* Remove spaces/tabs from ends of lines.Neil Brown2007-12-141-2/+2
|
* Mark some files FD_CLOEXEC to protect sendmail from them.Doug Ledford2007-07-091-1/+5
| | | | | | | | | | | From: Doug Ledford <dledford@redhat.com> When running with SELinux enabled and using mdadm to monitor devices, attempts to send emails to an admin will be blocked because mdadm is holding open /proc/mdstat without setting the FD_CLOEXEC flag. As a result, sendmail has an open descriptor to /proc/mdstat after the popen() call, which SELinux decides isn't really any of sendmail's business and so sendmail gets denied.
* Add new mode: --incrementalNeil Brown2006-12-211-0/+12
| | | | | --incremental allows arrays to be assembled one device at a time. This is expected to be used with udev.
* Minor man page and comment fixesNeil Brown2006-10-091-2/+2
| | | | Thanks To: "Scott Weikart" <Scott.W@Benetech.org>
* Just updaqte copyright dates and email addressNeil Brown2006-05-191-1/+1
| | | | Signed-off-by: Neil Brown <neilb@suse.de>
* Sort mdstat entries so that composites are well-ordered.Neil Brown2006-01-311-7/+46
| | | | | | | This means that "-Ds" lists arrays in an approprate order for assembly. Signed-off-by: Neil Brown <neilb@suse.de>
* mdadm-1.7.0mdadm-1.7.0Neil Brown2004-08-111-0/+6
|
* mdadm-1.6.0mdadm-1.6.0Neil Brown2004-06-041-4/+23
|
* mdadm-1.5.0mdadm-1.5.0Neil Brown2004-01-221-4/+13
|
* mdadm-0.8mdadm-0.8Neil Brown2002-04-041-0/+180