From owner-freebsd-fs@FreeBSD.ORG Wed Mar 6 19:08:57 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EB9C9779 for ; Wed, 6 Mar 2013 19:08:57 +0000 (UTC) (envelope-from martin@lispworks.com) Received: from lwfs1-cam.cam.lispworks.com (mail.lispworks.com [193.34.186.230]) by mx1.freebsd.org (Postfix) with ESMTP id 5E461F84 for ; Wed, 6 Mar 2013 19:08:55 +0000 (UTC) Received: from higson.cam.lispworks.com (higson.cam.lispworks.com [192.168.1.7]) by lwfs1-cam.cam.lispworks.com (8.14.5/8.14.5) with ESMTP id r26IvOCW045068; Wed, 6 Mar 2013 18:57:24 GMT (envelope-from martin@lispworks.com) Received: from higson.cam.lispworks.com (localhost.localdomain [127.0.0.1]) by higson.cam.lispworks.com (8.14.4) id r26IvLj1024190; Wed, 6 Mar 2013 18:57:21 GMT Received: (from martin@localhost) by higson.cam.lispworks.com (8.14.4/8.14.4/Submit) id r26IvLnc024186; Wed, 6 Mar 2013 18:57:21 GMT Date: Wed, 6 Mar 2013 18:57:21 GMT Message-Id: <201303061857.r26IvLnc024186@higson.cam.lispworks.com> From: Martin Simmons To: Larry Rosenman In-reply-to: <920990505611cd96a075c80d06691bb0@webmail.lerctr.org> (message from Larry Rosenman on Wed, 06 Mar 2013 05:07:28 -0600) Subject: Re: zfs send/recv invalid data References: <7c93aef20a88cdbcca85739e67470dce@webmail.lerctr.org> <25894116c93a59dab1fd976b425c36d1@webmail.lerctr.org> <07b59d5d4b2a3dab1385b054eea4f2da@webmail.lerctr.org> <7619c6383449c7a316edb1cdffc98c54@webmail.lerctr.org> <473BCD0A4A7A4E6AB08409A9B0C82363@multiplay.co.uk> <6dcfb2284551025af3cf58703a2b5cdc@webmail.lerctr.org> <920990505611cd96a075c80d06691bb0@webmail.lerctr.org> Cc: tevans.uk@googlemail.com, freebsd-fs@freebsd.org, ronald-freebsd8@klop.yi.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Mar 2013 19:08:58 -0000 >>>>> On Wed, 06 Mar 2013 05:07:28 -0600, Larry Rosenman said: > > On 2013-03-06 04:56, Larry Rosenman wrote: > > On 2013-03-06 04:51, Tom Evans wrote: > >> On Wed, Mar 6, 2013 at 10:46 AM, Larry Rosenman > >> wrote: > >>> So, you are correct that something(tm) is unclean about the ssh > >>> path. > >>> > >> And what is it that is added? Surely that is trivial to determine? > >> echo hello > foo > >> cat foo | ssh host cat > >> Cheers > >> Tom > > it seems to be bytestream dependent, as this simple case works, and > > the vast majority of the sends work, but the particular > > case in the thread does NOT. > > > > # echo hello >foo > > # cat foo | ssh home cat > > hello > > # > stranger: > $ cd /tmp > $ cat send.stream | ssh home openssl md5 > (stdin)= 9cd1d73ea8411f1c222bc90e7bea3d33 > $ openssl md5 send.stream > MD5(send.stream)= 9cd1d73ea8411f1c222bc90e7bea3d33 > $ > > so I'm not sure what is tripping it in the stream to a pipe case. Is that running under the same uid? The script you posted earlier runs the pipe under ssh root@tbh.lerctr.org. __Martin