]> git.ipfire.org Git - thirdparty/mdadm.git/commit - mdadm.c
Introduce enum flag_mode for setting and clearing flags.
authorNeilBrown <neilb@suse.com>
Tue, 29 Nov 2016 22:02:11 +0000 (09:02 +1100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 29 Nov 2016 22:12:13 +0000 (17:12 -0500)
commite22fe3ae15901d723aa6a0d319cd18564156c50b
tree7311d646a0a6dc72571b6816fb10669c0f3bc2b5
parent42d902d9db0874933d23b9735d76427b0ee23828
Introduce enum flag_mode for setting and clearing flags.

We currently use '1' to indicate that a flag (writemostly or failfast)
needs to be set, and '2' to indicate that it needs to be cleared.

Using magic number like this is not a best-practice.

So replaced them with values from a enum.

No functional change.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Build.c
Create.c
Incremental.c
Manage.c
mdadm.c
mdadm.h