From owner-freebsd-fs@FreeBSD.ORG Sun Dec 28 23:12:09 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CC956C3C; Sun, 28 Dec 2014 23:12:09 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 823CF18EA; Sun, 28 Dec 2014 23:12:08 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgIFACuNoFSDaFve/2dsb2JhbABcFoMSMFgEgwHDXgqFKUoCgSEBAQEBAX2EDQEBBAEBASArIAsbGAICDQcMBgIpAQkmBgEHAgUEAQgUBIgLDa89hS2PMAEBAQEBAQEDAQEBAQEBAQEBGYEhjgUBARs0BxiCFQwvEYEwBYlLiAmDHoNTiCqHaSKBfx+BbiAxAQaBBTl+AQEB X-IronPort-AV: E=Sophos;i="5.07,657,1413259200"; d="scan'208";a="181574239" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 28 Dec 2014 18:12:07 -0500 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 99F96AEA36; Sun, 28 Dec 2014 18:12:07 -0500 (EST) Date: Sun, 28 Dec 2014 18:12:07 -0500 (EST) From: Rick Macklem To: kirk@ba23.org, Kevin Lo Message-ID: <1027320326.3203438.1419808327617.JavaMail.root@uoguelph.ca> In-Reply-To: Subject: Re: help using mount_smbfs with apple time capsule server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.95.12] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Dec 2014 23:12:09 -0000 Kirk Russell wrote: > Hi, > > I cannot get FreeBSD 10's smbfs client to work with my server -- an > Apple time > capsule 4th generation version 7.6.4. > > Here are the commands I ran, to reproduce the issue: > # uname -a > FreeBSD 10.1-RELEASE FreeBSD 10.1-RELEASE #0 r274401: Tue Nov 11 > 21:02:49 UTC 2014 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > # mount_smbfs -R 16 //lamb@Meganium/Data /mnt > Password: > # dd if=/mnt/afile bs=1 count=1 of=/dev/null > dd: /mnt/afile: No such file or directory > > For the FreeBSD 10 session, I tried to capture the raw packets, using > tcpdump, > in file bad.tcpdump. > > > This works with FreeBSD 9. For this working session, I tried to > capture the > raw packets, using tcpdump, in file good.tcpdump. > > # uname -a > FreeBSD 9.3-STABLE FreeBSD 9.3-STABLE #0: Wed Dec 24 16:16:05 EST > 2014 kirk@freenas:/usr/obj/usr/src/sys/GENERIC amd64 > # mount_smbfs -R 16 //lamb@Meganium/Data /mnt > Password: > # dd if=/mnt/afile bs=1 count=1 of=/dev/null > 1+0 records in > 1+0 records out > 1 bytes transferred in 0.000345 secs (2899 bytes/sec) > > > The two raw packets dumps are in this archive: > http://www.employees.org/~kirk/bstgbugs/smbfs.tar.gz > > Any pointers how to get his working? > The server appears to be returning an ERRbadpath error. > Well, my guess is that it has something to do with the Unicode changes added to smbfs about three years ago by kevlo@ (r227650 and friends in head). These changes are not in FreeBSD9. It appears that it now sends "\\afile" instead of "\afile" and I know nothing about the code/protocol but r227650 added changes like: error = mb_put_uint8(mbp, '\\'); replaced with: if (SMB_UNICODE_STRINGS(vcp)) error = mb_put_uint16le(mbp, '\\') else error = mb_put_uint8(mbp, '\\'); Note that the '\\' is actually 4 \ characters. Hopefully someone knows enough about Unicode or how SMB uses it to make sense of this? rick > -- > Kirk Russell > http://www.ba23.org/ > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" >