kern/103035: Directories in NTFS mounted disc images appear as
empty files in Samba export
dom at goodforbusiness.co.uk
Fri Sep 8 13:50:36 UTC 2006
>Synopsis: Directories in NTFS mounted disc images appear as empty files in Samba export
>Arrival-Date: Fri Sep 08 13:50:23 GMT 2006
>Originator: Dominic Marks
>Release: FreeBSD 6.1-STABLE i386
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.
# 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
More information about the freebsd-bugs