Samba 3.6.9, FreeBSD 9.1
I was getting this weird error (I had logging turned up to 10):
acl(ACE_GETACLCNT, @GMT-2012.11.06-12.56.12/data): No such file or directory smbd_check_open_rights: Could not get acl on @GMT-2012.11.06-12.56.12/data: NT_STATUS_OBJECT_NAME_NOT_FOUND open_directory: smbd_check_open_rights on file @GMT-2012.11.06-12.56.12/data failed with NT_STATUS_OBJECT_NAME_NOT_FOUND
I was 110% sure the file existed. In fact, it worked just fine on Windows XP and Windows Server 2003. On Windows Vista and Server 2008, it could see the directory but not access it. On Windows 7 and Server 2008 R2, it couldn't even see it!
Searching for "Could not get acl" didn't give a lot of help. One link pointed me in the right direction.
"The solution is very simple - put the shadow_copy2 module first in the list of vfs
modules in smb.conf."
So there you go.
My smb.conf had this in it:
vfs objects = zfsacl, shadow_copy2, streams_xattr
I simply changed it to read this:
vfs objects = shadow_copy2, zfsacl, streams_xattr