aboutsummaryrefslogtreecommitdiffstats
path: root/Monitor.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-11Monitor, Incremental: use device policiesMariusz Tkaczyk1-1/+2
2024-03-11mdadm: drop get_required_spare_criteria()Mariusz Tkaczyk1-30/+5
2024-03-11mdadm: Add functions for spare criteria verificationMariusz Tkaczyk1-12/+2
2024-02-29Monitor: Allow no PID in check_one_sharer()Mateusz Kusiak1-0/+5
2024-02-23Monitor: open file before check in check_one_sharer()Mateusz Kusiak1-8/+5
2024-01-24Define sysfs max buffer sizeMateusz Kusiak1-3/+3
2023-11-21Mdmonitor: Improve udev event handlingMateusz Grzonka1-87/+50
2023-09-01Add secure gethostname() wrapperBlazej Kucman1-2/+1
2023-05-08mdadm: define is_devname_ignore()Mariusz Tkaczyk1-1/+1
2023-05-08mdadm: define DEV_MD_DIRMariusz Tkaczyk1-14/+18
2023-03-02Mdmonitor: Refactor check_one_sharer() for better error handlingMateusz Grzonka1-27/+62
2023-03-02Mdmonitor: Refactor write_autorebuild_pid()Mateusz Grzonka1-19/+36
2023-03-02Mdmonitor: Add helper functionsMateusz Grzonka1-70/+158
2023-03-02Mdmonitor: Pass events to alert() using enums instead of stringsMateusz Grzonka1-53/+83
2023-03-02Mdmonitor: Make alert_info globalMateusz Grzonka1-63/+61
2022-12-28Monitor: block if monitor modes are combined.Blazej Kucman1-1/+6
2022-12-28Mdmonitor: Split alert() into separate functionsMateusz Grzonka1-91/+95
2022-09-29Mdmonitor: Omit non-md devicesLukasz Florczak1-8/+4
2022-09-08Monitor: Fix statelist memory leaksPawel Baldysiak1-9/+31
2022-07-28Monitor: use snprintf to fill device nameKinga Tanska1-23/+14
2022-07-28Monitor: use devname as char array instead of pointerKinga Tanska1-3/+5
2022-06-14Mdmonitor: Improve logging methodKinga Tanska1-11/+14
2022-06-14Mdmonitor: Fix segfaultKinga Tanska1-1/+9
2022-04-04Replace error prone signal() with sigaction()Lukasz Florczak1-2/+3
2021-12-08Monitor: print message before quit for no array to monitorColy Li1-0/+1
2021-10-19Fix 2 dc stream bufferNigel Croxon1-1/+1
2021-03-19Monitor: make libudev dependency optionalMariusz Tkaczyk1-5/+23
2021-03-08mdmonitor: check if udev has finished events processingOleksandr Shchirskyi1-11/+64
2020-11-25mdadm: Unify forks behaviourMariusz Tkaczyk1-4/+1
2020-11-25Monitor: don't use default modes when creating a fileMariusz Tkaczyk1-5/+12
2020-10-14Check if other Monitor instance running before fork.Blazej Kucman1-16/+28
2020-10-14mdmonitor: set small delay onceBlazej Kucman1-1/+13
2020-10-14Monitor: stop notifing about containers.Mariusz Tkaczyk1-3/+16
2020-10-14Monitor: refresh mdstat fd after selectMariusz Tkaczyk1-3/+3
2020-04-27Monitor: improve check_one_sharer() for checking duplicated processColy Li1-12/+20
2019-09-30mdadm: Introduce new array state 'broken' for raid0/linearGuilherme G. Piccoli1-2/+6
2018-05-31Monitor: Increase size of percentalert to avoid gcc warningJes Sorensen1-1/+1
2017-11-21Monitor/msg: Don't print error message if mdmon doesn't runMariusz Tkaczyk1-4/+5
2017-10-02Monitor: Check redundancy for arraysMariusz Tkaczyk1-4/+4
2017-08-16Monitor: Include containers in spare migrationMariusz Tkaczyk1-1/+1
2017-08-16Monitor: containers don't have the same sysfs properties as arraysMariusz Tkaczyk1-18/+28
2017-07-10Monitor: don't assume mdadm parameter is a block deviceTomasz Majchrzak1-2/+11
2017-06-05Get failed disk count from array stateTomasz Majchrzak1-2/+2
2017-05-16mdadm: Fixup more broken logical operator formattingJes Sorensen1-2/+2
2017-05-11Monitor: Fixup a pile of whitespace issuesJes Sorensen1-55/+55
2017-05-11Monitor: mailfrom is initialized correctlyJes Sorensen1-1/+1
2017-05-11Monitor: Not much point declaring mdlist in both forks of the if() statementJes Sorensen1-2/+3
2017-05-09Monitor/check_array: Use working_disks from sysfsJes Sorensen1-2/+2
2017-05-09Monitor/check_array: Get nr_disks, active_disks and spare_disks from sysfsJes Sorensen1-7/+7
2017-05-09Monitor/check_array: Get array_disks from sysfsJes Sorensen1-2/+2
2017-05-09Monitor/check_array: Get 'failed_disks' from sysfsJes Sorensen1-3/+4
2017-05-09Monitor/check_array: Obtain RAID level from syfsJes Sorensen1-3/+3
2017-05-09Monitor/check_array: Read sysfs entry earlierJes Sorensen1-6/+10
2017-05-09Monitor/check_array: Declate mdinfo instance globallyJes Sorensen1-2/+2
2017-05-09Monitor/check_array: Reduce duplicated error handlingJes Sorensen1-24/+15
2017-05-09Monitor/check_array: Centralize exit pathJes Sorensen1-10/+14
2017-05-09Add sector size as spare selection criterionAlexey Obitotskiy1-0/+8
2017-05-09Allow more spare selection criteriaAlexey Obitotskiy1-14/+16
2017-05-08Monitor: Code is 80 characters per lineJes Sorensen1-34/+27
2017-05-08Monitor: Use md_array_active() instead of manually fiddling in sysfsJes Sorensen1-28/+11
2017-05-05mdadm/util: unify stat checking blkdev into functionZhilong Liu1-12/+4
2017-04-11Retire mdassembleJes Sorensen1-3/+0
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-1/+3
2017-03-29util: Introduce md_get_disk_info()Jes Sorensen1-1/+1
2017-03-29util: Introduce md_get_array_info()Jes Sorensen1-3/+4
2017-03-27mdadm/Monitor: Fix NULL pointer dereference when stat2devnm return NULLZhilong Liu1-1/+7
2016-07-21Monitor: release /proc/mdstat fd when no arrays presentTomasz Majchrzak1-0/+2
2016-06-10Monitor: Use sysfs_free() to free object returned by sysfs_read()Jes Sorensen1-1/+1
2016-02-08Fix some type comparison problemsXiao Ni1-1/+1
2015-07-06Monitor: don't Wait forever on a 'frozen' array.NeilBrown1-2/+10
2015-05-20mdadm: monitor: fix nullptr dereference when get_md_name() returns NULLSergey Vidishev1-1/+9
2015-04-08Monitor: use the "space protocol" for "Wrong-Level".NeilBrown1-1/+1
2015-04-08Monitor: Obey "space protocol" when writing to syslog.NeilBrown1-1/+5
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-23/+10
2015-02-12Change way of printing name of a processPawel Baldysiak1-2/+2
2015-02-11Monitor: fix for regression with container devicesArtur Paszkiewicz1-4/+10
2014-11-25Monitor: don't open md array that doesn't exist.NeilBrown1-1/+22
2014-08-14Monitor: Stop monitoring devices that have disappeared.NeilBrown1-6/+18
2013-07-01New function: sysfs_waitNeilBrown1-8/+2
2013-06-19Remove lots of unnecessary white space.NeilBrown1-7/+5
2013-05-01Wait: also wait if an action is about to start.NeilBrown1-0/+13
2013-02-21Discard devnum in favour of devnmNeilBrown1-46/+45
2012-11-22Allow --wait to wait for delayed resync.NeilBrown1-1/+1
2012-10-24Monitor: don't complain about non-monitorable arrays in mdadm.confNeilBrown1-1/+3
2012-07-09Change Monitor to take a struct contextNeilBrown1-13/+14
2012-07-09Remove scattered checks for malloc success.NeilBrown1-15/+9
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-12/+12
2012-06-04Monitor: fix reporting for Fail vs FailSpare etc.NeilBrown1-27/+12
2012-06-04Monitor: Report NewArray when an array the disappeared, reappears.NeilBrown1-2/+7
2012-06-04Monitor: fix inconsistencies in values for ->percentNeilBrown1-5/+5
2012-06-04Monitor: Allow correct monitoring of more member devices.NeilBrown1-12/+7
2012-04-18Add --prefer option for --detail and --monitorNeilBrown1-7/+11
2012-02-23Use MDMON_DIR for pid files created in Monitor.cJes Sorensen1-3/+5
2012-01-12fix: Monitor sometimes crashesLukasz Dorau1-2/+3
2011-12-07Report raid level type to syslog on RebuildFinished event.Sergey B Kirpichev1-1/+2
2011-11-02Monitor(): free allocated memory on exitJes Sorensen1-0/+6
2011-05-23Check all member devices in enough_fdNeilBrown1-2/+8
2011-04-13Monitor: avoid NULL dereference with 0.90 metadataJonathan Liu1-1/+2
2011-04-11mdadm: respect --syslog in monitor modeMike Frysinger1-2/+2
2011-04-05Monitor: avoid NULL dereference with 0.90 metadataNeilBrown1-1/+2
2011-04-05Move WaitClean from sysfs to Monitor.cNeilBrown1-0/+102
2011-03-22Monitor: handle v.quick removal of devices better.NeilBrown1-1/+1
2011-03-18FIX: ping_monitor() usage causes memory leaksAdam Kwolek1-1/+1
2011-02-01Various compile fixes.NeilBrown1-1/+2
2011-02-01Allow domain_test to report that no domains were found.NeilBrown1-1/+1
2011-02-01Monitor: do not move partitions to external containerCzarnowska, Anna1-0/+4
2011-01-28Monitor: avoid adding too many spares to containerCzarnowska, Anna1-3/+30
2011-01-17fix: Monitor: min_size must be set to 0Czarnowska, Anna1-1/+3
2011-01-17fix: segfault if subarray is monitored but container is notCzarnowska, Anna1-0/+5
2011-01-12Monitor: skip array if error getting sizeAnna Czarnowska1-8/+13
2011-01-05move_spare function modified and moved to Manage.cAnna Czarnowska1-47/+4
2011-01-05Use one function chosing spares from containerAnna Czarnowska1-38/+13
2010-12-21Monitor: Check destination array domain early.Marcin Labun1-6/+8
2010-12-15fix: Monitor doesn't return after starting daemonAnna Czarnowska1-4/+12
2010-12-09Allow --update=devicesize with --re-addNeilBrown1-3/+3
2010-12-03Monitor: don't add more spares than neededAnna Czarnowska1-1/+22
2010-12-03Monitor: only get min_size onceAnna Czarnowska1-8/+8
2010-12-03Monitor: pass statelist reference when adding new arraysAnna Czarnowska1-5/+5
2010-11-29Monitor: array that has disappeared doesn't need sparesAnna Czarnowska1-1/+1
2010-11-29Monitor: fix writing autorebuild.pidAnna Czarnowska1-10/+16
2010-11-29Monitor: reset dev when size too smallAnna Czarnowska1-2/+3
2010-11-29Monitor: devid should be dev_tAnna Czarnowska1-7/+7
2010-11-29Monitor: few bug fixes for spare migrationAnna Czarnowska1-2/+11
2010-11-25Monitor: choose spare correctly for external metadata.NeilBrown1-1/+62
2010-11-25Monitor: separate 'choose_spare' out from 'move_spare'NeilBrown1-34/+42
2010-11-23Monitor: check spare group is non-NULL before adding to domain listNeilBrown1-1/+3
2010-11-22Monitor: Allow metadata to set minimum size for spare to migrate in.Anna Czarnowska1-1/+31
2010-11-22Monitor: teach spare migration about containersNeilBrown1-5/+23
2010-11-22Monitor: policy based spare migration.NeilBrown1-23/+39
2010-11-22Monitor: split out check_donorNeilBrown1-8/+16
2010-11-22Monitor: split out move_spare in spare migration.NeilBrown1-43/+55
2010-11-22Monior: create struct for holding alert info.NeilBrown1-67/+70
2010-11-22Monitor: use calloc rather than mallocNeilBrown1-13/+3
2010-11-22Monitor: minor optimisation to spare migration.NeilBrown1-16/+21
2010-11-22Monitor: link containers with subarrays in statelistMarcin Labun1-0/+36
2010-11-22Break Monitor into smaller functions.NeilBrown1-397/+452
2010-11-22Monitor: track metadata type or parent/container of arrays.NeilBrown1-0/+26
2010-11-22Monitor: include containers in scan modeAnna Czarnowska1-3/+3
2010-11-22Monitor: avoid skipping checks on external arraysNeilBrown1-2/+3
2010-11-22mdadm: added --no-sharing option for Monitor modeAnna Czarnowska1-2/+42
2010-11-22Monitor: set err on arrays not in mdstatAnna Czarnowska1-11/+12
2010-11-22Improve type names for mddev_devNeilBrown1-3/+3
2010-11-22Improve mddev_ident type definitions.NeilBrown1-2/+2
2010-08-05Compile with -Wextra by defaultNeilBrown1-7/+7
2010-07-06Add --test option to --re-add and similarNeilBrown1-3/+3
2010-05-18Monitor: don't report the disappearance of a faulty device as SpareActive.NeilBrown1-0/+1
2009-10-19Monitor: add option to specify rebuild incrementsZdenek Behan1-13/+13
2009-07-10Monitor: use pclose rather than fcloseNeilBrown1-1/+1
2009-06-02Merge branch 'master' into devel-3.0NeilBrown1-5/+14
2009-06-02Move WaitClean from Monitor.c to sysfs.cNeilBrown1-104/+0
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-7/+2
2009-06-02Monitor: don't get confused if utime is never set.NeilBrown1-0/+4
2009-05-12Monitor: support spare-group manipulation for 1.x metadata.NeilBrown1-5/+14
2009-05-11config: allow Array line to contain array name without /dev/md/ prefix.NeilBrown1-1/+7
2009-05-11config: support "ARRAY <ignore> ..." lines in mdadm.confNeilBrown1-0/+2
2009-04-14Wait for POLLPRI on /proc or /sys files.NeilBrown1-1/+1
2009-03-10Merge branch 'master' in devel-3.0NeilBrown1-0/+2
2009-02-05Monitor: send --test message for arrays in /proc/mdstat that aren't in mdadm....NeilBrown1-0/+2
2009-01-08Merge branch 'master' into scratch-3.0NeilBrown1-1/+1
2009-01-08Free mdstat data structures properly.NeilBrown1-1/+1
2008-12-02fix ->metadata_version checking in Wait()Dan Williams1-1/+1
2008-11-04config: Don't require an array to have a device name.NeilBrown1-1/+4
2008-10-15quiet WaitClean()Dan Williams1-5/+7
2008-10-15Extend --wait-clean to checkpoint resyncDan Williams1-0/+3
2008-10-15--wait-clean: shorten timeoutDan Williams1-12/+23
2008-09-15'mdadm --wait-clean' wait for array to be marked cleanDan Williams1-0/+88
2008-09-15Add ping_monitor() to mdadm --waitDan Williams1-4/+8
2008-07-24Clean up usage of open()Doug Ledford1-1/+1
2008-04-28Fix for segfault when reading /proc/mdstatNeil Brown1-0/+1
2007-12-14Replace sysarray with mdinfoNeil Brown1-1/+1
2007-12-14Remove spaces/tabs from ends of lines.Neil Brown1-9/+9
2007-09-27Monitor.c s/MAXINT/INT_MAX/gmaximilian attems1-6/+6
2007-09-27Monitor.c include signal.h directlymaximilian attems1-1/+1
2007-07-09Enhance raid4 support: --assemble and --monitor wasn't quite happy with it.Doug Ledford1-5/+6
2007-07-09Mark some files FD_CLOEXEC to protect sendmail from them.Doug Ledford1-0/+1
2007-07-09Fix spare migration and other problems with --monitor.Neil Brown1-0/+1
2007-02-22Fix a bug that was causing incorrect warning from --monitor.Neil Brown1-1/+1
2006-12-21Release 2.6mdadm-2.6Neil Brown1-1/+1
2006-12-21Add new mode: --incrementalNeil Brown1-1/+1
2006-12-14Don't hold md device open for so long in --monitor modeNeil Brown1-4/+20
2006-12-14When resync finished, report the mismatch count if there is one.Neil Brown1-3/+19
2006-12-14--wait or -W will wait for resync activity to finish on the given devices.Neil Brown1-0/+35
2006-06-26More consistent honoring of --configfileNeil Brown1-6/+6
2006-06-26Fix user-after-free bug in error path in --monitor mode.Neil Brown1-1/+1
2006-06-02Fix typo in mail message from --monitorNeil Brown1-1/+1
2006-05-29check return status of all write/fwrite functions as required by glibc 2.4Neil Brown1-1/+1
2006-05-26Choose better devnumbers and tidy up some issues with finding names.Neil Brown1-0/+1
2006-05-19Just updaqte copyright dates and email addressNeil Brown1-1/+1
2006-05-19Add a copy of /proc/mdstat to the mail message send by mdadm --monitor.Neil Brown1-0/+11
2006-05-15Arrange that SparesMissing events generate an email too.Neil Brown1-1/+3
2006-05-15Support 'mailfrom' line in mdadm.conf so the From: line in alert emails can b...Neil Brown1-18/+24
2006-03-28Reduce dependance on MD_SB_DISKSNeil Brown1-7/+17
2006-03-28Create missing /dev files where needed.Neil Brown1-2/+2
2006-01-31Sort mdstat entries so that composites are well-ordered.Neil Brown1-1/+1
2005-12-05syslog support for monitor modeNeil Brown1-18/+45
2005-12-05Report which device failed in a Fail message.Neil Brown1-0/+3
2005-04-04Change MAJOR() etc to major() etcNeil Brown1-5/+5
2004-11-01mdadm-1.8.0mdadm-1.8.0Neil Brown1-2/+15
2004-08-11mdadm-1.7.0mdadm-1.7.0Neil Brown1-1/+8
2004-06-04mdadm-1.6.0mdadm-1.6.0Neil Brown1-7/+10