conf/175311: [patch] add "dump" fs type support to rc.d/dumpon

看板FB_bugs作者時間12年前 (2013/04/27 12:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
>Number: 175311 >Category: conf >Synopsis: [patch] add "dump" fs type support to rc.d/dumpon >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 14 22:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 10-CURRENT >Organization: EMC Isilon >Environment: FreeBSD gran-tourismo.west.isilon.com 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r+294c6eb: Fri Jan 4 07:38:46 PST 2013 root@gran-tourismo.west.isilon.com:/usr/obj/usr/src/sys/GRAN-TOURISMO amd64 >Description: savecore(8) notes that you can use dump for the FS type, but dumpon only supports swap for the FS type. The attached patch enhances both FS types to work with dumpon + savecore. >How-To-Repeat: >Fix: Patch attached with submission follows: From 16921efded40ef4c7800f07157f0e52be4cf8121 Mon Sep 17 00:00:00 2001 From: Garrett Cooper <yanegomi@gmail.com> Date: Mon, 14 Jan 2013 14:39:59 -0800 Subject: [PATCH] Support the pseudo fs_vfstype == "dump" noted in savecore(8) Signed-off-by: Garrett Cooper <yanegomi@gmail.com> --- etc/rc.d/dumpon | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/dumpon b/etc/rc.d/dumpon index ce5fc1c..981ff84 100755 --- a/etc/rc.d/dumpon +++ b/etc/rc.d/dumpon @@ -40,7 +40,12 @@ dumpon_start() return $? fi while read dev mp type more ; do - [ "${type}" = "swap" ] || continue + case "$type" in + dump|swap) + ;; + *) + continue;; + esac [ -c "${dev}" ] || continue dumpon_try "${dev}" 2>/dev/null && return 0 done </etc/fstab -- 1.8.0.2 >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
文章代碼(AID): #1HUrJlBg (FB_bugs)