From dominicm@gdc083.internal.graphdata.co.uk  Fri Sep  8 13:48:20 2006
Return-Path: <dominicm@gdc083.internal.graphdata.co.uk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4D0D616A4DA
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>;
	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 <FreeBSD-gnats-submit@freebsd.org>; 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 <dom@goodforbusiness.co.uk>
Reply-To: Dominic Marks <dom@goodforbusiness.co.uk>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Directories in NTFS mounted disc images appear as empty files in Samba export 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         103035
>Category:       kern
>Synopsis:       [ntfs] Directories in NTFS mounted disc images appear as empty files in Samba export
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>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:  Mon May 18 04:27:06 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:26:59 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103035 
>Unformatted:
