Displaying 20 results from an estimated 22 matches for "vfs_op".
Did you mean:
vfs_ops
2005 Jan 07
1
Problem in code tracing (reply)
...l as server).
| I traced the exact function calling sequence when a
| "mkdir" command is given at the client side.
| I got stuck at the server side,
|
| source/smbd/vfs.c - vfs_MkDir() -
| SMB_VFS_MKDIR(conn,name,mode) (line no 357)
|
| Could anyone please tell me exactly where is the
| vfs_ops struct initialised, and which function will
| actually get called in the above call, for the
| described case?
Yuor reply :
Look in source/smbd/vfs.c. You get the default
vfs_ops
struct unless overridden in the service definition
(i.e.
vfs_init_custom() ).
----------------------------------&g...
2005 Jan 06
1
smb vfs modules queries
...(client as well as server).
I traced the exact function calling sequence when a
"mkdir" command is given at the client side.
I got stuck at the server side,
source/smbd/vfs.c - vfs_MkDir() -
SMB_VFS_MKDIR(conn,name,mode) (line no 357)
Could anyone please tell me exactly where is the
vfs_ops struct initialised, and which function will
actually get called in the above call, for the
described case?
Also, I set up the log level as 100 in the smb.conf
file, but the DEBUG statements in the code executed at
the client side are not seen in the log files at the
client, as they can be seen at...
2002 Mar 01
1
PATCH - smbd/trans2.c to support writing to Unix named pipes(FIFO)
...,("fstat of fnum %d failed (%s)\n",fsp->fnum,
strerror(errno)));
return(UNIXERROR(ERRDOS,ERRbadfid));
}
if((pos = fsp->conn->vfs_ops.lseek(fsp,fsp->fd,0,SEEK_CUR)) == -1)
return(UNIXERROR(ERRDOS,ERRnoaccess));
delete_pending = fsp->delete_on_close;
----------------------------------------------------------------------
The problem is the line that does the vfs_ops.lseek. The FD is actually a...
2004 Feb 17
0
VFS module programmieren
...d registration
How the Modules handle per connection data
Upgrading to the New VFS Interface
Upgrading from 2.2.* and 3.0aplha modules
Some Notes
Implement TRANSPARENT functions
Implement OPAQUE functions
The Samba (Posix) VFS layer
The general interface
Each VFS operation has a vfs_op_type, a function pointer and a handle
pointer in the struct vfs_ops and tree macros to make it easier to call the
operations. (Take a look at include/vfs.h and include/vfs_macros.h.)
typedef enum _vfs_op_type {
SMB_VFS_OP_NOOP = -1,
...
/* File operations */
SMB_VFS_OP_OPEN,
SMB_VFS_OP_CLO...
2003 Jan 14
0
Oplocks_break FAILURE in 2.2.7? hmm..
...Jan 14 02:48:23 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:48:24 Char0n pam_winbind[10735]: user 'floppy' granted acces
Jan 14 02:48:24 Char0n samba(pam_unix)[10735]: session opened for
user floppy by (uid=0)
Jan 14 02:48:41 Char0n smbd_audit[10735]: VFS_INIT: vfs_ops loaded
Jan 14 02:48:41 Char0n smbd_audit[10735]: connect to service public
by user floppy
Jan 14 02:48:41 Char0n smbd_audit[10735]: opendir .
Jan 14 02:48:41 Char0n smbd_audit[10735]: open Desktop.ini (fd -1)
failed: No such file or directo
ry
Jan 14 02:48:41 Char0n smbd_audit[10735]: opendir ....
2002 Feb 19
1
Typo fix for samba 2.2.3a source/smbd/trans2.c
...if(!S_ISLNK(sbuf.st_mode))
return(UNIXERROR(ERRSRV,ERRbadlink));
#else
- return(UNIXERROR(ERRDOS,ErrNotALink));
+ return(UNIXERROR(ERRDOS,ERRbadlink));
#endif
len =
conn->vfs_ops.readlink(conn,dos_to_unix(fullpathname,False), buffer,
sizeof(pstring)-1); /* read link */
if (len == -1)
--- README.old Sun Apr 15 22:10:54 2001
+++ README Wed Feb 20 10:21:17 2002
@@ -90,7 +90,7 @@
If you want to contribute to the development of the software...
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
..." Error from can_rename: %s rename %s -> %s\n",
+ get_nt_error_msg(error), directory,newname));
return error;
}
@@ -3808,6 +3846,8 @@
return NT_STATUS_OBJECT_NAME_COLLISION;
}
+ DEBUG(3, ("rename_internals: calling vfs_ops.rename\n"));
+
if(conn->vfs_ops.rename(conn,zdirectory, znewname) == 0) {
DEBUG(3,("rename_internals: succeeded doing rename on %s -> %s\n",
directory,newname));
@@ -3819,8 +3859,10 @@
else
error = map_nt_error_from_unix(errno);
- DEBUG(3,("rename_...
2003 May 20
1
smbd - wide links / possible buffer failure??
...efined
buffer (flink) using (I hope) ... the patch was tested .. but no warranty!
--- vfs.c,o Wed Feb 5 17:25:48 2003
+++ vfs.c Mon May 19 16:10:14 2003
@@ -740,6 +740,7 @@
realdir[reallen] = 0;
}
+ bzero( flink, sizeof(flink) );
if (conn->vfs_ops.readlink(conn, name, flink, sizeof(pstring)
-1) != -1) {
DEBUG(3,("reduce_name: file path name %s is a
symlink\nChecking it's path\n", name));
if (*flink == '/') {
@@ -750,6 +751,24 @@
pstrcat(cleanlink, flink);...
2002 Oct 16
1
Possible bug in SAMBA connection close?
...free the connection to the
share, it doesn't actually happen. This is me closing ALL windows to the server:
log.smbd:
jon1 (192.168.200.2) connect to service disc1_pc_test as user breakit (uid=501
, gid=501) (pid 2908)
[2002/10/16 10:13:27, 10] smbd/service.c:make_connection(672)
calling vfs_ops.connect for service disc1_pc_test (options = )
jon1 (192.168.200.2) closed connection to service IPC$
[2002/10/16 10:13:37, 3] smbd/connection.c:yield_connection(48)
Yielding connection to IPC$
jon1 (192.168.200.2) closed connection to service disc1_pc_test
[2002/10/16 10:13:38, 3] smbd/conn...
2001 May 04
0
samba-2.2.0 on Ultrix 4.5?
...vfswrap_ftruncate':
smbd/vfs-wrap.c:494: parse error before `struct'
smbd/vfs-wrap.c:499: `currpos' undeclared (first use in this function)
smbd/vfs-wrap.c:499: (Each undeclared identifier is reported only once
smbd/vfs-wrap.c:499: for each function it appears in.)
smbd/vfs-wrap.c:499: `vfs_ops' undeclared (first use in this function)
smbd/vfs-wrap.c:508: `st' undeclared (first use in this function)
smbd/vfs-wrap.c:534: `c' undeclared (first use in this function)
gmake: *** [smbd/vfs-wrap.o] Error 1
Eeh?
--
Tony Lindstr?m - System Specialist - Tekla Oyj
Koronakatu 1 - 02...
2003 May 20
0
Samba 2.2x bits attributes mapped on Linux file permissions
...clear x bits with root access without let the user
always root. isn't it ?
the function who's setting attributes is in smbd/dosmode.c:unix_mode(...)
An another function called int file_chmod(...) seems to use this manner:
check write perms by CAN_WRITE(conn) then ecome_root();
conn->vfs_ops.fchmod(...); unbecome_root();
Best regards
2003 Aug 13
0
Problem with Redhat 8 and access control of files
...se posix acl, just the default unix permissions.
This is what the log output shows:
[2003/08/12 10:59:16, 2] smbd/open.c:open_file(245)
user opened file RFC/rfc1.txt read=Yes write=No (numopen=2)
[2003/08/12 10:59:16, 2] smbd/posix_acls.c:set_canon_ace_list(1764)
set_canon_ace_list: conn->vfs_ops.sys_acl_set_file type file failed
for file R
FC/rfc1.txt (Operation not supported).
[2003/08/12 10:59:16, 2] smbd/close.c:close_normal_file(213)
And my smb.conf
workgroup = Mydomain
server string = My Server
hosts allow = xx.xx.xx.0/255.255.255.128
printcap name = /etc/printcap...
2004 Jun 23
1
Skel VFS module crashes smbd when we have no ACL support in samba v2.2.9.
Hello!
I have compiled samba v2.2.9 without ACL support and when I test skel vfs
module I have encountered internal errors (SIGSEGV in child processes).
Consider the file source/samba/vfs.c:
struct vfs_ops default_vfs_ops = {
...
/* POSIX ACL operations. */
#if defined(HAVE_NO_ACLS)
NULL,
NULL,
#else
vfswrap_chmod_acl,
vfswrap_fchmod_acl,
#endif
...
};
As we may see if we have not ACL support, chmod_acl and fchmod_acl structure
members became NULL. But skel V...
2004 Oct 06
0
Possible solution to "Access Denied"
...server): Access to 'file.txt' is denied
on \\server\user\my_folder.
After a little fruitless googling for a solution I turned on debug
logging (in SMBD) and found the following messages.
[2004/10/06 10:39:00, 2] smbd/posix_acls.c:set_canon_ace_list(1776)
set_canon_ace_list: conn->vfs_ops.sys_acl_set_file failed for file
dir1/8000B143 (Operation not supported).
[2004/10/06 10:39:00, 3] smbd/posix_acls.c:set_nt_acl(2285)
set_nt_acl: failed to set file acl on file dir1/8000B143 (Operation
not supported).
[2004/10/06 10:39:00, 2] smbd/close.c:close_normal_file(213)
anon closed...
2003 Dec 16
1
W2k client using "synchronize" on a samba configured RH Linux 9 file server ...
... does not work.
I use the W2k functionality "synchronize" on my laptop to have up2date
synchronized copies of my files both at the laptop and the file server.
The file server is a P 200 MHz running RH Linux 9.
When on-line the synchronization of files works, except for my swedish
letters "???". However when off-line working with my files, then
reconnecting to the
2003 Feb 11
1
2.2.7a panic with VFS Audit when writing file (reading is ok)
...39;t see anything in the archives back about 8 months on this. I
turned up debugging to "-d 10". Any clues? Our security folks
*really* want the nifty logging Audit provides.
Thanks.
Here's the audit sent to /var/log/messages:
Feb 11 10:19:25 epsilon smbd_audit[6357]: VFS_INIT: vfs_ops loaded
Feb 11 10:19:25 epsilon smbd_audit[6357]: connect to service sts107 by user cshento8
Feb 11 10:19:47 epsilon smbd_audit[6357]: opendir STS107
Feb 11 10:19:47 epsilon smbd_audit[6357]: open STS107/DEBUG10 (fd 24) for writing
Feb 11 10:19:47 epsilon /kernel: pid 6357 (smbd), uid 1013: exited...
2001 Sep 19
2
--with-acl-support
Dear Andrew Tridgell,
i cant compile the 2.2.1-9 package
--with-acl-support, beacuse
HAVE_SYS_ACL_H has wrong settings somewhere.
i cant fix the bug,
i just comment out the #ifdef HAVE_SYS_ACL_H line
in the source/include/includes.h
for a (i hope) good compilation.
i use acl 1.1.2 from sgi,
and the latest debian woody packages.
Regards.
Imre Szollosi
mailto:szollosi@elme.hu
2002 Nov 23
1
2.2.7 compile error using --with-acl-support on debian
...error before `acl_t'
include/vfs.h:129: parse error before `acl_permset_t'
include/vfs.h:131: parse error before `acl_t'
include/vfs.h:132: parse error before `acl_tag_t'
In file included from include/includes.h:677,
from smbd/server.c:22:
include/smb.h:480: field `vfs_ops' has incomplete type
In file included from include/includes.h:737,
from smbd/server.c:22:
include/proto.h:211: parse error before `the_acl'
include/proto.h:212: parse error before `entry_d'
include/proto.h:213: parse error before `entry_d'
include/proto.h:214: pars...
2003 Jan 28
1
Having a problem ...
...) (pid 24955)
[2003/01/23 17:55:23, 3] smbd/sec_ctx.c:set_sec_ctx(329)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/01/23 17:55:23, 5] smbd/uid.c:change_to_root_user(217)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2003/01/23 17:55:23, 10] smbd/service.c:make_connection(657)
calling vfs_ops.connect for service ipc$ (options = )
[2003/01/23 17:55:23, 3] smbd/reply.c:reply_tcon_and_X(395)
tconX service=ipc$ user=nobody
[2003/01/23 17:55:23, 0] smbd/process.c:smb_dump(637)
created /tmp/SMBtconX.1.resp len 53
[2003/01/23 17:55:23, 0] smbd/process.c:smb_dump(637)
created /tmp/SMBses...
2003 Dec 01
0
No subject
...=================================================
RCS file: /data/cvs/samba/source/locking/posix.c,v
retrieving revision 1.19.4.9
diff -u -r1.19.4.9 posix.c
--- locking/posix.c 26 Aug 2001 19:39:29 -0000 1.19.4.9
+++ locking/posix.c 5 Sep 2001 00:01:30 -0000
@@ -705,10 +705,10 @@
ret = conn->vfs_ops.lock(fsp,fsp->fd,op,offset,count,type);
- if (!ret && (errno == EFBIG)) {
+ if (!ret && ((errno == EFBIG) || (errno == ENOLCK))) {
if( DEBUGLVL( 0 )) {
dbgtext("posix_fcntl_lock: WARNING: lock request at
offset %.0f, length %.0f returned\n", (double)offset,(do...