search for: xattr_delete_test

Displaying 1 result from an estimated 1 matches for "xattr_delete_test".

2007 Nov 15
1
program I used to test xattrs
...buf_size, str_len; /* since we're just testing listing, we'll just do the list */ while (files--) { if (listxattr(filelist[files], NULL, 0) < 0) { printf("error getting xattr list: %d: %s\n", errno, filelist[files]); return buf_size; } } return 0; } static int xattr_delete_test(int files, char **filelist) { char name[80]; int i, ret; while (files--) { for (i = 0; i < 100; i++) { snprintf(name, 80, "security.josef%d\0", i); ret = removexattr(filelist[files], name); if (ret) { printf("error creating xattr: %d\n", errno); return...