search for: l_pid

Displaying 12 results from an estimated 12 matches for "l_pid".

2009 Jan 28
2
[PATCH] fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
...ce, &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 long)p; +} +#endif + asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) { @@ -2795,6 +2815,15 @@ asmlinkag...
2002 Oct 29
1
strange locks
...for big files (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...
2006 Jun 26
2
[klibc 28/43] mips support for klibc
...#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/archsetjmp.h @@ -0,0...
2006 Apr 25
2
NFS
I've finally managed to run Dovecot without errors in two computers with maildir and indexes stored in NFS. I added a page to wiki about this: http://wiki.dovecot.org/NFS Suggestions how to keep attribute cache enabled but to allow Dovecot to specifically request not to use a cached value (when it's important) would be welcome. -------------- next part -------------- A non-text
2019 Jan 21
0
[klibc:master] fcntl: Fix struct flock for 32-bit architectures
...* type __kernel_loff_t (= long long). We want struct flock + * to have 64-bit offsets, so we define it here. + */ - This happens to work on all 32-bit architectures except MIPS. */ +struct flock { + short l_type; + short l_whence; + __kernel_loff_t l_start; + __kernel_loff_t l_len; + __kernel_pid_t l_pid; + __ARCH_FLOCK64_PAD +}; #ifdef F_GETLK64 # undef F_GETLK
2002 Feb 26
0
Samba lock X Unix fcntl() lock
...t? 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 the file can be locked **/ if(ret==-1) { /** error, close fd and exit **/ if(lock.l_type != F_UNLCK) { /** File locked by some other proccess, show info **/ else {...
2013 Jun 06
1
Reproducable Infiniband panic
...(fp=0xfffffe000b0e9aa0, td=<value optimized out>) at file.h:334 error = 0 #11 0xffffffff805b65ec in closef (fp=0xfffffe000b0e9aa0, td=0xfffffe000b0af000) at /usr/home/julian/src/freebsd/sys/kern/kern_descrip.c:2272 vp = <value optimized out> lf = {l_start = 0, l_len = -2198837126832, l_pid = 4, l_type = 0, l_whence = 0, l_sysid = 185266176} fdtol = (struct filedesc_to_leader *) 0x0 fdp = <value optimized out> fp_object = (struct file *) 0xfffffe000b0e9aa0 #12 0xffffffff805b76cc in fdfree (td=0xfffffe000b0af000) at /usr/home/julian/src/freebsd/sys/kern/kern_descrip.c:1976 fd...
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
We're currently support two paths from VFS to preallocate unwritten extents(from FS_IOC_RESVSP, or fallocate()), likewise, behavior of punching-hole should be treated as the same, this patch tries to teach file_ioctl() to handle FS_IOC_UNRESVSP, underlying filesystem like ocfs2 is wise enough to do the rest of work;-) Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ioctl.c
2011 Mar 31
3
[PATCH 1/3] VFS/ioctl: Add punching-hole support to ioctl().
We're currently support two paths from VFS to preallocate unwritten extents(from FS_IOC_RESVSP, or fallocate()), likewise, behavior of punching-hole should be treated as the same, this patch tries to teach file_ioctl() to handle FS_IOC_UNRESVSP, underlying filesystem like ocfs2 is wise enough to do the rest of work;-) Signed-off-by: Tristan Ye <tristan.ye at oracle.com> --- fs/ioctl.c
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...*/ +}; + +/* + * File segment locking set data type for 64 bit access. + * Also used for all the RESV/FREE interfaces. + */ +typedef struct xfs_flock64 { + __s16 l_type; + __s16 l_whence; + int64_t l_start; + int64_t l_len; /* len == 0 means until end of file */ + int32_t l_sysid; + uint32_t l_pid; + int32_t l_pad[4]; /* reserve area */ +} xfs_flock64_t; + +/* + * Output for XFS_IOC_FSGEOMETRY_V1 + */ +typedef struct xfs_fsop_geom_v1 { + uint32_t blocksize; /* filesystem (data) block size */ + uint32_t rtextsize; /* realtime extent size */ + uint32_t agblocks; /* fsblocks in an AG...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In particular, the patchset has been reorganized so as not to break git-bisect. Additionally, this updates the patch base to 2.6.17-git12 (d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main difference on the klibc side is removal of obsolete code. This is also available as a git tree at:
2003 Dec 01
0
No subject
...T,0666)) == -1) printf("display: can't create file BWServer2.txt,errno = %d\n",e rrno); lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 4294901760; lock.l_len = 65535; lock.l_pid = getpid(); lock.l_type = F_WRLCK; if (fcntl(f2, F_SETLK64, lock) == -1) printf("display: can't lock file BWServer2.txt,errno = %d\n",err no); if (lseek64(f2,4292901760,65535) == -1) printf("display: ca...