oplock errors/copying files between ntfs and samba shares

John Reid john_reid at uow.edu.au
Sun Jan 17 06:21:11 GMT 1999

Hi folks,

having a weird one.  files are being corrupted when copied from a ntfs
partition (either local or a network share).  files copied from a fat
partion or created on the samba share are working fine. (same files
copied to different locations then to samba)

- arcview v3.1 (gis package from esri) can't see it's own files in a
file open
window even though they appear in windows nt explorer - don't know if
they are corrupted or not, however "cmp ntfsfile fatfile" reveals, from
what i understand how cmp works, a single byte diference in the files,
apparently randomly placed in file- don't quote me on that bit though!
there is a significant delay while arcview scans the directory, followed
by the error message below appearing in log.smb 
- dimple data files are null filled towards the end of the file for
larger files.  very small (~200kB) appear to copy ok

setup details are:
-Solaris 2.6 on pentium 166MMX, disk quotas enabled (but plenty of free
-Samba 2.0.0 compiled with disk quota support (also tried compiling
without -see below)
-NTW and NTS v4.0sp3

my smb.conf:

#======================= Global Settings
   debug level = 0

# ===server settings===
   workgroup = GEOSCIENCES
   server string = Geosciences Test Fileserver
   hosts allow = 130.130.120. 130.130.123. 127.

# ===user authentication settings===
  security = domain
  password server = GEOSERVER
  encrypt passwords = yes
  username map = /usr/local/samba/lib/user.map
  guest account = samba
  socket options = TCP_NODELAY

# Browser Control Options:
   wins server =
   name resolve order = wins lmhosts hosts bcast

# machine configuration files
   log file = /usr/local/samba/var/log.%m
   max log size = 50

   message command = sh -c 'xedit %s;rm %s' &

# ===User settings===
# file permissions for shares
	create mask = 600
	directory mask = 700

#============================ Share Definitions
   comment = Home Directories
   browseable = no
   writable = yes
;   oplocks = False

smb.log (these error messages received with diskquota support enabled. 
when i recompiled without this support, no error messages are logged. 
however the behaviour is otherwise unchanged.  if i try running at a
higher debug level, the file copy breaks)

[1999/01/15 16:00:51, 1] smbd/server.c:main(614)
  smbd version 2.0.0 started.
  Copyright Andrew Tridgell 1992-1998
[1999/01/15 16:06:19, 0] smbd/oplock.c:oplock_break(742)
  oplock_break: receive_smb timed out after 30 seconds.
  oplock_break failed for file ntfsd/spotheights.shx (dev = 1980007,
inode = 02253).
[1999/01/15 16:06:19, 0] smbd/oplock.c:oplock_break(812)
  oplock_break: client failure in break - shutting down this smbd.
[1999/01/15 16:11:14, 0] smbd/oplock.c:oplock_break(768)
  oplock_break: no break received from client within 30 seconds.
  oplock_break failed for file ntfsd/cultural.dbf (dev = 1980007, inode
= 02246).
[1999/01/15 16:11:14, 0] smbd/oplock.c:oplock_break(812)
  oplock_break: client failure in break - shutting down this smbd.

anybody got any ideas?

john reid                                e-mail john_reid at uow.edu.au
technical officer                              room G02, building 41
school of geosciences                         phone +61 02 4221 3963
university of wollongong                        fax +61 02 4221 4250
computers can figure out all kinds of problems, except the things in
the world that just don't add up

apply standard disclaimers as desired...

More information about the samba-ntdom mailing list