Displaying 20 results from an estimated 41 matches for "l_len".
Did you mean:
s_len
2017 Dec 12
1
MIT Kerberos suddenly stopping
Hello,
I'm using samba 4.7.3 to run an AD and I'm currently having issues with
the MIT kerberos because it stops some time after starting (and
apparently working correctly) without logging nothing out of the
ordinary.
My setup has 2 DC: one in an ubuntu 12.04 with version 4.1.9 (which
we're migrating from) and the one I mentioned in CentOS 7 (which will
be the only DC in the future).
2018 Mar 16
3
performance problem on bridgehead DC
...28923
rpc_server 28923
dreplsrv 28930
dc000:~# strace -p 28923 -f
strace: Process 28923 attached
strace: [ Process PID=28923 runs in x32 mode. ]
strace: [ Process PID=28923 runs in 64 bit mode. ]
fcntl(15, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=332, l_len=1}) = 0
fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=368, l_len=1}) = 0
fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=5073496, l_len=1}) = 0
fcntl(15, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=368, l_len=1}) = 0
fcntl(15, F_SETLKW, {l_type=F_RDLCK, l...
2018 Nov 29
1
CLDAP using CPU alltime on Samba 4.8.4
...hide files = /desktop.ini/$RECYCLE.BIN/
vfs objects = btrfs
[users]
path = /mnt/fratar-btrfs/users
read only = No
vfs objects = btrfs
strace -p PID is giving a lot of messages like these:
fcntl(9, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=168,
l_len=40000}) = 0
fcntl(9, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=40168,
l_len=0}) = 0
fcntl(12, F_SETLK, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=168,
l_len=40000}) = 0
fcntl(12, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=40168,
l_len=0}) = 0
fcntl(11, F_SETLK, {l_type=F_RDL...
2018 Mar 16
0
performance problem on bridgehead DC
...3
> dreplsrv 28930
>
> dc000:~# strace -p 28923 -f
> strace: Process 28923 attached
> strace: [ Process PID=28923 runs in x32 mode. ]
> strace: [ Process PID=28923 runs in 64 bit mode. ]
> fcntl(15, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET,
> l_start=332, l_len=1}) = 0
> fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET,
> l_start=368, l_len=1}) = 0
> fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET,
> l_start=5073496, l_len=1}) = 0
> fcntl(15, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET,
> l_start=368, l_len=1}) = 0
>...
2018 Mar 16
2
performance problem on bridgehead DC
...28923
> dreplsrv 28930
>
> dc000:~# strace -p 28923 -f
> strace: Process 28923 attached
> strace: [ Process PID=28923 runs in x32 mode. ]
> strace: [ Process PID=28923 runs in 64 bit mode. ] fcntl(15, F_SETLKW,
> {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=332, l_len=1}) = 0
> fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=368,
> l_len=1}) = 0 fcntl(15, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET,
> l_start=5073496, l_len=1}) = 0 fcntl(15, F_SETLKW, {l_type=F_UNLCK,
> l_whence=SEEK_SET, l_start=368, l_len=1}) = 0 fcntl(15, F_SE...
2017 Nov 17
1
High CPU While Loading RSAT Active Directory Users and Computers
...0 964777 13 fcntl
1.74 0.003061 10 305 epoll_wait
0.74 0.001302 0 10672 read
............
strace -p2053 returns hundreds of thousands of lines like this :
fcntl(12, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=1652100,
l_len=1}) = 0
fcntl(12, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=11368,
l_len=1}) = 0
fcntl(12, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=11368,
l_len=1}) = 0
fcntl(12, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=1652100,
l_len=1}) = 0
fcntl(12, F_SETLKW, {l_type=F_UNLC...
2016 Jul 18
0
how to disable 'pcap cache not loaded' messages?
....
See strace log fragment below.
===
[pid 31896] open("/var/run/samba/printer_list.tdb", O_RDWR|O_CREAT,
0644) = 37
[pid 31896] fcntl(37, F_GETFD) = 0
[pid 31896] fcntl(37, F_SETFD, FD_CLOEXEC) = 0
[pid 31896] fcntl(37, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET,
l_start=0, l_len=1}) = 0
[pid 31896] fcntl(37, F_SETLK, {l_type=F_WRLCK, l_whence=SEEK_SET,
l_start=4, l_len=1}) = 0
[pid 31896] fcntl(37, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET,
l_start=168, l_len=0}) = 0
[pid 31896] lseek(37, 0, SEEK_SET) = 0
[pid 31896] ftruncate(37, 0) = 0
[pid 31896] wr...
2019 Oct 24
3
winbind : suspend nightmare
On Wed, 2019-10-23 at 22:21 -0700, Jeremy Allison wrote:
> On Wed, Oct 23, 2019 at 11:58:33PM +0000, Jon Gerdes wrote:
> > winbind has a concept of offline and online but I don't know what
> > that
> > is, nor how nss works with it. I've tried using smbcontrol to tell
> > winbind it is offline or online but that does not seem to work.
> > Restarting
2018 Dec 12
4
vfs_fruit causes delay in listing directories for Windows clients
...additional delay of ~ 0.00033 s per listed file.
strace -T reveals the following with vfs_fruit activated:
newfstatat(35, "03915", {st_mode=S_IFREG|0660, st_size=1265, ...},
AT_SYMLINK_NOFOLLOW) = 0 <0.000243>
fcntl(20, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=8368,
l_len=1}) = 0 <0.000010>
fcntl(20, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=8368,
l_len=1}) = 0 <0.000009>
stat("stroth/testfiles_10000-50000/10000/03915", {st_mode=S_IFREG|0660,
st_size=1265, ...}) = 0 <0.000312>
getxattr("stroth/testfiles_10000-50000/1000...
2002 Oct 29
1
strange locks
...but not the locks I was expecting), but for little
files it shows nothing:
# ./lock_list /opt/testsambashare/mattest.doc
# ./lock_list /opt/testsambashare/contents.doc
0 22086 W 2147483539 1
0 22086 W 2147483559 1
0 22086 W 2147483599 1
(the output is l_sysid, l_pid, l_start, l_len of struct flock)
(lock_list.c source given below)
The only difference I can see is that the contents.doc is
much bigger:
# ls -l /opt/testsambashare
total 5210
-rwxrw-r-- 1 matt other 1460736 Oct 29 15:24 contents.doc
-rw-r--r-- 1 matt other 1176738 Oct 29 15:23 contents.txt
-r...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
...tl.c | 10 +++++++---
include/linux/falloc.h | 2 ++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 1d9b9fc..234e26f 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -422,7 +422,7 @@ EXPORT_SYMBOL(generic_block_fiemap);
* Only the l_start, l_len and l_whence fields of the 'struct space_resv'
* are used here, rest are ignored.
*/
-int ioctl_preallocate(struct file *filp, void __user *argp)
+int ioctl_preallocate(struct file *filp, void __user *argp, int mode)
{
struct inode *inode = filp->f_path.dentry->d_inode;
struc...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
...tl.c | 10 +++++++---
include/linux/falloc.h | 2 ++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 1d9b9fc..234e26f 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -422,7 +422,7 @@ EXPORT_SYMBOL(generic_block_fiemap);
* Only the l_start, l_len and l_whence fields of the 'struct space_resv'
* are used here, rest are ignored.
*/
-int ioctl_preallocate(struct file *filp, void __user *argp)
+int ioctl_preallocate(struct file *filp, void __user *argp, int mode)
{
struct inode *inode = filp->f_path.dentry->d_inode;
struc...
2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...compat_alloc_user_space(sizeof(*p));
+
+ if (copy_in_user(&p->l_type, &p32->l_type, sizeof(s16)) ||
+ copy_in_user(&p->l_whence, &p32->l_whence, sizeof(s16)) ||
+ copy_in_user(&p->l_start, &p32->l_start, sizeof(s64)) ||
+ copy_in_user(&p->l_len, &p32->l_len, sizeof(s64)) ||
+ copy_in_user(&p->l_sysid, &p32->l_sysid, sizeof(s32)) ||
+ copy_in_user(&p->l_pid, &p32->l_pid, sizeof(u32)) ||
+ copy_in_user(&p->l_pad, &p32->l_pad, 4*sizeof(u32)))
+ return -EFAULT;
+
+ return (unsigned...
2018 Dec 12
0
vfs_fruit causes delay in listing directories for Windows clients
...listed file.
>
> strace -T reveals the following with vfs_fruit activated:
>
> newfstatat(35, "03915", {st_mode=S_IFREG|0660, st_size=1265, ...},
> AT_SYMLINK_NOFOLLOW) = 0 <0.000243>
> fcntl(20, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=8368,
> l_len=1}) = 0 <0.000010>
> fcntl(20, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=8368,
> l_len=1}) = 0 <0.000009>
> stat("stroth/testfiles_10000-50000/10000/03915",
> {st_mode=S_IFREG|0660,
> st_size=1265, ...}) = 0 <0.000312>
> getxattr("st...
2018 Feb 20
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
...+0x28) [0x7f0dc9e1139f]
#3 /usr/local/samba/lib/libsamba-util.so.0(+0x2107d) [0x7f0dc9e1107d]
#4 /usr/local/samba/lib/libsamba-util.so.0(+0x21092) [0x7f0dc9e11092]
```
I also tried stracing smbd. There is some trace log:
```
fcntl(22, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=28064,
l_len=1}) = 0
fcntl(22, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=28064,
l_len=1}) = 0
clock_gettime(CLOCK_BOOTTIME, {84255, 473048526}) = 0
write(1, "smbldap_search_ext: base => [sam"..., 123) = 123
clock_gettime(CLOCK_BOOTTIME, {84255, 473252973}) = 0
rt_sigaction(SIGALRM, {0x7...
2006 Jun 26
2
[klibc 28/43] mips support for klibc
...F_SHLCK 8
+
+#define F_INPROGRESS 16
+
+#define LOCK_SH 1
+#define LOCK_EX 2
+#define LOCK_NB 4
+#define LOCK_UN 8
+
+#define LOCK_MAND 32
+#define LOCK_READ 64
+#define LOCK_WRITE 128
+#define LOCK_RW 192
+
+typedef struct flock {
+ short l_type;
+ short l_whence;
+ loff_t l_start;
+ loff_t l_len;
+ pid_t l_pid;
+} flock_t;
+
+#define F_LINUX_SPECIFIC_BASE 1024
+
+#endif /* _KLIBC_ARCHFCNTL_H */
diff --git a/usr/include/arch/mips/klibc/archsetjmp.h b/usr/include/arch/mips/klibc/archsetjmp.h
new file mode 100644
index 0000000..1fbe83e
--- /dev/null
+++ b/usr/include/arch/mips/klibc/archse...
2005 Mar 14
4
[SMB 3.0.10] File Locking Mechanism Windows <-> Unix
Hello,
Iam facing a problem in locking of files across samba shares. We have samba
3.0.10 running on Solaris 9 with the smb.conf as follows.
# Global parameters
[global]
workgroup = NMUINT
netbios name = NMUINTFS
interfaces = <IP>
bind interfaces only = Yes
security = DOMAIN
password server = XXX.XXX.XXX.XXX
log level = 1
ldap
2018 Feb 20
0
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
.../samba/lib/libsamba-util.so.0(+0x2107d) [0x7f0dc9e1107d]
> #4 /usr/local/samba/lib/libsamba-util.so.0(+0x21092) [0x7f0dc9e11092]
> ```
>
> I also tried stracing smbd. There is some trace log:
>
> ```
> fcntl(22, F_SETLKW, {l_type=F_RDLCK, l_whence=SEEK_SET, l_start=28064,
> l_len=1}) = 0
> fcntl(22, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=28064,
> l_len=1}) = 0
> clock_gettime(CLOCK_BOOTTIME, {84255, 473048526}) = 0
> write(1, "smbldap_search_ext: base => [sam"..., 123) = 123
> clock_gettime(CLOCK_BOOTTIME, {84255, 473252973}) = 0
&...
2004 Jul 20
3
Bug? 1.0.0-test28 NFS locking problems
...a potential bug.
Cheers
Tim Southerwood
**************************************************
--- dovecot-1.0-test28/src/lib/file-lock.c.orig 2004-07-20 14:29:47.000000000 +0100
+++ dovecot-1.0-test28/src/lib/file-lock.c 2004-07-20 14:30:15.000000000 +0100
@@ -38,7 +38,7 @@
fl.l_start = 0;
fl.l_len = 0;
- while (fcntl(fd, timeout != 0 ? F_SETLKW : F_SETLK, &fl) < 0) {
+ while (fcntl(fd, timeout != 0 ? F_SETLK : F_SETLK, &fl) < 0) {
if (timeout == 0 && (errno == EACCES || errno == EAGAIN))
return 0;
--- dovecot-1.0-test28/src/lib-storage/index/mbox/mbox-lock.c....
2018 Feb 19
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
Hi.
I tried to migrate my storage(smb) server to more newer version, but faced
with 'segfaults", after(in progress) client authenticating, when samba
tries to start a new smbd instance (as i understand). I saw client
authentication success, which interrupts in following places:
In case with