From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 21 12:58:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ACD116A4CE; Mon, 21 Mar 2005 12:58:39 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EE4043D2F; Mon, 21 Mar 2005 12:58:38 +0000 (GMT) (envelope-from jilles@stack.nl) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010::132]) by mailhost.stack.nl (Postfix) with ESMTP id 92A7B1F2FD; Mon, 21 Mar 2005 13:58:37 +0100 (CET) Received: by turtle.stack.nl (Postfix, from userid 1677) id 853371DAAA; Mon, 21 Mar 2005 13:58:37 +0100 (CET) Date: Mon, 21 Mar 2005 13:58:37 +0100 From: Jilles Tjoelker To: Florent Thoumie Message-ID: <20050321125837.GC19773@stack.nl> References: <20050318172553.GG89714@freebsdmall.com> <1111404274.698.14.camel@innercity> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1111404274.698.14.camel@innercity> X-Operating-System: FreeBSD 5.3-RELEASE-p2 i386 User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: Murray Stokely cc: freebsd-ports@freebsd.org Subject: Re: ntfsprogs under FreeBSD 5.4-PRERELEASE not working? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2005 12:58:39 -0000 On Mon, Mar 21, 2005 at 12:24:34PM +0100, Florent Thoumie wrote: > Le Vendredi 18 mars 2005 à 09:25 -0800, Murray Stokely a écrit : > > I'm having trouble using ntfsls from a recently built > > sysutils/ntfsprogs port. Is anyone successfully using this port? The > > package is only 230k when built without GNOME VFS support, but it just > > doesn't seem to work. I'd like to put this tool onto FreeBSD DVDs > > (and CDs if it fits). > This simple patch makes ntfsls work fine, but I don't think > removing locks is a good solution. > I'm cc'ing hackers@ to get review from people used to fcntl(2) > interface. Yes, devfs does not support file locks. And according to POSIX, support for file locks on non-regular files is not mandatory. It also seems the support cannot easily be added because the annoying issue of the size of a device. Also this will not help you to get it running on currently existing versions of FreeBSD. That said, the locking is useful in case people run two ntfs programs at the same time. You could use separate lockfiles but afaik there is no standard for lockfiles for block devices (there is for serial ports). -- Jilles Tjoelker