search for: files_struct

Displaying 20 results from an estimated 24 matches for "files_struct".

Did you mean: file_struct
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...CT_ALLOCATE_PARTIAL=2 +}; + #endif /* _SMB_H */ diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c index 88c7237..8a724ad 100644 --- a/source/modules/vfs_default.c +++ b/source/modules/vfs_default.c @@ -745,10 +745,14 @@ static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, SMB_O SMB_STRUCT_STAT st; char c = 0; SMB_OFF_T currpos; + enum smb_strict_allocate_options sa_options = lp_strict_allocate(SNUM(fsp->conn)); START_PROFILE(syscall_ftruncate); - if (lp_strict_allocate(SNUM(fsp->conn))) { + /* Only use allocation truncate if strict allocate +...
2011 Jan 23
0
Samba files_struct: "bool modified" and "bool update_write_time_on_close"
Hi All, I have been going through the samba 3.5.3 code for quite some time now. I have been examining the various elements in the structure "files_struct", which samba uses. I find the following two elements of particular interest here: bool modified; bool update_write_time_on_close; I see that "modified" is set to true whenever something is written into the file. (in the function: write_file() of fileio.c) I further see that right...
2004 Feb 17
0
VFS module programmieren
...andle pointers for all operations. struct vfs_ops { struct vfs_fn_pointers { ... /* File operations */ int (*open)(struct vfs_handle_struct *handle, struct connection_struct *conn, const char *fname, int flags, mode_t mode); int (*close)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd); ssize_t (*read)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, void *data, size_t n); ssize_t (*write)(struct vfs_handle_struct *handle, struct files_struct *fsp, int fd, const void *data, size_t n); SMB_OFF_T (*lseek)(struct vfs_handle_struct *han...
2005 Sep 21
2
locking.tdb: expand_file ftruncate to 8192 failed (Permission denied)
...I've seen similar reports in google w/o any resolution. Shouldn't expand_file be called as root? Is this a buggy code path only some configs lead to? What configs are these, and how can I avoid them? :) I can offer more detailed debug logs, if needed. Thanks! NTSTATUS set_delete_on_close(files_struct *fsp, BOOL delete_on_close) { DEBUG(10,("set_delete_on_close: %s delete on close flag for " "fnum = %d, file %s\n", delete_on_close ? "Adding" : "Removing", fsp->fnum, fsp->fsp_name ));...
2008 Dec 26
1
Fat32 - 1Gb file copy is failing
...y is working fine with small files. And I could copy the files more than 1Gb when the drive is with NTFS and other file systems I went though the code. In the following samba code piece: samba-3.0.32_old/source/modules/vfs_default.c: 714 static int vfswrap_ftruncate(vfs_handle_struct *handle, files_struct *fsp, int fd, SMB_OFF_T len) 715 { ... 734 735 result = sys_ftruncate(fd, len); 736 if (result == 0) 737 goto done; 738 If comment out line 735/736 (not to extend space for the file to copy on fat), no error will occur during copying. (But we cannot do so ot...
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
...acl_common.c index 2163a75..870e6da 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -625,7 +625,7 @@ static NTSTATUS validate_nt_acl_blob(TALLOC_CTX *mem_ctx, vfs_handle_struct *handle, files_struct *fsp, const struct smb_filename *smb_fname, - DATA_BLOB *blob, + const DATA_BLOB *blob, struct security_descriptor **ppsd,...
2016 Aug 27
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 04:03:49PM -0700, Jeremy Allison wrote: > On Fri, Aug 26, 2016 at 02:46:19PM -0700, Jeremy Allison via samba wrote: > > On Fri, Aug 26, 2016 at 06:44:05PM +0200, Ralph Böhme wrote: > > > > > > Cheerio! > > > -slow > > > > Still reviewing this - but a few things that will need changing: > > > > When adding the
2007 Mar 13
10
Need some explanation on Samba/NFS locks handle
...*/ kernel_flock : /**************************************************************************** Set a kernel flock on a file for NFS interoperability. This requires a patch to Linux. ****************************************************************************/ static void kernel_flock(files_struct *fsp, uint32 share_mode) { #if HAVE_KERNEL_SHARE_MODES int kernel_mode = 0; if (share_mode == FILE_SHARE_WRITE) { kernel_mode = LOCK_MAND|LOCK_WRITE; } else if (share_mode == FILE_SHARE_READ) { kernel_mode = LOCK_MAND|LOCK_READ; } else...
2004 Jun 23
1
Skel VFS module crashes smbd when we have no ACL support in samba v2.2.9.
...el.c 2004-06-23 04:25:17.000000000 +0400 @@ -237,11 +237,15 @@ static BOOL skel_chmod_acl(struct connection_struct *conn, const char *name, mode_t mode) { + if (!default_vfs_ops.chmod_acl) + return 0; return default_vfs_ops.chmod_acl(conn, name, mode); } static BOOL skel_fchmod_acl(struct files_struct *fsp, int fd, mode_t mode) { + if (!default_vfs_ops.fchmod_acl) + return 0; return default_vfs_ops.fchmod_acl(fsp, fd, mode); } ----------------------------------------------------------------------------- Thanks.
2007 Jul 04
2
Samba Problem With Big File Transfer on Windows Client
I use fedora 7 and the last stable version of samba 3.0.25a-3 on an embedded linux system as a server and a windows xp. I 'am using truecrypt and sharing de mount directory with the XP machine via samba. Selniux is disabled. Everything works well such as connection or small files transfers but we have a huge problem when we try to transfer a big file (~100 MB) from the client (Windows) to the
2003 Sep 05
1
Problem with Win95 + DFS clients (fwd)
...***********************************/ +/*iskantha Problem with win95 + DFS*/ +static int hack_fid; + + static void overflow_attack(int len) { if( DEBUGLVL( 0 ) ) { @@ -429,8 +433,26 @@ uint32 ioctl_code = (device << 16) + function; int replysize, outsize; char *p; + int temp = 0; files_struct *fsp = file_fsp(inbuf,smb_vwv0); - START_PROFILE(SMBioctl); + int fid = SVAL(inbuf,smb_vwv0); + + DEBUG ( 4, ( " smbvwv0 before = %i ( 0x%x )\n", fid, fid)); + /* hack for Win95 + dfs . Does not give proper value of fid in request + Value taken from last open_and...
2012 Jul 05
0
acl_tdb failed to convert file acl to posix permisions
...return NT_STATUS_ACCESS_DENIED; } ... acl_set_support is false, and acl_perms is true, and the call to 'convert_canon_ace_to_posix' fails because there are 5 ace entries, and that function immediately fails: static bool convert_canon_ace_to_posix_perms( files_struct *fsp, canon_ace *file_ace_list, mode_t *posix_perms) { int snum = SNUM(fsp->conn); size_t ace_count = count_canon_ace_list(file_ace_list); canon_ace *ace_p; canon_ace *owner_ace = NULL; canon_ace *group_ace = NULL; canon_ace *other_ace = NULL;...
2013 May 13
3
ZFS on Linux + ACLs
Hello, Does anyone test ZFS on Linux and ACLs? I can't setup POSIX ACLs and any extended even using acl_xattr or acl_tdb. Is any way to use ACLs with ZFS on Linux (Samba 3 or 4)? Best regards /Adrian Berlin --
2017 Aug 07
4
FreeBSD samba server returns nt_status_acces_denied when DosStream xattr larger than 64KB
> > If you feel like it, you could write a VFS module that adds better support > for > this on FreeBSD, but what is the use case? > I've noticed in online forums that occasionally home NAS users will for various reasons have streams_xattr enabled and receive 'access denied' errors when trying to write files with large alternate datastreams. These are typically on media
2002 Sep 10
2
Who may delete a file ?
Hi All, I was checking the access rights and a problem (hence a question) appeared: Who can delete a file through Samba ? Suppose we have the following situation: drwxrwxrwx john finance directory -rw-r--r-- jack finance directory/file Under unix everyone can delete the file. Under Samba, the documentation says (due to the Windows sementic) you also need the write access to the
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...om an xattr given a pathname. > - If the hash doesn't match, or doesn't exist - return the underlying > - filesystem sd. > -*******************************************************************/ > - > -static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle, > - files_struct *fsp, > - const struct smb_filename *smb_fname_in, > - uint32_t security_info, > - TALLOC_CTX *mem_ctx, > - struct security_descriptor **ppdesc) > +/** > + * Validate an ACL blob > + * > + * This validates an ACL blob against the underlying filesy...
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
On Fri, Aug 26, 2016 at 06:33:26PM +0200, Ralph Böhme via samba wrote: > On Thu, Aug 25, 2016 at 12:14:00PM -0700, Jeremy Allison wrote: > > On Wed, Aug 24, 2016 at 04:06:42PM +0200, Ralph Böhme via samba wrote: > > > > > > Yeah, as much as I'd like to avoid adding a new option, I guess we > > > have to do something about it, my latest take on this is >
2009 Jan 30
5
ACLs under Samba 3.3.0
Is behavior of ACLs under Samba 3.3.0 (Sernet) completely different from that under version 3.2.7? The release notes only talks about some "fixes". I installed version 3.3.0 and got completely different result with the same filesystem and the exact same samba configuration. The ACLs behaved strangely and appeared very different under Windows ACL editor. Users were now unable to
2003 Dec 01
0
No subject
...ts.samba.org> List-Unsubscribe: <http://lists.samba.org/mailman/listinfo/samba>, <mailto:samba-request@lists.samba.org?subject=unsubscribe> List-Archive: http://lists.samba.org/pipermail/samba/ Hi all, Using RH 6.2 and samba-2.2.0 the functions close and read were passed the struct files_struct which had fsp_name set to the path and file name in question. After upgrading to RH7.1 and samba-2.2.1a this is set to NULL in both functions. Is this a RH problem ? or a samba-2.2.1a problem ? if so, is it feature or a bug ? Thanks all, -- Greg Richards Network Administrator Globetrotters Engi...
2003 Dec 01
0
No subject
...c 3.1.4.10 Warnings for HP-UX 10.20 include (picked just one file, but the message appears on all): Compiling rpc_server/srv_netlog_nt.c cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. cc: "include/vfs.h", line 47: warning 617: Redeclaration of tag "files_struct" ignored. cc: "include/rpc_misc.h", line 319: warning 617: Redeclaration of tag "user_creds" ignored. Compiling smbd/process.c cpp: "values.h", line 27: warning 2001: Redefinition of macro MAXINT. cc: "include/vfs.h", line 47: warning 617: Redeclaration...