FreeBSD Bugzilla – Attachment 125001 Details for
Bug 168544
[patch] [rc]: addswap-mounted swapfiles cause panic on shutdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 810 bytes, created by
Warren Block
on 2012-06-01 23:50:10 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Warren Block
Created:
2012-06-01 23:50:10 UTC
Size:
810 bytes
patch
obsolete
>Index: stable/9/etc/rc.d/addswap >=================================================================== >--- stable/9/etc/rc.d/addswap (revision 236424) >+++ stable/9/etc/rc.d/addswap (working copy) >@@ -7,13 +7,13 @@ > > # PROVIDE: addswap > # REQUIRE: FILESYSTEMS kld >-# KEYWORD: nojail >+# KEYWORD: nojail shutdown > > . /etc/rc.subr > > name="addswap" > start_cmd="addswap_start" >-stop_cmd=":" >+stop_cmd="addswap_stop" > > addswap_start() > { >@@ -29,5 +29,21 @@ > esac > } > >+addswap_stop() >+{ >+ case ${swapfile} in >+ [Nn][Oo] | '') >+ ;; >+ *) >+ mdev=`mdconfig -lv | grep "${swapfile}" | cut -f1` >+ swapctl -l | grep -q "/dev/$mdev" >+ if [ $? -eq 0 ]; then >+ echo "Dismounting swapfile ${swapfile}" >+ swapoff "/dev/$mdev" && mdconfig -d -u "$mdev" >+ fi >+ ;; >+ esac >+} >+ > load_rc_config $name > run_rc_command "$1"
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 168544
: 125001 |
125002
|
125003