excel can't write files
Joe Meslovich
joe at bridgewater.edu
Tue Sep 4 12:01:56 GMT 2001
The system in question is a Sun Solaris 8 x86 box, and the locks directory
is on a local disk. This system is running the 2.2.2-pre code downloaded
from CVS on 8/31. The download was just after your readbraw fix to reply.c
with the starpos test.
Joe
On Tue, 4 Sep 2001, Jeremy Allison wrote:
> 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.
> --------------------------------------------------------
>
>
----------------------------------------------------------------------------
Joe Meslovich joe at bridgewater.edu
Associate Network/Systems Engineer College Box 499
Tel: (540) 828 - 5343
More information about the samba-technical
mailing list