aboutsummaryrefslogtreecommitdiffstats
path: root/managemon.c
AgeCommit message (Expand)AuthorFilesLines
2024-01-24Define sysfs max buffer sizeMateusz Kusiak1-3/+3
2022-08-22mdadm: Replace obsolete usleep with nanosleepMateusz Grzonka1-4/+4
2022-04-04Replace error prone signal() with sigaction()Lukasz Florczak1-1/+0
2021-10-08Refactor parse_num and use it to parse optarg.Mateusz Grzonka1-12/+20
2019-05-20mdmon: fix wrong array state when disk fails during mdmon startupArtur Paszkiewicz1-1/+1
2019-02-28mdmon: don't attempt to manage new arrays when terminatingArtur Paszkiewicz1-4/+2
2017-12-07managemon: Don't add disk to the array after it has startedTomasz Majchrzak1-21/+0
2017-10-04mdmon: get safe mode delay file descriptor earlyTomasz Majchrzak1-3/+13
2017-10-02Don't abort starting the array if kernel does not support pplArtur Paszkiewicz1-3/+8
2017-06-05Get failed disk count from array stateTomasz Majchrzak1-2/+2
2017-05-16mdadm: Fix '==' broken formattingJes Sorensen1-2/+2
2017-05-16mdadm: Fixup a large number of bad formatting of logical operatorsJes Sorensen1-5/+5
2016-11-28mdmon: bad block support for external metadata - sysfs file openTomasz Majchrzak1-0/+17
2015-07-24Don't ignore return value from read and writeNeilBrown1-1/+3
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-9/+7
2014-09-17mdmon: already read sysfs files once after opening.NeilBrown1-7/+23
2014-07-10mdmon: allow prepare_update to report failure.NeilBrown1-1/+2
2013-09-10managemon: fix a dprintk.NeilBrown1-1/+1
2013-09-02mdmon: make sure we set safe_mode on SIGTERM.NeilBrown1-1/+1
2013-08-05mdmon: don't use 'ghost' values from an inactive array.NeilBrown1-3/+5
2013-08-05managemon: fix typo affecting incrmental assembly.NeilBrown1-1/+1
2013-08-05mdmon: always get layout from sysfsmwilck@arcor.de1-1/+1
2013-08-01mdmon: clear safe_mode_delay on shutdownNeilBrown1-1/+17
2013-07-31mdmon: manage_member: fix race condition during slow meta data writesMartin Wilck1-1/+7
2013-07-31mdmon: manage_member: debug messages for array stateMartin Wilck1-0/+3
2013-06-19Remove lots of unnecessary white space.NeilBrown1-3/+2
2013-05-21pr_err for mdmon.NeilBrown1-1/+1
2013-04-08Add updating component_size to manager thread of mdmonPawel Baldysiak1-0/+4
2013-02-21Discard devnum in favour of devnmNeilBrown1-17/+16
2012-10-04Allow data-offset to be specified per-device for createNeilBrown1-1/+1
2012-07-09Remove scattered checks for malloc success.NeilBrown1-23/+9
2012-02-09Fix: Sometimes mdmon throws core dump during reshapeAdam Kwolek1-0/+6
2011-11-03close_aa(): Verify file descriptors are valid before trying to close themJes Sorensen1-5/+10
2011-11-03disk_init_and_add(): Fail if opening sysfs file descriptors failJes Sorensen1-0/+6
2011-09-06FIX: Mdmon crashes after changing RAID level from 1 to 0Lukasz Dorau1-2/+2
2011-08-30mdmon: fix, close spare activation raceDan Williams1-1/+4
2011-04-05FIX: After discarding array give chance monitor to remove itAdam Kwolek1-0/+1
2011-03-22mdmon: Stop keeping track of RAID0 (and LINEAR) arrays.NeilBrown1-2/+9
2011-03-22mdmon: allow manage_member to cope with ->container becoming NULL.NeilBrown1-4/+9
2011-03-15Merge branch 'master' into devel-3.2NeilBrown1-1/+6
2011-03-15ddf: implement remove_from_superNeilBrown1-5/+4
2011-03-15IMSM: Fix problem in mdmon monitor of using removed disk in imsm container.Labun, Marcin1-3/+36
2011-03-15managemon: Don't do spare assignment while any updates are pending.NeilBrown1-1/+6
2011-03-14ddf: implement remove_from_superNeilBrown1-5/+4
2011-03-14FIX: Last_checkpoint has to be initialized in per disk unitsAdam Kwolek1-0/+9
2011-03-14FIX: Last checkpoint is not initialized on reshape restartAdam Kwolek1-0/+15
2011-03-10mdmon: don't copy an invalid chunk_sizeNeilBrown1-1/+0
2011-02-03imsm: FIX: array size is wrongAdam Kwolek1-2/+2
2011-02-01managemon: don't try to add spares when resync/recovery is happening.NeilBrown1-0/+6
2011-01-06Detect level changeAdam Kwolek1-0/+12
2010-12-16Handle checkpointing during reshapeNeilBrown1-0/+6
2010-12-16Allow a metadata update to have a linked list of allocated spaces.NeilBrown1-0/+7
2010-12-16mdmon: when a reshape is detected, add any newly added devices to the array.NeilBrown1-5/+45
2010-12-15IMSM: Fix problem in mdmon monitor of using removed disk in imsm container.Labun, Marcin1-3/+36
2010-12-03FIX: sync_completed_fd handler has to be closedAdam Kwolek1-0/+2
2010-11-30mdmon: don't copy an invalid chunk_sizeNeilBrown1-1/+0
2010-11-23block monitor: freeze spare assignment for external arraysDan Williams1-2/+17
2010-11-23Provide a mdstat_ent to subarray helperDan Williams1-1/+1
2010-11-22get_info_super: report which other devices are thought to be working/failed.NeilBrown1-1/+1
2010-07-01Merge branch 'fixes' into for-neilDan Williams1-1/+1
2010-06-16Always assume SKIP_GONE_DEVS behaviour and kill the flagDan Williams1-1/+1
2010-05-14mdmon: periodically checkpoint recoveryDan Williams1-0/+1
2010-04-29mdmon: fix missing open of md/<dev>/recovery_startDan Williams1-25/+19
2010-02-08mdmon: insist on creating .pid file at startup.NeilBrown1-26/+0
2010-02-08mdmon: don't monitor /proc/mounts to decide when to create .pid file.NeilBrown1-7/+1
2010-02-04mdmon: allow pid to be stored in different directory.NeilBrown1-13/+25
2010-02-04mdmon: don't mkdir /var/runNeilBrown1-2/+0
2009-12-21Support external metadata recovery-resumeDan Williams1-1/+1
2009-12-21Teach sysfs_add_disk() callers to use ->recovery_start versus 'insync' parameterDan Williams1-1/+1
2009-12-21Add scaffolding for handling md/dev-XXX/recovery_startDan Williams1-1/+6
2009-12-14mdmon: cleanup resync_startDan Williams1-1/+0
2009-12-12mdmon: cleanup manage_member() leakDan Williams1-33/+52
2009-10-13mdmon: avoid writes in the startup path for mdmon on root arraysDan Williams1-0/+6
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-2/+2
2009-04-14incremental_container: preserve 'in_sync' flag when adding to existing array.NeilBrown1-1/+1
2009-03-10mdmon: allow incremental assembly of containers.NeilBrown1-0/+21
2009-02-24mdmon: record added disksDan Williams1-2/+13
2009-02-24mdmon: fix removed disk handlingDan Williams1-7/+10
2008-10-28update copyright headersDan Williams1-0/+19
2008-10-15mdmon: wait after trying to killDan Williams1-7/+1
2008-10-15mdmon: terminate cleanDan Williams1-1/+5
2008-10-15mdmon: periodically retry to create the socketDan Williams1-4/+12
2008-09-18Factor out add-disk codeNeilBrown1-1/+5
2008-09-15mdmon: recreate socket/pid file on SIGHUPDan Williams1-0/+8
2008-09-15ping_manager() to prevent 'add' before 'remove' completesDan Williams1-4/+13
2008-09-15mdmon: resume rebuildDan Williams1-1/+6
2008-08-19Allow an externally managed array to be marked readonlyNeilBrown1-0/+1
2008-08-19Factor out test for subarray version string.NeilBrown1-1/+2
2008-08-19mdadm: add device to a containerDan Williams1-0/+38
2008-08-19mdmon: remove devices from containerDan Williams1-1/+24
2008-08-19Make metadata updates from manage to monitor 'synchronous'NeilBrown1-18/+25
2008-08-15mdmon: allow degraded arrays to be monitoredDan Williams1-3/+8
2008-08-07mdmon: use 'recover' instead of 'repair' when activating a spareDan Williams1-1/+1
2008-08-04mdmon: ignore inactive arrays and other manage_new() cleanupsDan Williams1-23/+49
2008-07-18mdmon: ping will wait for manage_mon to catch up.NeilBrown1-0/+8
2008-07-18Make sure resync_start is initialised properly and maintained properlyNeil Brown1-1/+1
2008-07-14mdmon: initialize component_size in manage_newDan Williams1-1/+2
2008-07-14managemon: don't treat sysfs_add_disk as boolean functionDan Williams1-1/+1
2008-07-12Improve shutdown for container-based arrays.Neil Brown1-1/+1
2008-07-12Create arrays via metadata-updateNeil Brown1-4/+18
2008-07-12Revise message passing code.Neil Brown1-12/+6
2008-07-12Remove mgr_pipe for communicating from manage to monitor.Neil Brown1-37/+14
2008-07-12Remove mon_pipe for communicating from monitor to managerNeil Brown1-1/+0
2008-07-12Handle device removal from containerNeil Brown1-8/+0
2008-07-12Fix freeing of updates that have been handled by monitor.Neil Brown1-1/+3
2008-06-16mdmon: add debug print statements for profiling mdmonDan Williams1-0/+3
2008-06-12Add DDF code for activate_spareNeil Brown1-3/+7
2008-06-12Support adding a spare to a degraded array.Neil Brown1-4/+80
2008-06-12Allow passing metadata update to the monitor.Neil Brown1-0/+41
2008-05-27Parse the 'instance' part of external:/mdXX/INST in metadata handler.Neil Brown1-6/+2
2008-05-27Discard get_sync_pos. We should be using get_resync_start.Neil Brown1-3/+1
2008-05-27Exit when there are no more arrays to manage.Neil Brown1-0/+6
2008-05-27Remove stopped arrays.Neil Brown1-9/+36
2008-05-27Initialise newly allocated active_array better.Neil Brown1-0/+2
2008-05-27Discard 'array_list' in mdmonNeil Brown1-4/+3
2008-05-15close some memory leaksDan Williams1-0/+3
2008-05-15add infrastructure to receive higher order commands, like remove_deviceDan Williams1-8/+40
2008-05-15start fleshing out socket code, ping monitor to see if it is aliveDan Williams1-2/+26
2008-05-15Flag arrays for deletion after they have been stopped.Dan Williams1-14/+30
2008-05-15start resync when transitioning from initial readonly stateDan Williams1-0/+1
2008-05-15Merge mdmonNeil Brown1-0/+309