From owner-freebsd-ports@FreeBSD.ORG Sat Jul 15 19:51:50 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E087E16A4E2 for ; Sat, 15 Jul 2006 19:51:50 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id D15D843D5E for ; Sat, 15 Jul 2006 19:51:32 +0000 (GMT) (envelope-from uspoerlein@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so309882uge for ; Sat, 15 Jul 2006 12:51:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition; b=iATvgz/c2yCsJAQCDD0IkLHQh+1SCU4Fui1lqn6R51EjZXGEk7bYVZc2M2G4Aif6O8b0vKzoC9zohx62aakDqkqTihckW3s5YRm8koZkTBlqK3giTZajCFS8bgTK2I61u+WHfRMxn0uo48SUe0PeARoANY/3G9TjKkwa7HSJZ7M= Received: by 10.67.22.2 with SMTP id z2mr1033174ugi; Sat, 15 Jul 2006 12:51:31 -0700 (PDT) Received: from roadrunner.q.local ( [84.149.105.77]) by mx.gmail.com with ESMTP id j1sm2518100ugf.2006.07.15.12.51.29; Sat, 15 Jul 2006 12:51:31 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.6/8.13.6) with ESMTP id k6FJpljf051781 for ; Sat, 15 Jul 2006 21:51:48 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.6/8.13.6/Submit) id k6FJpl01051780 for ports@freebsd.org; Sat, 15 Jul 2006 21:51:47 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sat, 15 Jul 2006 21:51:46 +0200 From: Ulrich Spoerlein To: ports@freebsd.org Message-ID: <20060715195146.GE1106@roadrunner.aventurien.local> Mail-Followup-To: ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6BvahUXLYAruDZOj" Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Port of FUSE-NTFS to FreeBSD (sort of) 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: Sat, 15 Jul 2006 19:51:51 -0000 --6BvahUXLYAruDZOj Content-Type: multipart/mixed; boundary="aZoGpuMECXJckB41" Content-Disposition: inline --aZoGpuMECXJckB41 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, the FUSE NTFS team has release a new version of its NTFS driver which promises to deliver write support for NTFS to FreeBSD. http://sourceforge.net/mailarchive/forum.php?thread_id=3D23836054&forum_id= =3D2697 I made a port of the driver and fixed some build errors, but the port is still not working (for me), as it is running into an infinite loop. If some people would like to take it from here, I'd be glad to hand the port over, as I don't have that much time. At least all the boring stuff (pkg-descr, pkg-plist) has been taken care of. Here's further debugging info: Mounting the fuse device will result in an infinite loop in ntfs_attr_pread calling ntfs_pread unsuccessfully over and over again: (gdb) bt #0 ntfs_attr_pread (na=3D0x805e100, pos=3D476846, count=3D3354, b=3D0x8083= 000) at attrib.c:887 #1 0x080497f3 in ntfs_fuse_get_nr_free_clusters (vol=3D0x8054100) at ntfs-= 3g.c:200 #2 0x080498f1 in ntfs_fuse_statfs (path=3D0x480b62db "/", sfs=3D0xbfbfe600= ) at ntfs-3g.c:254 #3 0x480b1cb1 in fuse_statfs () from /usr/local/lib/libfuse.so.2 #4 0x480b3977 in fuse_ll_process () from /usr/local/lib/libfuse.so.2 #5 0x480b53e3 in fuse_session_process () from /usr/local/lib/libfuse.so.2 #6 0x480b2a77 in fuse_session_loop () from /usr/local/lib/libfuse.so.2 #7 0x480b2183 in fuse_loop () from /usr/local/lib/libfuse.so.2 #8 0x0804c50a in main (argc=3D5, argv=3D0xbfbfea24) at ntfs-3g.c:1864 (gdb) l 882 to_read =3D min(count, (rl->length << vol->cluster_= size_bits) - 883 ofs); 884 retry: 885 ntfs_log_trace("Reading 0x%llx bytes from vcn 0x%ll= x, lcn 0x%llx, " 886 "ofs 0x%llx.\n", to_read, rl->vcn, = rl->lcn, ofs); 887 br =3D ntfs_pread(vol->dev, (rl->lcn << vol->cluste= r_size_bits) + 888 ofs, to_read, b); 889 /* If everything ok, update progress counters and c= ontinue. */ 890 if (br > 0) { 891 total +=3D br; (gdb) p br Unhandled dwarf expression opcode 0x93 I'm not sure, what to make of that unhandled expression in gdb, so I'm lost here. Someone in the know might wanna take this further. Ulrich Spoerlein PS: Why is fcntl(fd, F_GETLK/F_SETLK, &flk) not working on file descriptors pointing to /dev/ad0 or /dev/md0? --=20 PGP Key ID: 20FEE9DD Encrypted mail welcome! Fingerprint: AEC9 AF5E 01AC 4EE1 8F70 6CBD E76E 2227 20FE E9DD Which is worse: ignorance or apathy? Don't know. Don't care. --aZoGpuMECXJckB41-- --6BvahUXLYAruDZOj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEuUdS524iJyD+6d0RAg7vAJ42tjO5k92Ue+AUBaGxmDXGPEmqUgCgjvVV K8V82XSV/ZYzV6G9EGmS6ew= =aS4h -----END PGP SIGNATURE----- --6BvahUXLYAruDZOj--