excel can't write files

Scott Moomaw scott at bridgewater.edu
Tue Sep 4 11:36:23 GMT 2001


I'm seeing a strange circumstance where users are experiencing save
problems within Excel.  From smbstatus, it appears that the Samba is
generating multiple DENY_NONE RDWR lock entries for the file.  If the user
does multiple saves in a row, they get a message that they cannot access
the file and that a backup copy of the file is being created.  If they
click save again (which in effect works as Save-As at this point), they
can overwrite the file in question.  Same works with Save-as; they can
overwrite the file.  I've only looked at this preliminarily but have a
truss file that's interesting.

152:    stat64("/usr/local/samba/var/locks", 0x080477F4) = 0
152:    open("/usr/local/samba/var/locks/connections.tdb", O_RDONLY) = 3
152:    read(3, " T D B   f i l e\n\0\0\0".., 168)      = 168
152:    fxstat(2, 3, 0x08047700)                        = 0
152:    mmap(0x00000000, 1875968, PROT_READ, MAP_SHARED, 3, 0) = 0xDF7F0000
152:    lseek(3, 40, SEEK_SET)                          = 40
152:    write(3, "\0\0\0\0", 4)                         Err#9 EBADF
152:    ioctl(1, TCGETA, 0x08046B94)                    Err#22 EINVAL
152:    fstat64(1, 0x08046BC0)                          = 0
152:    kill(17112, SIG#0)                              = 0

The connections.tdb is opened, mmap, and lseeked.  The next write fails.
Is this indicative of a problem, or am I looking for something that
doesn't exist?

Scott


------------------------------------------------------------------------
 Scott Moomaw, Network Administrator              Scott at Bridgewater.edu
 Bridgewater College, IT Center
 Bridgewater, VA  22812
 Phone (540) 828 - 8000  x5437              FAX:  (540) 828 - 5493





More information about the samba-technical mailing list