From owner-freebsd-geom@FreeBSD.ORG Thu Jul 10 19:19:54 2008 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94F55106564A for ; Thu, 10 Jul 2008 19:19:54 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 50E258FC1B for ; Thu, 10 Jul 2008 19:19:54 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KH1gD-0004Lo-Qy for freebsd-geom@freebsd.org; Thu, 10 Jul 2008 19:19:49 +0000 Received: from 78-0-89-102.adsl.net.t-com.hr ([78.0.89.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2008 19:19:49 +0000 Received: from ivoras by 78-0-89-102.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Jul 2008 19:19:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Thu, 10 Jul 2008 21:19:35 +0200 Lines: 38 Message-ID: References: <482257ad0807100541s2d2c3d1eo6cd57c3a1bc338d1@mail.gmail.com> <200807102309.03191.mark@legios.org> <482257ad0807100655u1a5c660awfad05564e40e9a95@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig14946CCF175CE727EF6B3025" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-89-102.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <482257ad0807100655u1a5c660awfad05564e40e9a95@mail.gmail.com> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: Can GEOM be used to intercept the I/o calls to an existing mounted device? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 19:19:54 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig14946CCF175CE727EF6B3025 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Tapan Chaudhari wrote: > Can't I do it on the fly while the device is already mounted? I just wa= nt > that all the calls going to the device "/dev/md0s1" first come to me an= d > then it goes to the original device. In short intercepting the i/o call= s. Is > there some way I can achieve this? It would be very nice if GEOM could do this, since it would then=20 trivially allow things like data replication, log/rollback, etc. but it=20 doesn't work like that. In short, no, you cannot listen to IO between=20 providers. (not that it isn't possible to do at all, it just isn't implemented). --------------enig14946CCF175CE727EF6B3025 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIdmDIldnAQVacBcgRAqr9AJ9vAhSfb6e2a29Y4NxAn2QNWRTRpACg8Ht7 z86ZtogEdVF0NwgAb0JoHC8= =M/JJ -----END PGP SIGNATURE----- --------------enig14946CCF175CE727EF6B3025--