FreeBSD Bugzilla – Attachment 86098 Details for
Bug 122477
[patch] /etc/rc.d/mdconfig and mdconfig2 are ignoring additional parameter in some cases
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
conf-122477.patch
conf-122477.patch (text/x-patch; charset=US-ASCII), 3.27 KB, created by
gcooper
on 2010-10-24 04:28:40 UTC
(
hide
)
Description:
conf-122477.patch
Filename:
MIME Type:
Creator:
gcooper
Created:
2010-10-24 04:28:40 UTC
Size:
3.27 KB
patch
obsolete
>Index: etc/rc.d/mdconfig >=================================================================== >--- etc/rc.d/mdconfig (revision 213680) >+++ etc/rc.d/mdconfig (working copy) >@@ -174,10 +174,11 @@ > } > > _mdconfig_cmd="$1" >+eval _mdconfig_list=\$mdconfig_units > if [ $# -gt 0 ]; then > shift > fi >-[ -n "$*" ] && _mdconfig_list="$*" >+[ -z "$_mdconfig_list" -a -n "$*" ] && _mdconfig_list="$*" > > load_rc_config $name > >Index: etc/rc.d/mdconfig2 >=================================================================== >--- etc/rc.d/mdconfig2 (revision 213680) >+++ etc/rc.d/mdconfig2 (working copy) >@@ -204,10 +204,11 @@ > } > > _mdconfig2_cmd="$1" >+eval _mdconfig2_list=\$mdconfig_units > if [ $# -gt 0 ]; then > shift > fi >-[ -n "$*" ] && _mdconfig2_list="$*" >+[ -z "$_mdconfig2_list" -a -n "$*" ] && _mdconfig2_list="$*" > > load_rc_config $name > >Index: share/man/man5/rc.conf.5 >=================================================================== >--- share/man/man5/rc.conf.5 (revision 213680) >+++ share/man/man5/rc.conf.5 (working copy) >@@ -3997,6 +3997,23 @@ > which causes log files flagged with a > .Cm C > to be created. >+.It Va mdconfig_units >+.Pq Vt str >+A list of one or more >+.Xr md 4 >+units to configure with >+.Xr mdconfig 8 >+and >+.Xr newfs 8 >+in time to be mounted with >+.Xr fstab 5 . >+If unspecified, the >+.Va mdconfig_md Ns Aq Ar X >+variables are evaluated in consecutive order from md0, until one variable is >+unset or null. >+See the >+.Va mdconfig_md Ns Aq Ar X >+variable descriptions below for more details. > .It Va mdconfig_md Ns Aq Ar X > .Pq Vt str > Arguments to >@@ -4015,10 +4032,12 @@ > .Fl f Ar file > for vnode backed > .Xr md 4 >-devices. >-Note that >+devices. Each > .Va mdconfig_md Ns Aq Ar X >-variables are evaluated until one variable is unset or null. >+entry listed in >+.Va mdconfig_units >+must be defined in >+.Xr fstab 5 . > .It Va mdconfig_md Ns Ao Ar X Ac Ns Va _newfs > .Pq Vt str > Optional arguments passed to >@@ -4082,65 +4101,6 @@ > .Bd -literal > mdconfig_md0_cmd="tar xfzC /var/file.tgz \e${_mp}" > .Ed >-.It Va ramdisk_units >-.Pq Vt str >-A list of one or more ramdisk units to configure with >-.Xr mdconfig 8 >-and >-.Xr newfs 8 >-in time to be mounted from >-.Xr fstab 5 . >-Each listed unit >-.Ar X >-must specify at least a >-.Ar type >-in a >-.Va ramdisk_ Ns Ao Ar X Ac Ns Va _config >-variable. >-Note that this way to configure ramdisks has been deprecated >-in favor of new >-.Va mdconfig_md* >-variables (see above). >-.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _config >-.Pq Vt str >-Arguments to >-.Xr mdconfig 8 >-for ramdisk >-.Ar X . >-At minimum a >-.Fl t Ar type >-must be specified, where >-.Ar type >-must be one of >-.Cm malloc >-or >-.Cm swap . >-.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _newfs >-.Pq Vt str >-Optional arguments passed to >-.Xr newfs 8 >-to initialize ramdisk >-.Ar X . >-.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _owner >-.Pq Vt str >-An ownership specification passed to >-.Xr chown 8 >-after the specified ramdisk unit >-.Ar X >-has been mounted. >-Both the >-.Xr md 4 >-device and the mount point will be changed. >-.It Va ramdisk_ Ns Ao Ar X Ac Ns Va _perms >-.Pq Vt str >-A mode string passed to >-.Xr chmod 1 >-after the specified ramdisk unit >-.Ar X >-has been mounted. >-Both the >-.Xr md 4 >-device and the mount point will be changed. > .It Va autobridge_interfaces > .Pq Vt str > Set to the list of bridge interfaces that will have newly arriving interfaces
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 122477
:
86095
|
86096
|
86097
| 86098 |
86099