Hi we have samba 3.0.14a on FreeBSD 5.4. We tried with different kind of locking and oplocks (both enabled and disabled). If we try to copy from a Windows XP client a file larger than 3g, we get these error: Cannot copy XXX. The specified network name is no longer available. We traced this problem in the logs (log level 10) and we got this error ------------ [2006/09/19 10:29:41, 5] smbd/uid.c:change_to_user(281) change_to_user uid=(3280,3280) gid=(0,952) [2006/09/19 10:29:41, 4] smbd/vfs.c:vfs_ChDir(660) vfs_ChDir to /data/exports/Services/Services [2006/09/19 10:29:41, 10] smbd/nttrans.c:reply_ntcreate_and_X(607) reply_ntcreateX: flags = 0x16, desired_access = 0x20189 file_attributes 0x80, share_access = 0x7, create_disposition = 0x1 create_options = 0x940 root_dir_fid = 0x0 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_create_disposition(341) map_create_disposition: Mapped create_disposition 0x1 to 0x1 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(423) map_share_mode: FILE_SHARE_DELETE requested. open_mode = 0x8000 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(480) map_share_mode: Mapped desired access 0x20189, share access 0x7, file attributes 0x80 to open_mode 0x8040 [2006/09/19 10:29:41, 5] smbd/filename.c:unix_convert(108) unix_convert called on file "s-comp/IFOM/PROVA/Caschetto.tib" [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM/PROVA/CASCHETTO.TIB] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM/PROVA] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP] [2006/09/19 10:29:41, 5] smbd/statcache.c:stat_cache_add(135) stat_cache_add: Added entry (8289d20:size20) S-COMP/IFOM/PROVA/CASCHETTO.TIB -> s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 5] smbd/filename.c:unix_convert(170) conversion finished s-comp/IFOM/PROVA/Caschetto.tib -> s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 3] smbd/dosmode.c:unix_mode(111) unix_mode(s-comp/IFOM/PROVA/Caschetto.tib) returning 0664 [2006/09/19 10:29:41, 5] smbd/files.c:file_new(129) allocated file structure 3875, fnum = 7971 (1 used) [2006/09/19 10:29:41, 10] smbd/open.c:open_file_shared1(1047) open_file_shared: fname = s-comp/IFOM/PROVA/Caschetto.tib, dos_attrs = 80, share_mode = 8040, ofun = 1, mode = 664, oplock request = 3 [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode(283) dos_mode: s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning [2006/09/19 10:29:41, 10] locking/locking.c:get_share_modes(480) get_share_modes: share_mode_entry[0]: pid = 93583, share_mode = 0x11, desired_access = 0x30196, port = 0x0, type= 0x0, file_id = 395, dev = 0x412, inode = 6383100 [2006/09/19 10:29:41, 2] smbd/open.c:check_share_mode(530) Share violation on file (4,1,1,93583,s-comp/IFOM/PROVA/Caschetto.tib,fcbopen = 0, flags = 0) = 0 [2006/09/19 10:29:41, 10] smbd/open.c:fd_open(50) fd_open: name s-comp/IFOM/PROVA/Caschetto.tib, flags = 00 mode = 0664, fd = 26. [2006/09/19 10:29:41, 2] smbd/open.c:open_file(245) vdaelli opened file s-comp/IFOM/PROVA/Caschetto.tib read=Yes write=No (numopen=1) [2006/09/19 10:29:41, 4] smbd/open.c:open_file_shared1(1204) open_file_shared : share_mode deny - calling open_file with flags=0x0 flags2=0x0 mode=0664 returned 1 [2006/09/19 10:29:41, 10] smbd/open.c:defer_open_sharing_error(875) defer_open_sharing_error: time [1158654581.742007] adding deferred open entry for mid 52224, file s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 10] smbd/process.c:push_sharing_violation_open_smb_message(268) push_sharing_violation_open_smb_message: pushing message len 154 mid 52224 timeout time [1158654582.692007] [2006/09/19 10:29:41, 10] smbd/process.c:push_queued_message(125) push_message: pushed message length 154 on queue smb_sharing_violation_queue [2006/09/19 10:29:41, 10] locking/locking.c:add_deferred_open(1183) add_deferred_open: creating entry for file s-comp/IFOM/PROVA/Caschetto.tib. num_deferred_open_entries = 1 ----------- while in this case the function get_share_modes is invoked, and we get error there, if we copy a file smaller the function is not invoked and we don't get any error. In both cases ftruncate is successfullt called and we don't get any error. Thanks for your help Valerio Daelli
On 9/19/06, Valerio daelli <valerio.daelli@gmail.com> wrote:> > Hi > we have samba 3.0.14a on FreeBSD 5.4. > We tried with different kind of locking and oplocks (both enabled and disabled). > If we try to copy from a Windows XP client a file larger than 3g, we get these error: > > Cannot copy XXX. The specified network name is no longer available. > > We traced this problem in the logs (log level 10) and we got this error >...>> Thanks for your help > > > Valerio Daelli >Hi we can replicate the error on samba 3.0.23b with the same configuration. This is our configuration: ---------- [global] interfaces = 85.239.182.14/32 pid directory = /ofb/samba/var guest account = nobody security = user encrypt passwords = yes passdb backend = ldapsam:"ldap://127.0.0.1/" server string = FreeBSD Friend unix charset = UTF-8 display charset = UTF-8 dos charset = 437 use spnego = yes client ntlmv2 auth = no client use spnego = yes ldap admin dn uid=samba,ou=Services,ou=NIS,ou=Accounts,dc=ifom-ieo-campus,dc=it #ldap admin dn = cn=ldapadm,dc=ifom-ieo-campus,dc=it ldap delete dn = no ldap passwd sync = no ldap suffix = dc=ifom-ieo-campus,dc=it ldap machine suffix = ou=Computers ldap user suffix = ou=Accounts ldap group suffix = ou=Groups workgroup = CAMPUS netbios name = milarepa domain logons = yes domain master = yes wins support = yes preferred master = yes strict allocate = yes ;hide files /.snap/.AppleDB/.AppleDouble/.AppleDesktop/_VUC69~7/desktop.ini/:2eDS_Store/:2eVolumeIcon.icns/*.icns/ ;veto files /.snap/_VUC69~7/.DS_Store/.AppleDB/.AppleDouble/.AppleDesktop/lost+found/quota.user/quota.group/ ;veto files = /.snap/lost+found/quota.user/quota.group/ ;delete veto files = yes ;hide unreadable = no ; case sensitive = yes ; default case = lower ; preserve case = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384 #log file = /data/samba/var/log/smbd.log.%m log file = /data/samba/var/log/smbd.log.%m log level = 10 max xmit = 65535 logon path = \\%N\profiles\%U logon drive = H: logon script = users.cmd dfree command = "/usr/local/sbin/get_quota %U" max open files = 8000 [netlogon] path = /usr/samba/netlogon browseable = no read only = yes write list = samba [profiles] path = /usr/exports/Users/Users/%U read only = no browseable = yes ;create mask = 0600 ;directory mask = 0700 csc policy = disable [%U] comment = %U Home Directory browseable = yes read only = no path = /usr/exports/Users/Users/%U create mask = 0600 directory mask = 0700 force create mode = 0600 force directory mode = 0700 ;hide unreadable = no ;locking = yes strict locking = no ;blocking locks = no oplocks = yes level2 oplocks = yes fake oplocks = yes [Temporary] comment = Temporary (for Imaging etc..) path= /usr/exports/Temporary/data browseable = yes read only = no create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;hide unreadable = no ;locking = yes ;strict locking = no ;blocking locks = no oplocks = no fake oplocks = yes level2 oplocks = yes [Groups] comment = Group Shares browseable = yes read only = no path = /usr/exports/Groups/Groups create mask = 0660 directory mask = 0770 force create mode = 0660 force directory mode = 0770 ;hide unreadable = yes locking = yes strict locking = no blocking locks = no oplocks = no level2 oplocks = no [PublicUsers] comment = Campus Groups Public Stuff browseable = yes read only = no path = /usr/exports/Users/PublicUsers create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 ; locking = yes ; strict locking = no ; blocking locks = no ; oplocks = no ; level2 oplocks = no [PublicGroups] comment = Campus Groups Public Stuff browseable = yes read only = no path = /usr/exports/Groups/PublicGroups create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 ; locking = yes ; strict locking = no ; blocking locks = no ; oplocks = no ; level2 oplocks = no [DropboxUsers] comment = Users drop boxes path = "/usr/exports/Users/DropboxUsers" read only = no writeable = yes browseable = yes create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;; locking = yes ;; strict locking = no ;; blocking locks = no ;; oplocks = no ;; level2 oplocks = no [DropboxGroups] comment = Groups drop boxes path = "/usr/exports/Groups/DropboxGroups" read only = no writeable = yes browseable = yes create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;hide unreadable = no ;; locking = yes ;; strict locking = no ;; blocking locks = no ;; oplocks = no [Services] comment = Services path = "/usr/exports/Services/Services" read only = no writeable = yes browseable = yes create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 locking = no strict locking = no blocking locks = no oplocks = yes level2 oplocks = yes This time we get --------- [2006/09/19 14:51:15, 4] smbd/vfs.c:vfs_ChDir(741) vfs_ChDir to /usr/exports/Services/Services [2006/09/19 14:51:15, 10] smbd/nttrans.c:reply_ntcreate_and_X(501) reply_ntcreateX: flags = 0x16, access_mask = 0x20189 file_attributes = 0x80, share_access = 0x7, create_disposition = 0x1 create_options 0x940 root_dir_fid = 0x0 [2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(91) temp in parse_processed_dfs_path: .85.239.182.14/Services/85.239.182.14/Services/s-comp/FILE1. after trimming \'s [2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(101) parse_processed_dfs_path: hostname: 85.239.182.14 [2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(113) parse_processed_dfs_path: servicename: Services [2006/09/19 14:51:15, 10] smbd/msdfs.c:parse_processed_dfs_path(123) parse_processed_dfs_path: rest of the path: 85.239.182.14/Services/s-comp/FILE1 [2006/09/19 14:51:15, 10] smbd/msdfs.c:resolve_dfs_path(337) resolve_dfs_path: Conn path = /usr/exports/Services/Services req_path = 85.239.182.14/Services/s-comp/FILE1 [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(108) unix_convert called on file "85.239.182.14/Services/s-comp/FILE1" [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP/FILE1] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14] [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(185) unix_convert begin: name = 85.239.182.14/Services/s-comp/FILE1, dirpath = , start = 85.239.182.14/Services/s-comp/FILE1 [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276) is_mangled 85.239.182.14/Services/s-comp/FILE1 ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component 85.239.182.14/Services/s-comp/FILE1 (len 13) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component Services/s-comp/FILE1 (len 8) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component s-comp/FILE1 (len 6) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component FILE1 (len 5) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276) is_mangled 85.239.182.14 ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component 85.239.182.14 (len 13) ? [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(295) Intermediate not found 85.239.182.14 [2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269) is_msdfs_link: 85.239.182.14/Services/s-comp/FILE1 does not exist. [2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269) is_msdfs_link: 85.239.182.14/Services/s-comp does not exist. [2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269) is_msdfs_link: 85.239.182.14/Services does not exist. [2006/09/19 14:51:15, 5] smbd/msdfs.c:is_msdfs_link(269) is_msdfs_link: 85.239.182.14 does not exist. [2006/09/19 14:51:15, 3] smbd/msdfs.c:dfs_redirect(435) dfs_redirect: Not redirecting 85.239.182.14/Services/85.239.182.14/Services/s-comp/FILE1. [2006/09/19 14:51:15, 3] smbd/msdfs.c:dfs_redirect(439) dfs_redirect: Path converted to non-dfs path 85.239.182.14/Services/s-comp/FILE1 [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(108) unix_convert called on file "85.239.182.14/Services/s-comp/FILE1" [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP/FILE1] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES/S-COMP] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14/SERVICES] [2006/09/19 14:51:15, 10] smbd/statcache.c:stat_cache_lookup(215) stat_cache_lookup: lookup failed for name [85.239.182.14] [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(185) unix_convert begin: name = 85.239.182.14/Services/s-comp/FILE1, dirpath = , start = 85.239.182.14/Services/s-comp/FILE1 [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276) is_mangled 85.239.182.14/Services/s-comp/FILE1 ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component 85.239.182.14/Services/s-comp/FILE1 (len 13) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component Services/s-comp/FILE1 (len 8) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component s-comp/FILE1 (len 6) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component FILE1 (len 5) ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled(276) is_mangled 85.239.182.14 ? [2006/09/19 14:51:15, 10] smbd/mangle_hash2.c:is_mangled_component(215) is_mangled_component 85.239.182.14 (len 13) ? [2006/09/19 14:51:15, 5] smbd/filename.c:unix_convert(295) Intermediate not found 85.239.182.14 [2006/09/19 14:51:15, 3] smbd/error.c:error_packet(146) error packet at smbd/nttrans.c(647) cmd=162 (SMBntcreateX) NT_STATUS_OBJECT_PATH_NOT_FOUND ------- as you can see the path in parse_processed_dfs_path is not correct since we get twice the ip address and the share name. Is this a microsoft problem or a samba one? Thanks for your help Valerio Daelli