From owner-cvs-all@FreeBSD.ORG Mon Jan 3 12:38:01 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CDA816A4CE; Mon, 3 Jan 2005 12:38:01 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3583C43D39; Mon, 3 Jan 2005 12:38:01 +0000 (GMT) (envelope-from pjd@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j03Cc1d5018931; Mon, 3 Jan 2005 12:38:01 GMT (envelope-from pjd@repoman.freebsd.org) Received: (from pjd@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j03Cc1ga018930; Mon, 3 Jan 2005 12:38:01 GMT (envelope-from pjd) Message-Id: <200501031238.j03Cc1ga018930@repoman.freebsd.org> From: Pawel Jakub Dawidek Date: Mon, 3 Jan 2005 12:38:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sbin/geom/class/mirror geom_mirror.csrc/sys/geom/mirror g_mirror.c g_mirror.h g_mirror_ctl.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 12:38:01 -0000 pjd 2005-01-03 12:38:01 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sbin/geom/class/mirror geom_mirror.c sys/geom/mirror g_mirror.c g_mirror.h g_mirror_ctl.c Log: MFC: - Fix force-stopping mirrors. - Introduce 'idle' functionality, which works by marking components as clean after the given idle time. - Use shutdown hooks to mark mirrors as clean after all file systems are unmounted. - Use g_topology_try_lock() in the event thread to avoid deadlocks, because some classes hold the topology lock when calling g_(read|write)_data(). - Keep consumers open even if mirror is not open to avoid races which taste mechanism and to be able to always update metadata. - Treat components which has I/O errors as broken, don't try to rebuild them. - Introduce metadata backward compatibility code, which updates detected all metadata to the current version. Revision Changes Path 1.3.2.4 +1 -0 src/sbin/geom/class/mirror/geom_mirror.c 1.19.2.5 +392 -219 src/sys/geom/mirror/g_mirror.c 1.8.2.3 +89 -19 src/sys/geom/mirror/g_mirror.h 1.4.2.1 +7 -7 src/sys/geom/mirror/g_mirror_ctl.c