Displaying 20 results from an estimated 147 matches for "listxattrs".
Did you mean:
listxattr
2014 Jan 10
0
[PATCH] daemon: xattr: move the listxattrs code in an own function
Move in an own function the code that does the (l)listxattrs allocating
the buffer of the right legth, as it will be useful later.
No functional changes, just code motion.
---
daemon/xattr.c | 64 ++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 44 insertions(+), 20 deletions(-)
diff --git a/daemon/xattr.c b/daemon/xattr.c
index...
2014 Jan 10
4
Re: RFC: copy-attributes command
On Tuesday 07 January 2014 21:04:36 Richard W.M. Jones wrote:
> On Tue, Jan 07, 2014 at 04:06:43PM +0100, Pino Toscano wrote:
> > Hi,
> >
> > attached there is a prototype of patch for adding a new
> > copy-attributes command. Such command would allow copy the
> > attributes of a "file" to>
> > another, so for example in guestfish:
> >
2011 Mar 28
0
[PATCH] fuse: Fix getxattr, listxattr calls and add a regression test.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From e48d2ab05b85c02f76da09afe1ff5027a750cea1 Mon Sep 17
2018 Apr 27
2
sysvol files - 'The data area passed to a system call is too small'
Hi,
I have been having problems with GPOs, sysvol, etc. for some time now, and
have found a workaround but I wondered if any of the samba devs were
interested in investigating this.
Basically, the problems manifest themselves as access errors, along the
lines of unable to read files, error messages such as 'The data area passed
to a system call is too small' and so on - which means that
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
2014 Apr 30
2
[PATCH] daemon: xattr: factorize do_getxattr and do_lgetxattr
...const char *xattr, const char *val, int vallen, const char *path, int (*setxattr) (const char *path, const char *name, const void *value, size_t size, int flags));
static int _removexattr (const char *xattr, const char *path, int (*removexattr) (const char *path, const char *name));
static char *_listxattrs (const char *path, ssize_t (*listxattr) (const char *path, char *list, size_t size), ssize_t *size);
+static char *_getxattr (const char *name, const char *path, ssize_t (*getxattr) (const char *path, const char *name, void *value, size_t size), size_t *size_r);
guestfs_int_xattr_list *
do_getx...
2018 Apr 28
4
sysvol files - 'The data area passed to a system call is too small'
On Fri, 27 Apr 2018 22:40:41 +0100
Jonathan Hunter via samba <samba at lists.samba.org> wrote:
> OK - some more detail I have found in the meantime.
>
> I have compiled & ran listxattr, and I can now see a difference
> between a working and a broken file:
>
> me at dc2:~/download $
> sudo ./listxattr /usr/local/samba/var/locks/sysvol/
>
2018 Apr 27
0
sysvol files - 'The data area passed to a system call is too small'
OK - some more detail I have found in the meantime.
I have compiled & ran listxattr, and I can now see a difference between a
working and a broken file:
me at dc2:~/download $ sudo ./listxattr /usr/local/samba/var/locks/sysvol/
mydomain.org/brokenfile.txt
user.DOSATTRIB: 0x20
system.posix_acl_access:
me at dc2:~/download $ sudo ./listxattr /usr/local/samba/var/locks/sysvol/
2023 Jan 25
2
[PATCH 00/12] acl: remove remaining posix acl handlers
Hey everyone,
after we finished the introduction of the new posix acl api last cycle
we still left the generic POSIX ACL xattr handler around for two
reasons. First, because a few filesystems relied on the ->list() method
of the generic POSIX ACL xattr handlers in their ->listxattr() inode
operation. Second, during inode initalization in inode_init_always() the
registered xattr handlers in
2014 Jan 07
0
Re: RFC: copy-attributes command
On Tue, Jan 07, 2014 at 04:06:43PM +0100, Pino Toscano wrote:
> Hi,
>
> attached there is a prototype of patch for adding a new copy-attributes
> command. Such command would allow copy the attributes of a "file" to
> another, so for example in guestfish:
> copy-attributes foo bar permissions:true xattributes:false
> would only copy the permissions of foo to bar,
2018 Dec 12
0
vfs_fruit causes delay in listing directories for Windows clients
Hai,
Can you tell the following that helps.
OS ?
Samba Version? ( pre-builded or source )
Kernel version?
I think you need to wait for 4.9.4 if all patches ive seen on vfs_fruit are getting in.
These might help. Go through bugzilla, you might find more about this here.
Greetz,
Louis
> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org]
2020 Mar 12
0
[PATCH libguestfs 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...atic 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,
/* _listxattrs issues reply_with_perror already. */
goto error;
+ names = split_attr_names (buf, len);
+ if (names == NULL)
+ goto error;
+
r = calloc (1, sizeof (*r));
if (r == NULL) {
reply...
2020 Mar 16
0
[PATCH libguestfs v2 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...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 *path,
/* _listxattrs issues reply_with_perror already. */
goto error;
+ names = split_attr_names (buf, len);
+ if (names == NULL)
+ goto error;
+
r = calloc (1, sizeof (*r));
if (r == NULL) {
reply...
2014 Jan 07
8
RFC: copy-attributes command
Hi,
attached there is a prototype of patch for adding a new copy-attributes
command. Such command would allow copy the attributes of a "file" to
another, so for example in guestfish:
copy-attributes foo bar permissions:true xattributes:false
would only copy the permissions of foo to bar, not copying its extended
attributes too.
Just few notes:
- my first daemon command, so
2018 Dec 12
1
vfs_fruit causes delay in listing directories for Windows clients
On Wed, Dec 12, 2018 at 04:37:43PM +0100, Ralph Böhme via samba wrote:
>On Wed, Dec 12, 2018 at 03:35:00PM +0100, Stephan Roth via samba wrote:
>>My goal with activating vfs_fruit was to speed up directory listings
>>for Mac clients, which works. Can the accompanying slowdown for
>>Windows clients be avoided?
>
>yeah, I guess so, but somebody has to dig through the
2023 Jan 30
1
[PATCH 00/12] acl: remove remaining posix acl handlers
On Mon, Jan 30, 2023 at 10:10:52AM +0100, Christian Brauner wrote:
> However, a few filesystems still rely on the ->list() method of the
> generix POSIX ACL xattr handlers in their ->listxattr() inode operation.
> This is a very limited set of filesystems. For most of them there is no
> dependence on the generic POSIX ACL xattr handler in any way.
>
> In addition, during
2007 Dec 02
3
creation date and OSX
Hi,
I've been using rsync (OSX Tiger now Leopard) to backup my home
folder daily using -a -H -A -X link-dest=dir to make incremental
backups. There was a problem though since many files especially
images, movies etc would be recopied each time instead of creating
hard links. I have been testing the pre5 release and found that it
seems to make hard links correctly for all files. I
2007 Nov 15
1
program I used to test xattrs
Hello,
This is the little basic program I used to test xattrs. First thing I did was
something like this
cd /mnt/btrfs-test
for i in $(seq 0 100000); do touch file_$i; done
and then run
time ./xattr-test /mnt/btrfs 0
time ./xattr-test /mnt/btrfs 1
time ./xattr-test /mnt/btrfs 2
the 0 test creates 100 xattrs for every file in the directory. the 1 test just
does a listxattr for every file in
2006 Dec 14
1
Compilation error on Mac OS X 10.4.7
Dear List:
I am having difficulties 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
2009 May 03
2
[PATCH] ocfs2: Don't print error when listing too many xattrs.
Currently, when listing xattrs, kernel define XATTR_LIST_MAX as 65536
in include/linux/limits.h, so it can't handle too many xattrs.
But with ocfs2 xattr tree, we actually have no limit for the number.
And it will pollute the message with something like this when listing.
(27738,0):ocfs2_iterate_xattr_buckets:3158 ERROR: status = -34
(27738,0):ocfs2_xattr_tree_list_index_block:3264 ERROR: