From owner-freebsd-ports@FreeBSD.ORG Fri Nov 30 03:18:10 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80B1E16A419 for ; Fri, 30 Nov 2007 03:18:10 +0000 (UTC) (envelope-from wangyi6854@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by mx1.freebsd.org (Postfix) with ESMTP id 301A113C461 for ; Fri, 30 Nov 2007 03:18:10 +0000 (UTC) (envelope-from wangyi6854@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so1570676nzf for ; Thu, 29 Nov 2007 19:18:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=G/0EfuxFqSjCGUhZv/rHVAu+4pSxOP+LDS8BiPRUQG0=; b=bTfo7cqDsRdACr9PhTBuuDQO81Vb/kF/q4w4meAoMZmlqn9vQhoVmXVrnsUO+iZNWRw2kdnqYrIWSfreW8Vja7ei+J3hJeMgwefu+B5Ymb5COAbNqKG1csZOKHHh78i191jt3KXt3GrB9kPDHGpPyd2p/bGQJQE62sGnSqCi7uU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Y0BNpH5zu8vESM5ycN0CnWohiIZxVhy6UeN7QtjzDDZeRSaSnUd/2IAkMtYYaI1NcvsneOCXWY3W6Zcm1JFxpiZad0GsjCa7Jr2KXFbzUNqXCILczvzJtAPnnz3LTRiA4Oiz7ZMgofDNDx6TRHr6HzZHOgn2509cvypUzmZn3zU= Received: by 10.142.79.15 with SMTP id c15mr974399wfb.1196392688254; Thu, 29 Nov 2007 19:18:08 -0800 (PST) Received: by 10.142.44.10 with HTTP; Thu, 29 Nov 2007 19:18:08 -0800 (PST) Message-ID: <5ea5cca50711291918yc3d13bdjfd0ad0957f169e77@mail.gmail.com> Date: Fri, 30 Nov 2007 11:18:08 +0800 From: "Yi Wang" To: "Suhaib ." In-Reply-To: <20071130005006.DF04D440EA@ws5-1.us4.outblaze.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071130005006.DF04D440EA@ws5-1.us4.outblaze.com> Cc: ports@freebsd.org, Alejandro Pulver , "Aryeh M. Friedman" Subject: Re: problem with mount_ntfs-3g X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Nov 2007 03:18:10 -0000 Yes, I think it does the trick. some words from mount(8): The default behavior of mount is to pass the -t option directly to the nmount(2) system call in the fstype option. However, for the following file system types: cd9660, mfs, msdosfs, nfs, nfs4, ntfs, nwfs, nullfs, portalfs, smbfs, udf, and unionfs, mount will not call nmount(2) directly and will instead attempt to execute a program in /sbin/mount_XXX where XXX is replaced by the file system type name. according to this, your patch should works fine. I didn't test it yet because I delete /usr/obj before. So I'm build world now. I'll post the result when it finish. On 11/30/07, Suhaib . wrote: > > > ----- Original Message ----- > > From: "Alejandro Pulver" > > To: "Aryeh M. Friedman" > > Subject: Re: problem with mount_ntfs-3g > > Date: Thu, 29 Nov 2007 20:16:14 -0300 > > > > > > On Thu, 29 Nov 2007 19:42:00 -0300 > > Alejandro Pulver wrote: > > > > > On Tue, 27 Nov 2007 09:35:48 -0500 > > > "Aryeh M. Friedman" wrote: > > > > > > > > Then, I execute this command: > > > > > mount -t ntfs-3g -o ro /dev/ad6s10 /media/g > > > > > but is also says: > > > > > mount: /dev/ad6s10 : Operation not supported by device > > > > > > > > > > Is this a bug of mount? > > > > > I get exactly the same thing on -current AMD64. > > > > > > > > > > uname -a: > > > > > FreeBSD wangyi.com 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 23 12:18:30 > > > > > CST 2007 root@wangyi.com:/usr/obj/usr/src/sys/MYKERNEL i386 > > > > > > > > > Can't reproduce in my machine, please try with the latest version > > > (attached as shell archive). > > > > > > > Sorry, it was stripped. It's available here: > > > > ftp://ftp.alepulver.com.ar/fusefs-ntfs.shar > > > > Best Regards, > > Ale > > << signature.asc >> > > > I had the same problem on RELENG_7 and made a minor edit to mount > for ntfs-3g to work. However,I have not had the time to investigate > whether or not it is the correct solution, see the comment about > nmount() in mount.c > > To try out the change apply the attached patch file from /usr/src, > then cd to /usr/src/sbin/mount and run make. A quick test... > > # mount -t ntfs-3g -o ro /dev/da8s1 /mnt > mount: /dev/da8s1 : Operation not supported by device > > # /usr/obj/usr/src/sbin/mount/mount -t ntfs-3g -o ro /dev/da8s1 /mnt > > > -- > Suhaib > > -- > _______________________________________________ > Surf the Web in a faster, safer and easier way: > Download Opera 9 at http://www.opera.com > > Powered by Outblaze > > -- Regards, Wang Yi