search for: l_type

Displaying 20 results from an estimated 51 matches for "l_type".

Did you mean: d_type
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
...923 rpc_server 28923 rpc_server 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...
2018 Nov 29
1
CLDAP using CPU alltime on Samba 4.8.4
.../fratar-btrfs/profiles read only = No 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,...
2018 Mar 16
0
performance problem on bridgehead DC
...ver 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_wh...
2018 Mar 16
2
performance problem on bridgehead DC
...er 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...
2017 Nov 17
1
High CPU While Loading RSAT Active Directory Users and Computers
...----- ---------------- 96.49 0.169676 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=165210...
2016 Jul 18
0
how to disable 'pcap cache not loaded' messages?
...last_refresh() fails, and prints these 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]...
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
...esent with vfs_fruit activated and introduces an 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>...
2018 Dec 12
0
vfs_fruit causes delay in listing directories for Windows clients
...introduces an 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=1...
2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...} +#ifdef BROKEN_X86_ALIGNMENT +/* just account for different alignment */ +static unsigned long copy_to_space_resv(unsigned long arg) +{ + struct space_resv_32 __user *p32 = (void __user *)arg; + struct space_resv __user *p = 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_...
2002 Oct 29
1
strange locks
...int fd; int debug = 1; struct flock lck; lck.l_whence = 0; lck.l_start = 0L; lck.l_len = 0L; if (-1 == (fd = open(argv[1], O_RDONLY))) { perror(argv[1]); exit(1); } do { lck.l_type = F_WRLCK; if(-1 == fcntl(fd, F_GETLK, &lck)) { perror("fcntl getlk"); exit(1); }; if (lck.l_type != F_UNLCK) { printf("%d %d %c %8ld %8ld\n&quo...
2008 Oct 23
2
[PATCH 1/1] OCFS2: fix for nfs getting stale inode.
...tic struct ocfs2_lock_res_ops ocfs2_dealloc_lops = { + .ast = ocfs2_dealloc_ast_func, + .bast = ocfs2_dealloc_bast_func, + .unlock_ast = ocfs2_unlock_ast_func, + .unblock = ocfs2_unblock_osb_lock, +}; + static inline int ocfs2_is_inode_lock(struct ocfs2_lock_res *lockres) { return lockres->l_type == OCFS2_LOCK_TYPE_META || @@ -138,10 +148,16 @@ static inline int ocfs2_is_rename_lock(s return lockres->l_type == OCFS2_LOCK_TYPE_RENAME; } +static inline int ocfs2_is_dealloc_lock(struct ocfs2_lock_res *lockres) +{ + return lockres->l_type == OCFS2_LOCK_TYPE_DEALLOC; +} + static inli...
2007 Jan 22
0
checking a locked file
...tdio.h> /* kernel op locks */ #define F_GETLEASE 1025 int main(int argc, char **argv) { struct flock the_lock; int f; int retlck; int smblck; if(argc != 2) { fprintf(stdout, "Usage: %s <file>\n", argv[0]); return 1; } f = open(argv[1], O_RDONLY); the_lock.l_type = F_WRLCK; the_lock.l_whence = SEEK_SET; the_lock.l_start = 0; the_lock.l_len = 0; if(f <= 0) { fprintf(stderr, "Cannot open file: %s\n", argv[1]); return 1; } fcntl(f, F_GETLK, &the_lock); retlck = flock(f, LOCK_EX | LOCK_NB); smblck = fcntl(f, F_GETLEASE, 0); fpr...
2002 Feb 26
0
Samba lock X Unix fcntl() lock
...and rob.xls files. What happen? Samba does not put fcntl lock in rob.dwg and rob.sdw files? Is it a normal behaviour or a bug? What is the diference between DENY_NONE and DENY_WRITE? Is it my program fault? Are there some mistakes? See my C program fragment: lock.l_type=F_WRLCK; /*** Write lock ***/ lock.l_whence=SEEK_SET; /*** File begin ***/ lock.l_start=0; /*** Off set, 0 ***/ lock.l_len=0; /*** Up to the end of file ***/ lock.l_pid = pid; /*** this procces pid ***/ ret=fcntl(fd, F_GETLK, & lock); /** see if t...
2010 Nov 18
2
ocfs2: char is not always signed
...igned int l_ro_holders; unsigned int l_ex_holders; - char l_level; - char l_requested; - char l_blocking; + signed char l_level; + signed char l_requested; + signed char l_blocking; /* Data packed - type enum ocfs2_lock_type */ unsigned char l_type;
2004 Jul 06
3
posix
mainly question for the intel folks, any chance to rerun the ltp testsuites to see how we are doing these days with all the changes ? thanks :) Wim
2018 Feb 20
2
Migration from 3.6.25-0ubuntu0.12.04.10 to 4.x with passdb backend = ldapsam
.../usr/local/samba/lib/libsamba-util.so.0(smb_panic+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, {...
2006 Jun 26
2
[klibc 28/43] mips support for klibc
...1 +#define F_UNLCK 2 + +#define F_EXLCK 4 +#define 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 --...
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