Displaying 6 results from an estimated 6 matches for "smb_vwv0".
Did you mean:
  smb_vwv
  
2003 Sep 05
1
Problem with Win95 + DFS clients (fwd)
Hi,
I've found a problem with samba when printing from a client running win95 
+ DFS. The print fails with a segmentation fault. The problem is that 
Win95 does not return the proper file_fsp( smb_vwv0) when doing an IOCTL 
request.This causes the file_fsp call in reply_ioctl (smbd/reply.c)  to 
fail cause a segmentation fault.
I do not understand how samba work, but here is my working patch for this. I 
just copied the fid from the last open_And_X call and write it into inbuf 
if the file_fsp i...
2005 Jan 02
1
sendfile questions...
Why in smbd/reply.c does send_file_readX only use sendfile if write cache
size is 0?
<snip>
if (chain_size ==0 && (CVAL(inbuf,smb_vwv0) == 0xFF) && lp_use_sendfile(
SNUM(conn)) &&
                        (lp_write_cache_size(SNUM(conn)) == 0) ) {
</snip>
While its true send_file_readX works regardless of the state of oplocks
(which is cool!) the smb.conf.5 man page still indicates the file must be
exclusive...
1998 Mar 12
0
Code to check Password Server Group Memberships
...L ret;
  if (password_client < 0) {
    DEBUG(1,("%s not connected\n",pserver));
    return(False);
  }  
  bzero(inbuf,sizeof(inbuf));
  memcpy(outbuf,buf,sizeof(outbuf));
  /* send a session setup command */
  CVAL(outbuf,smb_flg) = 0x8;
  SSVAL(outbuf,smb_flg2,0x1);
  CVAL(outbuf,smb_vwv0) = 0xFF;
  set_message(outbuf,smb_numwords(outbuf),smb_buflen(outbuf),False);
  SCVAL(inbuf,smb_rcls,1);
  send_smb(password_client,outbuf);
  ret = receive_smb(password_client,inbuf,5000);
  if (!ret || CVAL(inbuf,smb_rcls) != 0) {
    DEBUG(1,("password server %s rejected the password\n&...
1999 Dec 28
2
Directory rename problem with smbclient
I am trying to use smbclient to migrate data from OS/2 LanServers to a
filesystem on an AIX 4.3.1 machine.  Everything works great except renaming
directories on the OS/2 LanServer.  I get the error ERRDOS - ERRbadfile
(File not found.) renaming files when I do a "rename <existing_dir_name>
<new_dir_name>" at the prompt, but <existing_dir_name> exists.  I connected
to a
2000 Jun 28
1
[Patch] Shorter patch for smbfs 2.2.16
...ize the cache to restart */
+      retry:
+       smb_init_dircache(cachep);
+       first = 1;
+       entries = 0;
+       entries_seen = 2; /* implicit . and .. */
+
+       while (1)
+       {
+               p = smb_setup_header(server, SMBsearch, 2, 0);
+               WSET(server->packet, smb_vwv0, entries_asked);
+               WSET(server->packet, smb_vwv1, aDIR);
+               *p++ = 4;
+               if (first == 1)
+               {
+                       p = smb_encode_path(server, p, dir, &mask);
+                       *p++ = 5;
+                       WSET(p, 0, 0);
+...
2003 Dec 01
0
No subject
...RRDOS,ERRbadaccess));
    }
#endif /* LARGE_SMB_OFF_T */
  }
  if (is_locked(fsp,conn,(SMB_BIG_UINT)smb_maxcnt,(SMB_BIG_UINT)startpos,
READ_LOCK)) {
    END_PROFILE(SMBreadX);
    return(ERROR(ERRDOS,ERRlock));
  }
  /*  added sendfile support */
 /*+++++++++++++++++++*/
  smb_com2 = CVAL(inbuf,smb_vwv0);
  if (lp_use_sendfile()  && (smb_com2 == 0xFF))
  {
     /* here we use sendfile and we know we don't need to chain */
     CVAL(outbuf, smb_vwv0) = 0xFF;
    SSVAL(outbuf,smb_vwv5,smb_maxcnt);
    SSVAL(outbuf,smb_vwv6,smb_offset(data,outbuf));
    SSVAL(smb_buf(outbuf),-2,smb_maxcnt...