Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 29 Jul 2002 04:57:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 29 Jul 2002 04:57:18 -0400 Received: from cmailg4.svr.pol.co.uk ([195.92.195.174]:21800 "EHLO cmailg4.svr.pol.co.uk") by vger.kernel.org with ESMTP id ; Mon, 29 Jul 2002 04:57:17 -0400 Date: Mon, 29 Jul 2002 10:00:11 +0100 To: Ben Rafanello Cc: linux-kernel@vger.kernel.org Subject: Re: [2.6] Most likely to be merged by Halloween... THE LIST Message-ID: <20020729090011.GA2581@fib011235813.fsnet.co.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i From: Joe Thornber Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1696 Lines: 37 On Fri, Jul 26, 2002 at 11:12:15AM -0500, Ben Rafanello wrote: > Much > like snapshots and their cow tables, the changed blocks bitmap must > be updated and written to disk before a block is modified. Agreed dirty region logging will be handled directly by the in kernel mirror target, in the same way that the snapshot exception table is handled by the snapshot target. I guess when I think of metadata I'm really thinking of the mappings that describe whole volumes, rather than any internal data that a particular target may use. I think this is an appropriate divide, presumably EVMS stores the dirty bitmap for a mirror in the same way irrespective of whether the volume group metadata is in AIX or LVM1 format ? > On the facility used to notify userland processes of events, how > are the userland programs notified? There are 2 ioctls, one which gets the status for all the targets in a device, and another that blocks until that status changes. It is up to the target implementor to decide what is returned in the status, and to declare when this status has changed. So you will need a daemon if you are waiting for an event. For instance pvmove needs no additional kernel code to be implemented, instead it just uses a mirror target to keep the old and new mappings in sync. When the mirrors initial sync has been completed pvmove notices the change in status, removes the mirror and updates the device to use the new mapping. - Joe - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/