VFS - Making A File copy
idra at samba.org
Wed Sep 29 16:52:21 GMT 2004
On Mon, 2004-09-27 at 13:36, Chetana wrote:
> I am using samba 3.0.2a with openldap on Solaris 8. I have written a small
> vfs module(opaque) to do the file reading, writing etc to our actual File
> System which is a File Storge Server on another Solaris 8. Almost all
> functions work fine, however when I try to copy a file from directory-A of
> this vfs module to directory-A/directory-B
> of the vfs module I get a (SMBntcreateX)NT_STATUS_SHARING_VIOLATION error. I
> have not implemented the file lock function and use samba in user mode.
Have you tried disabling locking? Samba can handle internally locking if
the system do not support it.
> The file access mode is
> sbuf->st_mode = S_IRWXU | S_IROTH | S_IXOTH
> and the directory access mode is
> sbuf->st_mode = S_IFDIR | S_IRWXU | S_IROTH | S_IXOTH
> Also I get the (SMBlockingX) NT_STATUS_RANGE_NOT_LOCKED error when I try to
> modify any
> word document or any other microsoft related file(PPT,excel etc...).Does
> this mean I need to implement
> file locking? If yes can someone suggest how to implement a minimal dummy
> file locking function?
No need, if you donot support it, just disable it in the share through
proper smb.conf options.
Simo Sorce - idra at samba.org
Samba Team - http://www.samba.org
Italian Site - http://samba.xsec.it
More information about the samba-technical