From owner-freebsd-fs@FreeBSD.ORG Sat Sep 13 05:26:03 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A32416A4BF for ; Sat, 13 Sep 2003 05:26:03 -0700 (PDT) Received: from mail.ryu16.org (YahooBB219005044040.bbtec.net [219.5.44.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id E833243FDF for ; Sat, 13 Sep 2003 05:26:00 -0700 (PDT) (envelope-from imura@ryu16.org) Received: from redeye.xt.ryu16.org (localhost [127.0.0.1]) by mail.ryu16.org (8.12.9/8.12.9) with ESMTP id h8DCPjl8098596; Sat, 13 Sep 2003 21:25:45 +0900 (JST) (envelope-from imura@redeye.xt.ryu16.org) Received: (from imura@localhost) by redeye.xt.ryu16.org (8.12.9/8.12.9/Submit) id h8DCPhEY098595; Sat, 13 Sep 2003 21:25:43 +0900 (JST) Date: Sat, 13 Sep 2003 21:25:43 +0900 From: "R. Imura" To: anton Message-ID: <20030913212543.A98493@ryu16.org> References: <8114690253.20030912135833@do.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Mutt/1.2.5i-jp2 In-Reply-To: <8114690253.20030912135833@do.ru>; from anton@do.ru on Fri, Sep 12, 2003 at 01:58:33PM +0700 cc: freebsd-fs@freebsd.org Subject: Re: mount_smbfs and lowercase X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 12:26:03 -0000 On Fri, Sep 12, 2003 at 01:58:33PM +0700, anton wrote: > I using FreBSD-4.8 > I was mount smb file system with mount_smbfs -c l, but file and > folder names are don't convert to lowercase, whats wrong? It seems -c feature has been disabled. I don't know why but you may need to un-comment the code. Index: smbfs_subr.c =================================================================== RCS file: /home/ncvs/src/sys/fs/smbfs/smbfs_subr.c,v retrieving revision 1.1.2.2 diff -u -r1.1.2.2 smbfs_subr.c --- smbfs_subr.c 17 Jan 2003 08:20:26 -0000 1.1.2.2 +++ smbfs_subr.c 13 Sep 2003 12:20:41 -0000 @@ -316,10 +316,10 @@ int smbfs_fname_tolocal(struct smb_vc *vcp, char *name, int nmlen, int caseopt) { -/* if (caseopt & SMB_CS_UPPER) + if (caseopt & SMB_CS_UPPER) iconv_convmem(vcp->vc_toupper, name, name, nmlen); else if (caseopt & SMB_CS_LOWER) - iconv_convmem(vcp->vc_tolower, name, name, nmlen);*/ + iconv_convmem(vcp->vc_tolower, name, name, nmlen); if (vcp->vc_tolocal) iconv_convmem(vcp->vc_tolocal, name, name, nmlen); return 0; - R. Imura