SMB_VFS_OP_OPEN flags

Tomas Simonaitis haden at homelan.lt
Tue Jul 5 03:44:51 GMT 2005


Hi,

while developing VFS module I've encountered that files which are intended to 
be read or written have flags==0 set on
"_open(vfs_handle_struct *handle, connection_struct *conn, const char *fname, 
int flags, mode_t mode)" call (e.g. using smbclient get command or opening 
file with some other client).

However, if file is intended to be created, client opens it with correct flags 
(e.g. 65).
Is this expected behavior and flags==0 should be interpreted as "might both 
read/write file", or I'm just hitting some problem here?



More information about the samba-technical mailing list