From owner-freebsd-fs@FreeBSD.ORG Mon Jun 14 09:51:01 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFEE0106566C for ; Mon, 14 Jun 2010 09:51:01 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello089077043238.chello.pl [89.77.43.238]) by mx1.freebsd.org (Postfix) with ESMTP id 344578FC17 for ; Mon, 14 Jun 2010 09:50:59 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 7A04645CD9; Mon, 14 Jun 2010 11:50:57 +0200 (CEST) Received: from localhost (pdawidek.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 37FC245C9F; Mon, 14 Jun 2010 11:50:52 +0200 (CEST) Date: Mon, 14 Jun 2010 11:50:44 +0200 From: Pawel Jakub Dawidek To: Mikolaj Golub Message-ID: <20100614095044.GH1721@garage.freebsd.pl> References: <4C1372E0.1000903@soupacific.com> <20100612142311.GF2253@garage.freebsd.pl> <4C139F9C.2090305@soupacific.com> <86iq5oc82y.fsf@kopusha.home.net> <4C14215D.9090304@soupacific.com> <20100613003635.GA60012@icarus.home.lan> <20100613074921.GB1320@garage.freebsd.pl> <4C149A5C.3070401@soupacific.com> <20100613102401.GE1320@garage.freebsd.pl> <86eigavzsg.fsf@kopusha.home.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82evfD9Ogz2JrdWZ" Content-Disposition: inline In-Reply-To: <86eigavzsg.fsf@kopusha.home.net> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-fs@freebsd.org Subject: Re: FreeBSD 8.1 and HAST X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 09:51:02 -0000 --82evfD9Ogz2JrdWZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 14, 2010 at 10:28:15AM +0300, Mikolaj Golub wrote: >=20 > On Sun, 13 Jun 2010 12:24:01 +0200 Pawel Jakub Dawidek wrote: >=20 > >> Jun 13 16:25:37 sv01A hastd: [zfshast] (primary) Header contains no '= seq' field. >=20 > PJD> This is the most important bit from the primary node. >=20 > PJD> The header either does not contain 'seq' field or this field is 0. = It > PJD> can only be 0 if you have old kernel. With recent kernel geom_gate.= ko > PJD> was modified to start seq at 1, so this should not happen. >=20 > I am a bit confused how this seq is supposed to work. For sync thread. I = have > set up hast on 8-STABLE (before I used it on 9-CURRENT only) and have the= same > issue as hiroshi@ does. I have added=20 >=20 > pjdlog_debug(2, "remote_send: seq is %llu.", (uint64_t)ggio->gctl_seq); >=20 > after=20 >=20 > nv_add_uint64(nv, (uint64_t)ggio->gctl_seq, "seq"); >=20 > in primary/remote_send thread and observe the following: [...] Could you find where exactly it looses proper value? I found that in ggate_recv_thread() after ioctl(2), gctl_seq has expected value, but I'm not setup to test it further quickly. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --82evfD9Ogz2JrdWZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkwV+3QACgkQForvXbEpPzQhxQCfaHqWrpagqptbkh6xcfZoNKHr UwoAoJQfuEetO+eKuiGtmRBt2x46ubg1 =VmKM -----END PGP SIGNATURE----- --82evfD9Ogz2JrdWZ--