Displaying 16 results from an estimated 16 matches for "vfs_handle_struct".
2016 Aug 29
1
Issue with acl_xattr:ignore system acls in 4.5rc2
...--git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_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 s...
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
2016 Aug 26
2
Issue with acl_xattr:ignore system acls in 4.5rc2
...ons(+), 29 deletions(-)
>
> diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
> index a287945..1adc875 100644
> --- a/source3/modules/vfs_acl_common.c
> +++ b/source3/modules/vfs_acl_common.c
> @@ -488,7 +488,7 @@ static NTSTATUS get_nt_acl_internal(vfs_handle_struct *handle,
> uint8_t sys_acl_hash[XATTR_SD_HASH_SIZE];
> uint8_t hash_tmp[XATTR_SD_HASH_SIZE];
> uint8_t sys_acl_hash_tmp[XATTR_SD_HASH_SIZE];
> - struct security_descriptor *psd = NULL;
> + struct security_descriptor *psd_blob = NULL;
> struct security_descriptor *pdesc_nex...
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
>
2004 Feb 17
0
VFS module programmieren
..._OP_CLOSE,
SMB_VFS_OP_READ,
SMB_VFS_OP_WRITE,
SMB_VFS_OP_LSEEK,
SMB_VFS_OP_SENDFILE,
...
SMB_VFS_OP_LAST
} vfs_op_type;
This struct contains the function and handle 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...
2005 Feb 01
1
VFS calls after disonnect
...CT ?
> > > Should I count the number of SMB_VFS_CONNECT, and really disconnect
> only
> > > when the same
> > > number of SMB_VFS_DISCONNECT is called ?
> >
> > Yes, use a reference count here.
>
> I tried to store a reference counter in the "vfs_handle_struct::data"
> field, but it does not help:
> when SMB_VFS_CONNECT is called the second time for the same process,
> its "vfs_handle_struct::data" field is NULL., so I have nothing to
> increment.
Can you give me a copy of your source code, plus the exact sequence
of operati...
2008 Dec 26
1
Fat32 - 1Gb file copy is failing
...is not
reachable.
File copy 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. (...
2024 Jun 10
2
4.20: case (in)sensitive is broken
...39;ll add a regression test
for this ?
Thanks,
Jeremy.
diff --git a/source3/modules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c
index c5b5084e108..f3c9f0e359c 100644
--- a/source3/modules/vfs_widelinks.c
+++ b/source3/modules/vfs_widelinks.c
@@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle,
}
lstat_ret = SMB_VFS_NEXT_LSTAT(handle,
full_fname);
- if (lstat_ret != -1 &&
- VALID_STAT(full_fname->st) &&
+ if (lstat_ret == -1) {
+ /* Can't be a DFS link. */
+ int saved_errno = errno;
+ TALLOC_FREE(full_fname);
+ errno = saved_err...
2005 Aug 29
2
samba permissions
There was another tech coordinator that asked the following on our list:
> Hey all, I was wondering if anyone knew of a way to give students
read/write permissions to a certain drive letter without giving them the
ability to delete other (or thier own) files. Currently I have chmod
1770 permissions (read write, but only owner can delete) and one owner
(the teacher) for all the files, but
2018 May 11
4
vfs_full_audit and facility 'auth'...
On Fri, 11 May 2018 09:14:24 +0200
Marco Gaiarin via samba <samba at lists.samba.org> wrote:
> Mandi! Rowland Penny via samba
> In chel di` si favelave...
>
> > You would replace 'FACILITY' with one of the facilities shown in
> > 'man syslog' e.g. full_audit:facility = LOG_AUTH
>
> OK, done. But samba (as stated in previous email) still reply:
2008 Dec 23
0
[jra@samba.org: Patch to improve Samba write speeds on Linux ext3 with 3.2.x]
...TRICT_ALLOCATE_ON=1,
+ STRICT_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 truncat...
2018 May 11
0
vfs_full_audit and facility 'auth'...
...m that using it with vfs_full_audit doesn't work, 'LOCAL5'
> does.
>
> Does anybody know which of the facilities listed in 'man syslog'
> actually work ? or do I have try each of them to find out ?
>
>
Use the source, Like! (c)
static int audit_syslog_facility(vfs_handle_struct *handle)
{
static const struct enum_list enum_log_facilities[] = {
{ LOG_USER, "USER" },
{ LOG_LOCAL0, "LOCAL0" },
{ LOG_LOCAL1, "LOCAL1" },
{ LOG_LOCAL2, "LOCAL2" },
{ LO...
2005 Feb 02
0
Re: VFS calls after disconnect
...ay that this data can be preserved irrespective of the number
of times that an already connected client tries a reconnection?
Any help is highly appreciated!
Thanks,
Chetana
static int connectCnt = 0;
struct example_privates {
char *some_string;
int db_connection;
};
static int example_connect(vfs_handle_struct *handle,
connection_struct *conn, const char *service,
const char* user)
{
struct example_privates *data = NULL;
if ( connectCnt > 0 ) {
DEBUG(0,("connection to client already exists\n"));
SMB_VFS_HANDLE_GET_DATA(handle, data, struct example_privates, -1);
data = (struct exa...
2024 Jun 11
1
4.20: case (in)sensitive is broken
...t looks like you were faster :)
> diff --git a/source3/modules/vfs_widelinks.c b/source3/modules/vfs_widelinks.c
> index c5b5084e108..f3c9f0e359c 100644
> --- a/source3/modules/vfs_widelinks.c
> +++ b/source3/modules/vfs_widelinks.c
> @@ -383,8 +383,14 @@ static int widelinks_openat(vfs_handle_struct *handle,
> ???????? }
> ???????? lstat_ret = SMB_VFS_NEXT_LSTAT(handle,
> ???????????????? full_fname);
> -??????? if (lstat_ret != -1 &&
> -??????????? VALID_STAT(full_fname->st) &&
> +??????? if (lstat_ret == -1) {
> +??????????? /* Can't be a DFS li...
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
2024 Jun 07
1
4.20: case (in)sensitive is broken
07.06.2024 20:52, Jeremy Allison wrote:
> Fair enough. Can you post a minimal smb.conf and directory
> setup that reproduces the problem and how to demo it with smbclient
> command lines please ? I know I'm asking to be spoon-fed but my time for
> Samba these days is quite limited and this would aid immensely
> in creating a properly tested fix.
You're not asking to be