[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-fs
Subject:    ntfs broken when share through samba3
From:       <absorbb () gmail ! com>
Date:       2006-09-29 17:59:17
Message-ID: 200609292159.18282.absorbb () gmail ! com
[Download RAW message or body]

This old already reported bug.
But situation have'nt changed.

There is very simple patch that fix this bug:

--- usr/src/sys/fs/ntfs/ntfs_vnops.c	Mon Mar 13 00:50:01 2006
+++ home/voxel/stuff/ntfs_vnops.c	Thu Aug 31 09:22:08 2006
@@ -187,7 +187,8 @@
 	vap->va_fsid = dev2udev(ip->i_dev);
 	vap->va_fileid = ip->i_number;
 	vap->va_mode = ip->i_mp->ntm_mode;
-	vap->va_nlink = ip->i_nlink;
+	vap->va_nlink = (ip->i_nlink ? ip->i_nlink : 1);
+	//vap->va_nlink = ip->i_nlink;
 	vap->va_uid = ip->i_mp->ntm_uid;
 	vap->va_gid = ip->i_mp->ntm_gid;
 	vap->va_rdev = 0;				/* XXX UNODEV ? */

but it seems to be not beaty solution

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic