excel can't write files
Jeremy Allison
jeremy at valinux.com
Tue Sep 4 11:50:30 GMT 2001
Scott Moomaw wrote:
>
> 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?
What OS platform, what version of Samba ? Is the
directory /usr/local/samba/var/locks on a local or
NFS drive ?
Jeremy.
--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------
More information about the samba-technical
mailing list