Subject: problems with directories using samba with NTFS
To: None <current-users@netbsd.org>
From: Dave Tyson <Dave.Tyson@liverpool.ac.uk>
List: current-users
Date: 08/10/2005 14:34:31
I have a large (250Gb) read-only NTFS disk under NetBSD current (cvs'ed
7/8/05) which I am trying to share with samba-3.0.14anb1 from pkgsrc.
The disk works fine viewed on the NetBSD system and all user files/directories
are accessible (i.e index, volume, test)
dtyson(drone)dtyson$ ls -l /ntfs
total 155216
-rwxr-xr-x 1 root wheel 2560 Apr 22 2009 $AttrDef
-rwxr-xr-x 0 root wheel 0 Jul 20 06:38 $BadClus
-rwxr-xr-x 1 root wheel 7631128 Apr 22 2009 $Bitmap
-rwxr-xr-x 0 root wheel 8192 Jul 20 06:38 $Boot
drwxr-xr-x 0 root wheel 0 Jul 20 06:38 $Extend
-rwxr-xr-x 0 root wheel 67108864 Jul 20 06:38 $LogFile
-rwxr-xr-x 0 root wheel 4096 Jul 20 06:38 $MFTMirr
-rwxr-xr-x 0 root wheel 0 Apr 22 2009 $Secure
-rwxr-xr-x 1 root wheel 131072 Apr 22 2009 $UpCase
-rwxr-xr-x 0 root wheel 0 Jul 20 06:38 $Volume
drwxr-xr-x 0 root wheel 0 Jul 26 16:30 RECYCLER
drwxr-xr-x 0 root wheel 0 Jul 20 22:07 System Volume Information
-rwxr-xr-x 1 root wheel 4577996 Aug 10 13:39 index
drwxr-xr-x 0 root wheel 0 Aug 10 13:40 test
drwxr-xr-x 1 root wheel 0 Jul 26 16:30 volume
However when it is viewed as a windows share all the directories apart from .
& .. appear as plain files :-(
Volume Serial Number is 041C-027E
Directory of \\drone\data
09/08/2005 00:30 <DIR> ..
22/04/2009 20:24 2,560 $AttrDef
20/07/2005 06:38 0 $BadClus
22/04/2009 20:24 7,631,128 $Bitmap
20/07/2005 06:38 8,192 $Boot
20/07/2005 06:38 0 $Extend
20/07/2005 06:38 67,108,864 $LogFile
20/07/2005 06:38 4,096 $MFTMirr
22/04/2009 20:24 0 $Secure
22/04/2009 20:24 131,072 $UpCase
20/07/2005 06:38 0 $Volume
22/04/2009 20:24 <DIR> .
10/08/2005 13:39 4,577,996 index
26/07/2005 16:30 0 RECYCLER
20/07/2005 22:07 0 System Volume Information
10/08/2005 13:40 0 test
26/07/2005 16:30 0 volume
15 File(s) 79,463,908 bytes
2 Dir(s) 27,524,517,888 bytes free
Other ffs partitions shared via samba are fine, i.e. directories appear as
directories and can be browsed so this looks like an NTFS fs problem rather
than a duff samba config.
Being mindful of PR 23835 I checked the state of the ntfs source and the fix
for this should be in.
Help!.
Any suggestions as to the best way to tackle debugging this problem?
Dave
/usr/src/sys/fs/ntfs/Makefile:
$NetBSD: Makefile,v 1.1 2002/12/23 17:38:30 jdolecek Exp $
/usr/src/sys/fs/ntfs/TODO:
$NetBSD: TODO,v 1.2 2003/08/02 12:11:56 jdolecek Exp $
/usr/src/sys/fs/ntfs/files.ntfs:
$NetBSD: files.ntfs,v 1.1 2002/12/23 17:38:31 jdolecek Exp $
/usr/src/sys/fs/ntfs/ntfs.h:
$NetBSD: ntfs.h,v 1.8 2004/12/27 18:14:36 jdolecek Exp $
/usr/src/sys/fs/ntfs/ntfs_compr.c:
$NetBSD: ntfs_compr.c,v 1.2 2005/05/29 21:00:29 christos Exp $
$NetBSD: ntfs_compr.c,v 1.2 2005/05/29 21:00:29 christos Exp $
/usr/src/sys/fs/ntfs/ntfs_compr.h:
$NetBSD: ntfs_compr.h,v 1.1 2002/12/23 17:38:32 jdolecek Exp $
/usr/src/sys/fs/ntfs/ntfs_conv.c:
$NetBSD: ntfs_conv.c,v 1.5 2005/02/26 22:58:55 perry Exp $
$NetBSD: ntfs_conv.c,v 1.5 2005/02/26 22:58:55 perry Exp $
/usr/src/sys/fs/ntfs/ntfs_ihash.c:
$NetBSD: ntfs_ihash.c,v 1.2 2003/08/07 16:31:39 agc Exp $
$NetBSD: ntfs_ihash.c,v 1.2 2003/08/07 16:31:39 agc Exp $
/usr/src/sys/fs/ntfs/ntfs_ihash.h:
$NetBSD: ntfs_ihash.h,v 1.1 2002/12/23 17:38:32 jdolecek Exp $
/usr/src/sys/fs/ntfs/ntfs_inode.h:
$NetBSD: ntfs_inode.h,v 1.2 2005/02/26 22:58:55 perry Exp $
/usr/src/sys/fs/ntfs/ntfs_subr.c:
$NetBSD: ntfs_subr.c,v 1.17 2005/07/25 00:48:22 christos Exp $
$NetBSD: ntfs_subr.c,v 1.17 2005/07/25 00:48:22 christos Exp $
/usr/src/sys/fs/ntfs/ntfs_subr.h:
$NetBSD: ntfs_subr.h,v 1.3 2005/07/25 00:48:22 christos Exp $
/usr/src/sys/fs/ntfs/ntfs_vfsops.c:
$NetBSD: ntfs_vfsops.c,v 1.31 2005/06/28 09:30:37 yamt Exp $
$NetBSD: ntfs_vfsops.c,v 1.31 2005/06/28 09:30:37 yamt Exp $
/usr/src/sys/fs/ntfs/ntfs_vfsops.h:
$NetBSD: ntfs_vfsops.h,v 1.4 2004/05/20 06:34:26 atatat Exp $
/usr/src/sys/fs/ntfs/ntfs_vnops.c:
$NetBSD: ntfs_vnops.c,v 1.22 2005/07/25 00:48:22 christos Exp $
$NetBSD: ntfs_vnops.c,v 1.22 2005/07/25 00:48:22 christos Exp $
/usr/src/sys/fs/ntfs/ntfsmount.h:
$NetBSD: ntfsmount.h,v 1.2 2003/10/03 16:34:31 yamt Exp $
--
=====================================================================
Computing Services Dept Phone/Fax: 0151-794-3731/3759
The University of Liverpool Email: dtyson@liv.ac.uk
Chadwick Tower, Peach Street WWW: http://www.liv.ac.uk/~dtyson
Liverpool L69 7ZF Open Source O/S: www.netbsd.org
=====================================================================