diff options
author | Neil Brown <neilb@suse.de> | 2006-05-15 06:02:41 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-15 06:02:41 +0000 |
commit | 5bbb48424bb461bab9b883f37ac82c8d2405f49e (patch) | |
tree | 06f37fe41edbe1dc7191eed6f68801a16dc12618 /mdadm.conf.5 | |
parent | 1bfdbe01ff300ebbf92d68c15722d2ba861aac3b (diff) | |
download | mdadm-5bbb48424bb461bab9b883f37ac82c8d2405f49e.tar.gz |
Allow default creation info to to be stored in mdadm.conf
Default owner, group, mode and 'auto' flag can be given in a 'CREATE' line.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.conf.5')
-rw-r--r-- | mdadm.conf.5 | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/mdadm.conf.5 b/mdadm.conf.5 index 56a5444..b7d915e 100644 --- a/mdadm.conf.5 +++ b/mdadm.conf.5 @@ -212,6 +212,41 @@ There should only be one .B program line and it should be give only one program. + +.TP +.B CREATE +The +.B create +line gives default values to be used when creating device entries for +arrays. +These include: + +.RS 4 +.TP +.B owner= +.TP +.B group= +These can give user/group ids or names to use instead of system +defaults (root/wheel or root/disk). +.TP +.B mode= +An octal file mode such as 0660 can be given to override the default +of 0600. +.TP +.B auto= +This corresponds to the +.B --auto +flag to mdadm. Give +.BR yes , +.BR md , +.BR mdp , +.B part +- possibly followed by a number of partitions - to indicate how +missing device entries should be created. + +.RE + + .SH EXAMPLE DEVICE /dev/sd[bcdjkl]1 .br @@ -254,7 +289,8 @@ ARRAY /dev/md/home UUID=9187a482:5dde19d9:eea3cc4a:d646ab8b MAILADDR root@mydomain.tld .br PROGRAM /usr/sbin/handle-mdadm-events - +.br +CREATE group=system mode=0640 auto=part-8 .SH SEE ALSO .BR mdadm (8), |