aboutsummaryrefslogtreecommitdiffstats
path: root/sysfs.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-02Add reading SATA encryption informationBlazej Kucman1-0/+29
2024-03-22sysfs: remove vers parameter from sysfs_set_arrayMateusz Kusiak1-4/+2
2024-03-11mdadm: introduce sysfs_get_container_devnm()Mariusz Tkaczyk1-0/+23
2024-01-24Replace "none" with macroMateusz Kusiak1-2/+2
2024-01-24Define sysfs max buffer sizeMateusz Kusiak1-4/+4
2023-12-19Remove all "if zeros"Mateusz Kusiak1-66/+0
2023-05-08mdadm: define DEV_MD_DIRMariusz Tkaczyk1-1/+1
2022-09-29mdadm: replace container level checking with inlineKinga Tanska1-1/+1
2022-04-04mdadm: add map_num_s()Mariusz Tkaczyk1-4/+5
2019-08-16mdadm: check value returned by snprintf against errorsKrzysztof Smolinski1-2/+10
2019-07-10mdadm: load default sysfs attributes after assemblationMariusz Dabrowski1-0/+158
2019-05-20mdmon: fix wrong array state when disk fails during mdmon startupArtur Paszkiewicz1-9/+14
2017-11-09sysfs: include faulty drive in disk countMariusz Tkaczyk1-1/+1
2017-10-02Don't abort starting the array if kernel does not support pplArtur Paszkiewicz1-3/+3
2017-09-29sysfs_init_dev - take a dev_t argumentJes Sorensen1-1/+1
2017-06-05Get failed disk count from array stateTomasz Majchrzak1-10/+8
2017-05-09sysfs/sysfs_read: Count working_disksJes Sorensen1-6/+9
2017-05-05sysfs/sysfs_read: Count active_disks and failed_disksJes Sorensen1-2/+8
2017-04-24Don't use UnSet with consistency_policyArtur Paszkiewicz1-6/+4
2017-04-20maps: Use keyvalue for null terminator to indicate 'unset' valueJes Sorensen1-2/+0
2017-04-20sysfs: Parse array_state in sysfs_read()Jes Sorensen1-4/+5
2017-03-30sysfs: Make sysfs_init() return an error codeJes Sorensen1-6/+10
2017-03-30sysfs: Use the presence of /sys/block/<dev>/md as indicator of valid deviceJes Sorensen1-5/+12
2017-03-29imsm: PPL supportArtur Paszkiewicz1-0/+14
2017-03-29Generic support for --consistency-policy and PPLArtur Paszkiewicz1-0/+11
2016-12-22Make get_component_size() work with named array.NeilBrown1-8/+2
2016-11-28mdadm: bad block support for external metadata - initializationTomasz Majchrzak1-1/+26
2016-11-17Increase buffer for sysfs pathTomasz Majchrzak1-16/+20
2016-08-11sysfs: Avoid if and return on the same lineJes Sorensen1-1/+2
2016-03-09load_sys(): Add a buffer size argumentJes Sorensen1-23/+24
2015-12-16add sysfs_array_state to struct mdinfoSong Liu1-0/+7
2015-10-08re-add: make re-add try to write sysfs node firstGuoqing Jiang1-0/+6
2015-07-06sysfs: reject reads that use the whole buffer.NeilBrown1-5/+5
2015-02-12Don't break long strings onto multiple lines.NeilBrown1-5/+2
2015-02-12Consistently print program Name and __func__ in debug messages.NeilBrown1-4/+4
2015-02-12Change way of printing name of a processPawel Baldysiak1-4/+4
2013-08-01Introduce devid2kname - slightly different to devid2devnm.NeilBrown1-1/+1
2013-07-02sysfs: fix bugs in new sysfs_wait function.NeilBrown1-3/+6
2013-07-01Manage: check alignment when stopping an array undergoing reshape.NeilBrown1-0/+43
2013-07-01New function: sysfs_waitNeilBrown1-0/+29
2013-06-25Grow: fix bug in raid0 -> raid5 conversion.NeilBrown1-1/+1
2013-06-19Remove lots of unnecessary white space.NeilBrown1-3/+1
2013-06-19sysfs_read: return devices in same order as in filesystem.NeilBrown1-4/+7
2013-05-13Detail: report on inactive arrays.NeilBrown1-0/+1
2013-02-21Discard devnum in favour of devnmNeilBrown1-41/+20
2012-11-20Grow: fix reshape from RAID5 to RAID1.NeilBrown1-2/+4
2012-10-04Grow: set new_data_offset if appropriateNeilBrown1-0/+5
2012-09-24Manage: fix checks for removal from a container.NeilBrown1-18/+16
2012-07-09Remove scattered checks for malloc success.NeilBrown1-7/+2
2012-07-09Introduce pr_err for printing error messages.NeilBrown1-2/+2
2012-04-30Introduce sysfs_set_num_signed() and use it to set bitmap/offsetJes Sorensen1-0/+8
2012-04-04Bitmap_offset is a signed numberNeilBrown1-1/+1
2012-03-28sysfs: fixed sysfs_freeze_array array to work properly with Manage_subdevs.NeilBrown1-3/+4
2011-12-23Grow/bitmap: support adding bitmap via sysfs.NeilBrown1-0/+13
2011-11-03get_component_size(): Check read() return value for error before using itJes Sorensen1-1/+1
2011-11-02sysfs_unique_holder(): Check read() return value before using as buffer indexJes Sorensen1-0/+2
2011-10-17Fix off-by-one in readlink() buffer size handlingThomas Jarosch1-1/+1
2011-09-21FIX: Do not unblock array accidentallyAdam Kwolek1-0/+13
2011-08-30sysfs: fix sysfs_disk_to_scsi_idDan Williams1-20/+10
2011-07-27Grow: ensure clean abort if we cannot read the 'completed' file.NeilBrown1-1/+1
2011-06-17Fix some compiler warnings.Luca Berra1-0/+5
2011-04-18FIX: Set proper raid disks during migrationAdam Kwolek1-2/+5
2011-04-05Move WaitClean from sysfs to Monitor.cNeilBrown1-103/+0
2011-03-08Change way that reshaping arrays with external-metadata are assembled.NeilBrown1-2/+5
2011-02-18FIX: sysfs_disk_to_scsi_id() adapted to current sysfs formatKrzysztof Wojcik1-8/+6
2011-01-26Fix some issues with setting 'new' state of a reshapeNeilBrown1-0/+9
2010-12-16Split fmt_devnum out from devnum2devnameNeilBrown1-5/+1
2010-12-03Add support to skip slot configurationAdam Kwolek1-1/+2
2010-11-23block monitor: freeze spare assignment for external arraysDan Williams1-0/+33
2010-08-05Compile with -Wextra by defaultNeilBrown1-3/+3
2010-07-01Merge branch 'fixes' into for-neilDan Williams1-11/+9
2010-06-16Always assume SKIP_GONE_DEVS behaviour and kill the flagDan Williams1-11/+9
2010-06-15Remove 'checkpointing' side effect of --wait-cleanDan Williams1-3/+0
2009-12-30Merge branch 'klockwork' of git://github.com/djbw/mdadmNeilBrown1-9/+4
2009-12-21Support external metadata recovery-resumeDan Williams1-1/+10
2009-12-21Teach sysfs_add_disk() callers to use ->recovery_start versus 'insync' parameterDan Williams1-3/+3
2009-12-10Fix required to enable RAID arrays on SAS disks.Artur Wojcik1-9/+4
2009-10-22Merge branch 'master' into devel-3.1NeilBrown1-2/+3
2009-10-13mdmon: preserve socket over chrootDan Williams1-2/+3
2009-10-01Merge branch 'master' into devel-3.1NeilBrown1-1/+106
2009-08-11Handle extra 'grow' variations.NeilBrown1-8/+15
2009-07-14restripe: support saving when not all devices are present.NeilBrown1-8/+29
2009-06-02Move WaitClean from Monitor.c to sysfs.cNeilBrown1-0/+105
2009-06-02Update copyright dates and remove references to @cse.unsw.edu.auNeilBrown1-1/+1
2009-04-14Merge branch 'master' of git://github.com/djbw/mdadm into devel-3.0NeilBrown1-0/+14
2009-04-14incremental_container: preserve 'in_sync' flag when adding to existing array.NeilBrown1-2/+6
2009-04-12Grow: fix hang when reshape completes too fastDan Williams1-0/+20
2009-04-12imsm: set array size at Create/AssembleDan Williams1-0/+14
2009-04-01grow: don't wait forever for critical section to pass.NeilBrown1-0/+19
2009-02-24sysfs: allow sysfs_read to detect and drop removed disksDan Williams1-5/+21
2008-11-04Abort sysfs_read early if no device found.NeilBrown1-0/+5
2008-11-04Generate 'change' uevents when arrays change in non-obvious ways.NeilBrown1-0/+16
2008-11-04Move recently merged /sys/dev/ lookup into stat2devnum.NeilBrown1-37/+9
2008-10-30Merge branch 'master' into devel-3.0NeilBrown1-3/+26
2008-10-30Adjust major number testing to allow for extended minor number in 2.6.28NeilBrown1-3/+26
2008-10-15sysfs_open leaks devnum2devname() resultDan Williams1-1/+6
2008-10-15--wait-clean: shorten timeoutDan Williams1-2/+3
2008-10-15sysfs: dprintf when we fail to write a sysfs fileDan Williams1-1/+4
2008-09-18Move calls to SET_ARRAY_INFO to common helper.NeilBrown1-30/+48
2008-09-18Factor out add-disk codeNeilBrown1-7/+0
2008-09-15sysfs: detect disks that are in the process of being removedDan Williams1-5/+24
2008-09-15'mdadm --wait-clean' wait for array to be marked cleanDan Williams1-0/+55
2008-09-15Honor safemode_delay at Create() and Incremental() timeDan Williams1-0/+13
2008-08-15mdmon: allow degraded arrays to be monitoredDan Williams1-0/+6
2008-07-24sysfs: deprecate sysfs_disk_to_sgDan Williams1-0/+2
2008-07-18sysfs: avoid possible data corruption in sys_load.NeilBrown1-1/+1
2008-07-18Correct readlink usage in sysfs.cNeilBrown1-2/+4
2008-07-12Introduce devname2devnumNeil Brown1-7/+1
2008-07-12Correct unit conversion for component_size and dev/size in sysfs.Neil Brown1-2/+2
2008-07-12Handle device removal from containerNeil Brown1-0/+63
2008-07-12Remove 'major' from superswitch.Neil Brown1-1/+3
2008-06-13sysfs: helper routine to retrieve the scsi idDan Williams1-0/+49
2008-06-13sysfs: provide a helper function for locating scsi_generic interfacesDan Williams1-0/+65
2008-06-12Add DDF code for activate_spareNeil Brown1-0/+1
2008-06-12Don't ignore errors in sysfs_add_disk.Neil Brown1-5/+6
2008-05-27'errno' is a positive number, not negative.Neil Brown1-1/+1
2008-05-27Remember to close directories when we are finished with them.Neil Brown1-1/+4
2008-05-27Remove 'fd' arg from sysfs_add_diskNeil Brown1-1/+1
2008-05-15Merge mdmonNeil Brown1-0/+29
2008-05-15set resync_start in Incremental_containerDan Williams1-0/+1
2008-05-15Create a container memberNeil Brown1-1/+2
2008-05-15More ddf stuffNeil Brown1-0/+53
2008-05-15Compiple fixes for mdassemble and diet-libcNeil Brown1-4/+4
2008-05-15Recent change broken handling of metadata-less arrays.Neil Brown1-2/+3
2007-12-14Use sysfs info for metadata version info in Detail and elsewhere.Neil Brown1-1/+5
2007-12-14Replace sysarray with mdinfoNeil Brown1-27/+32
2007-12-14Use 'mdinfo' instead of special 'sysdev' structure.Neil Brown1-17/+17
2007-12-14Make sure sysfs_read never succeeds for a non-MD device.Neil Brown1-1/+4
2006-12-21Add new mode: --incrementalNeil Brown1-6/+24
2006-12-14When resync finished, report the mismatch count if there is one.Neil Brown1-0/+6
2006-12-14Increase raid456 stripe cache size if needed to --grow the array.Neil Brown1-0/+6
2006-05-15Fix problem with sector/KB size confuision for bitmap sizing.Neil Brown1-2/+2
2006-04-28[PATCH] Get the name for partitioned devices in sysfs correct.Neil Brown1-2/+2
2006-03-20Support restarting of a reshape on --assembleNeil Brown1-0/+4
2006-03-13Initial reshape supportNeil Brown1-0/+265