search for: getxattr

Displaying 20 results from an estimated 277 matches for "getxattr".

Did you mean: getattr
2023 Apr 03
2
Inconsistent SYSVOL ACLs
...arameters passed in the ./configure > command, the location is not part of the problem. > > The file system used is XFS. and the strace command logs are in the > attached link > https://drive.google.com/file/d/1R_b6TzeJVmNIpnlkPfRk0CtkpeU4dgcg/view?usp=share_link From this trace: getxattr("/usr/local/samba/var/lib/samba/sysvol/exemple.com", "security.NTACL", NULL, 0) = 320 getxattr("/usr/local/samba/var/lib/samba/sysvol/exemple.com", "security.NTACL", "\4\0\4\0\0\0\2\0\4\0\2\0\1\0\35\26\34P,\223\25\234{\21\3324g-\34\rgD"..., 320) =...
2020 Mar 12
0
[PATCH libguestfs 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...{ + free_stringsbuf (&ret); + return NULL; + } + } + if (end_stringsbuf (&ret) == -1) { + free_stringsbuf (&ret); + return NULL; + } + + return take_stringsbuf (&ret); +} + static int compare_xattrs (const void *vxa1, const void *vxa2) { @@ -106,7 +135,8 @@ getxattrs (const char *path, { ssize_t len, vlen; CLEANUP_FREE char *buf = NULL; - size_t i, j; + CLEANUP_FREE_STRING_LIST char **names = NULL; + size_t i; guestfs_int_xattr_list *r = NULL; buf = _listxattrs (path, listxattr, &len); @@ -114,18 +144,17 @@ getxattrs (const char *path,...
2020 Mar 16
0
[PATCH libguestfs v2 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...trlen (&buf[i]) + 1) { + if (add_string_nodup (&ret, &buf[i]) == -1) + return NULL; + } + if (end_stringsbuf (&ret) == -1) + return NULL; + + return take_stringsbuf (&ret); +} + static int compare_xattrs (const void *vxa1, const void *vxa2) { @@ -106,7 +132,8 @@ getxattrs (const char *path, { ssize_t len, vlen; CLEANUP_FREE char *buf = NULL; - size_t i, j; + CLEANUP_FREE /* not string list */ char **names = NULL; + size_t i; guestfs_int_xattr_list *r = NULL; buf = _listxattrs (path, listxattr, &len); @@ -114,18 +141,17 @@ getxattrs (const char...
2020 Mar 16
6
[PATCH libguestfs v2 0/3] daemon: Fix various commands which break on NTFS-3g compressed files.
v1 here: https://www.redhat.com/archives/libguestfs/2020-March/msg00099.html This one fixes most of the points picked up in review, and does not strdup the strings which should keep down memory usage if that is a concern. Rich.
2020 Mar 12
8
[PATCH libguestfs 0/3] daemon: Fix various commands which break on NTFS-3g compressed files.
https://bugzilla.redhat.com/show_bug.cgi?id=1811539 Commands including virt-diff which read extended attributes will sometimes fail on NTFS filesystems that are using system compressed. The reason is complex, see comment 5 of the bug linked above. This patch filters out the troublesome xattr. For justification, see the comment I added in patch 3. Patch 1 & 2 are refactoring. I was on the
2006 Dec 14
1
Compilation error on Mac OS X 10.4.7
...s compiling samba-3.0.23d on mac os x. Here is the output of 'uname -a': Darwin TI-15 8.7.0 Darwin Kernel Version 8.7.0: Fri May 26 15:20:53 PDT 2006; root:xnu-792.6.76.obj~1/RELEASE_PPC Power Macintosh powerpc The errors I get are: Compiling lib/system.c lib/system.c: In function 'sys_getxattr': lib/system.c:1420: error: too few arguments to function 'getxattr' lib/system.c: In function 'sys_fgetxattr': lib/system.c:1504: error: too few arguments to function 'fgetxattr' lib/system.c: In function 'sys_listxattr': lib/system.c:1705: error: too few argume...
2014 Apr 30
2
[PATCH] daemon: xattr: factorize do_getxattr and do_lgetxattr
Move all the common code to a new _getxattr function, much like done for other xattrs operations. Mostly code motion, no functional changes. --- daemon/xattr.c | 54 +++++++++++------------------------------------------- 1 file changed, 11 insertions(+), 43 deletions(-) diff --git a/daemon/xattr.c b/daemon/xattr.c index abed5ff..d8ad59a 1...
2010 Apr 08
1
Does anybody know how to use the getxattr/setxattr commmands in guestfish?
Hi All, Does anybody know how to use the getxattr/setxattr commands in guestfish? It seems not working for ext2/3 filesystem. I did not find the corresponding commands in bash either. So is it for xfs only? Regards, Pengzhen Cao
2018 Apr 05
4
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
...nEnter domain\test's password:Kinit for test at domain to access test3 failed: Cannot find KDC for requested realmDomain=[domain] OS=[Windows 6.1] Server=[Samba 4.6.2]smb: \>smb: \> lsNT_STATUS_NOT_SUPPORTED listing \*smb: \>* When I added debug prints inside the plugin, I am seeing GETXATTR call fails with error 95. The path is generally "." since samba does vfs_ChDir to the directory before calling get_nt_acl_fn Here are my experiments so far: * If I write the small program to do getxattr on the path where we have mounted NFS share, it works fine. Even if we do chdir to d...
2008 Feb 04
5
WinXP/x64 - MFC CFile objects leak parent directory handles
...nel 2.6.22.13-0.3-default) I can trace this behaviour to the fact that the transactions in the lines 39 through 60 in the following formatted audit log don't appear when the programm is run on an x64 XP, which DO get executed when the program is run on a 32-bit XP (the lines following the "getxattr" of "user.DOSATTRIB" after setting the "kernel_flock" on the already opened file). 1 stat T01/T01.ini 2 getxattr T01/T01.ini:user.DOSATTRIB 3 THE PREVIOUS 2 LINES REPEATED 14 TIMES 4 stat . 5...
2018 Dec 12
4
vfs_fruit causes delay in listing directories for Windows clients
Listing directories with many files (10000+) from a Windows client is nociceably slower when vfs_fruit is enabled on the samba server compared to the same setup without vfs_fruit. On my setup it's roughly 2.5 times slower. To me it looks like this is caused by the getxattr call which is only present 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>...
2004 Jul 24
2
acl handling on delete (performance problem)
...m. Strace of a smbd proccess in the 'preparing to delete' stage looks like this: stat("/mnt/test/test/0220", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 gettimeofday({1090703949, 903367}, NULL) = 0 stat("/mnt/test/test/0220", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 getxattr("/mnt/test/test/0220", "system.posix_acl_access", 0x11fffe940, 132) = -1 ENODATA (No data available) stat("/mnt/test/test/0220", {st_mode=S_IFDIR|0755, st_size=6, ...}) = 0 getxattr("/mnt/test/test/0220", "system.posix_acl_default", 0x11fffe940, 132...
2004 Jul 14
3
hosting library (ie. PVCS) on Samba
Hello. I believe that I've done my due diligence in researching what info. is currently available on this issue. I have been jacking with this for days, & believe that I have tried all possible solutions. I am basically trying to move a [Merant] PVCS installation from an OS/2 file server to a SuSE/Samba file server. This installation consists of 'standard' source archives,
2018 Apr 06
0
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
On Fri, Apr 06, 2018 at 01:44:50PM +0530, Akash Jain wrote: > Hi All > > I found there is one bug in the plugin. The name of the attribute for ACL as > per strace output of nfs4_setfacl is system.nfs4_acl. > The source code has defined it as > #define NFS4ACL_XATTR_NAME      ( "system.nfs4acl" ) > > Note there is missing underscore. > > After this, the
2018 Apr 06
0
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
On Fri, Apr 06, 2018 at 09:22:17PM +0200, Ralph Böhme wrote: > On Fri, Apr 06, 2018 at 10:27:32AM -0700, Jeremy Allison via samba wrote: > > On Fri, Apr 06, 2018 at 01:44:50PM +0530, Akash Jain wrote: > > > Hi All > > > > > > I found there is one bug in the plugin. The name of the attribute for ACL as > > > per strace output of nfs4_setfacl is
2018 Apr 06
0
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
On Fri, Apr 06, 2018 at 09:28:16PM +0200, Ralph Böhme wrote: > On Fri, Apr 06, 2018 at 12:40:31PM -0700, Jeremy Allison wrote: > > On Fri, Apr 06, 2018 at 09:22:17PM +0200, Ralph Böhme wrote: > > > On Fri, Apr 06, 2018 at 10:27:32AM -0700, Jeremy Allison via samba wrote: > > > > On Fri, Apr 06, 2018 at 01:44:50PM +0530, Akash Jain wrote: > > > > > Hi
2018 Apr 10
0
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
Hi Ralph I do not think using xattr_tdb is the right thing to do for my purpose. We do not wish to store/retrieve extended attributes to/from TDB file. *<Ralph>* *Iirc parsing NFSv4 ACLs would require extensions to the module to support the string identifiers and mapping to ids.* *</Ralph>* Can you please elaborate more on which extensions you referred to? What all basic things do
2018 Apr 10
1
Operation Not Supported error for GETXATTR when VFS plugin "nfs4acl_xattr" is used
On Tue, Apr 10, 2018 at 04:28:10PM +0530, Akash Jain wrote: > Can you please elaborate more on which extensions you referred to? > What all basic things do we need to do to use nfs4acl_xattr module with > native NFS4 export mounted locally and shared through samba to get/set NT > ACLs? I guess you have to patch the code, or find someone who does it for you. Iirc currently the module
2011 Mar 28
0
[PATCH] fuse: Fix getxattr, listxattr calls and add a regression test.
...oraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw -------------- next part -------------- >From e48d2ab05b85c02f76da09afe1ff5027a750cea1 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones <rjones at redhat.com> Date: Mon, 28 Mar 2011 14:45:23 +0100 Subject: [PATCH 2/2] fuse: Fix getxattr, listxattr calls and add a regression test. The documentation for the getxattr and listxattr calls is not very clear and as a result we were always returning something different from that which the Linux kernel would usually return. This fixes these calls, at least far enough that both the 'g...
2014 Jan 10
4
Re: RFC: copy-attributes command
...attr.c to avoid spreading the usage of xattr > > API in> > > many places > > > > - copy_xattrs does a bit of code repetition with other stuff in > > xattr.c,> > > but I'm not sure how to avoid it without making the xattr listing > > code (getxattrs) a bit more complex that what it is already > > > > Comments? > > > > > > diff --git a/daemon/daemon.h b/daemon/daemon.h > > index b77d764..6535658 100644 > > --- a/daemon/daemon.h > > +++ b/daemon/daemon.h > > @@ -231,6 +231,9 @@ extern voi...