From owner-freebsd-bugs@FreeBSD.ORG Fri Sep 8 13:50:36 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AF5816A4E7 for ; Fri, 8 Sep 2006 13:50:36 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 483D543D70 for ; Fri, 8 Sep 2006 13:50:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k88DoNnI063139 for ; Fri, 8 Sep 2006 13:50:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k88DoNWD063137; Fri, 8 Sep 2006 13:50:23 GMT (envelope-from gnats) Resent-Date: Fri, 8 Sep 2006 13:50:23 GMT Resent-Message-Id: <200609081350.k88DoNWD063137@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dominic Marks Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D0D616A4DA for ; Fri, 8 Sep 2006 13:48:20 +0000 (UTC) (envelope-from dominicm@gdc083.internal.graphdata.co.uk) Received: from mailhost.graphdata.co.uk (mailhost.graphdata.co.uk [195.12.22.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FB7C43D58 for ; Fri, 8 Sep 2006 13:48:19 +0000 (GMT) (envelope-from dominicm@gdc083.internal.graphdata.co.uk) Received: from localhost (localhost [127.0.0.1]) by mailhost.graphdata.co.uk (Postfix) with ESMTP id 1D09011406D for ; Fri, 8 Sep 2006 14:48:18 +0100 (BST) Received: from mailhost.graphdata.co.uk ([127.0.0.1]) by localhost (mailhost.graphdata.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S-4iVxvjsCy2 for ; Fri, 8 Sep 2006 14:48:12 +0100 (BST) Received: from gdc083.internal.graphdata.co.uk (gdc083.internal.graphdata.co.uk [192.168.0.86]) by mailhost.graphdata.co.uk (Postfix) with ESMTP id 6A1C4114420 for ; Fri, 8 Sep 2006 14:42:08 +0100 (BST) Received: by gdc083.internal.graphdata.co.uk (Postfix, from userid 4000) id 7E96D1D011; Fri, 8 Sep 2006 14:41:27 +0100 (BST) Message-Id: <20060908134127.7E96D1D011@gdc083.internal.graphdata.co.uk> Date: Fri, 8 Sep 2006 14:41:27 +0100 (BST) From: Dominic Marks To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/103035: Directories in NTFS mounted disc images appear as empty files in Samba export X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dominic Marks List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 13:50:36 -0000 >Number: 103035 >Category: kern >Synopsis: Directories in NTFS mounted disc images appear as empty files in Samba export >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 08 13:50:23 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dominic Marks >Release: FreeBSD 6.1-STABLE i386 >Organization: - >Environment: >Description: We have NTFS disc images we would like to be able to export via Samba. There seems to be a bug in the NTFS code which causes directories to appear as zero byte files to Samba initially. However, once they have been entered via some other method such as with `find /mount/point -type -d` they then correctly show up as directories and can be browsed through Samba. The same process with non-NTFS disc images works as expected first time. >How-To-Repeat: # mdconfig -a -t vnode -f /image/file # mount_ntfs -o ro /dev/md0s1 /mount/point # -- export /mount/point with samba -- try and browse the share, directories will appear as empty files # find /mount/point -type d -- try and browse the share, directories will appear properly >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: