]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Makefile
Add policy framework.
authorNeilBrown <neilb@suse.de>
Mon, 5 Jul 2010 00:11:21 +0000 (10:11 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 6 Sep 2010 01:03:43 +0000 (11:03 +1000)
commit5527fc74620ecc831d7c854c200e34211ceb63de
tree2c4801f0fe00c037607325078a1babfa015550a7
parent8efb9d16ac4026ca237a2d887240543b1763b634
Add policy framework.

Policy can be stated as lines in mdadm.conf like:

POLICY  type=disk path=pci-0000:00:1f.2-* action=ignore domain=onboard

This defines two distinct policies which apply to any disk (but not
partition) device reached through the pci device 0000:00:1f.2.
The policies are "action=ignore" which means certain actions will
ignore the device, and "domain=onboard" which means all such devices
as treated as being united under the name 'onboard'.

This patch just adds data structures and code to read and
manipulate them.  Future patches will actually use them.

Signed-off-by: NeilBrown <neilb@suse.de>
Makefile
config.c
mdadm.h
policy.c [new file with mode: 0644]