search for: attrnam

Displaying 20 results from an estimated 78 matches for "attrnam".

Did you mean: attrname
2020 Mar 12
0
[PATCH libguestfs 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...IZE_MAX) { /* The next call to getxattr will fail anyway, so ... */ - reply_with_error ("extended attribute is too large"); + reply_with_error ("%s: extended attribute is too large", names[i]); goto error; } - r->guestfs_int_xattr_list_val[j].attrname = strdup (&buf[i]); - r->guestfs_int_xattr_list_val[j].attrval.attrval_val = malloc (vlen); - r->guestfs_int_xattr_list_val[j].attrval.attrval_len = vlen; + r->guestfs_int_xattr_list_val[i].attrname = strdup (&buf[i]); + r->guestfs_int_xattr_list_val[i].attrval.attr...
2020 Mar 16
0
[PATCH libguestfs v2 1/3] daemon: xattr: Refactor code which splits attr names from the kernel.
...IZE_MAX) { /* The next call to getxattr will fail anyway, so ... */ - reply_with_error ("extended attribute is too large"); + reply_with_error ("%s: extended attribute is too large", names[i]); goto error; } - r->guestfs_int_xattr_list_val[j].attrname = strdup (&buf[i]); - r->guestfs_int_xattr_list_val[j].attrval.attrval_val = malloc (vlen); - r->guestfs_int_xattr_list_val[j].attrval.attrval_len = vlen; + r->guestfs_int_xattr_list_val[i].attrname = strdup (names[i]); + r->guestfs_int_xattr_list_val[i].attrval.attrval...
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
2014 Jan 13
0
[PATCH] New API: copy-attributes.
...mode: +stat /new | grep uid: +stat /new | grep gid: +lxattrlist / new +copy-attributes /foo /new mode:true +stat /new | grep mode: +EOF + +if [ "$(cat test.out)" != "mode: 33226 +mode: 33226 +----- +uid: 0 +gid: 0 +uid: 10 +gid: 11 +uid: 0 +gid: 0 +uid: 10 +gid: 11 +----- +[0] = { + attrname: + attrval: 2\x00 +} +[1] = { + attrname: user.test + attrval: foo +} +[2] = { + attrname: user.test2 + attrval: secondtest +} +[3] = { + attrname: + attrval: 1\x00 +} +[4] = { + attrname: user.foo + attrval: another +} +[0] = { + attrname: + attrval: 2\x00 +} +[1] = { + attrname: u...
2020 Mar 16
0
[PATCH libguestfs v2 3/3] daemon: xattr: Filter out user.WofCompressedData from xattrs (RHBZ#1811539).
...g compressed files. + * + * (3) This file isn't readable by the Linux kernel. Reading it will + * always return -E2BIG (RHBZ#1811539). So we can't read it even if + * we wanted to. + * + * (4) The Linux kernel itself hides other attributes. + */ +static bool +not_hidden_xattr (const char *attrname) +{ + return STRNEQ (attrname, "user.WofCompressedData"); +} + static int compare_xattrs (const void *vxa1, const void *vxa2) { @@ -132,6 +157,7 @@ getxattrs (const char *path, { ssize_t len, vlen; CLEANUP_FREE char *buf = NULL; + CLEANUP_FREE /* not string list */ char **nam...
2014 Jan 07
0
Re: RFC: copy-attributes command
...3 /foo > +setxattr user.test2 secondtest 10 /foo > +setxattr user.foo another 7 /bar > +lxattrlist / "foo bar" > +copy-attributes /foo /bar xattributes:true > +lxattrlist / "foo bar" > +EOF > + > +if [ "$(cat test.out)" != "[0] = { > + attrname: > + attrval: 2\x00 > +} > +[1] = { > + attrname: user.test > + attrval: foo > +} > +[2] = { > + attrname: user.test2 > + attrval: secondtest > +} > +[3] = { > + attrname: > + attrval: 1\x00 > +} > +[4] = { > + attrname: user.foo > + at...
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
2016 Jan 09
2
vfs_fruit: FreeBSD: attrname is wrong
In case of FreeBSD, the name of the extended attribute is wrong. % lsextattr user ICONandEA.txt ICONandEA.txt netatalk.Metadata com.apple.TextEncoding com.apple.metadata:kMDItemFinderComment "netatalk.Metadata" is incompatible to Netatalk. The first atom "org." is removed. source3/include/smb.h: /* Prefix for DosStreams in the vfs_streams_xattr module */ #define
2020 Feb 09
0
Error in samba-tool dbcheck
...trs=attrs) File "/usr/local/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 259, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/local/samba/lib/python3.6/site-packages/samba/dbchecker.py", line 2435, in check_object elif obj[attrname][0][1] == b'\x00'[0] and obj[attrname][0][2] == b'\x00'[0] and obj[attrname][0][3] == b'\x00'[0] and obj[attrname][0][4] != b'\x00'[0] and obj[attrname][0][5] == b'\x00'[0]: We're running Ubuntu 18.04.3 LTS with samba 11.4.6. but this also happens with...
2018 Sep 16
1
After updating
...sr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 221, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 2230, in check_object error_count += self.check_dn(obj, attrname, syntax_oid) File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 1139, in check_dn self.check_duplicate_links(obj, attrname, syntax_oid, linkID, reverse_link_name) File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 947, in c...
2007 Nov 25
2
accessing the "address" of items in a recursive list
Dear useRs, I am working on a project involving the clustering of a large dataset. I need to extract specific sub-clusters from the parent dendrogram for further analysis. The data is too large for the use of convenient tools such as identify.clust (it selects the specific group of interest on a graph), so alternatively I have saved the plot as a large image file so that it can be printed or
2014 Jan 13
1
Re: Livecd-creator is disabling selinux
...xattr from one file to another. This gives us almost all we need, doesn't require us to run loadpolicy, and should work independent of guest policy. Luckily for us ... it works! $ virt-builder fedora-20 $ guestfish -a fedora-20.img -i ><fs> getxattrs /etc/shadow [0] = { attrname: security.selinux attrval: system_u:object_r:shadow_t:s0\x00 } ><fs> cp /etc/shadow /etc/shadow.copy ><fs> setxattr security.selinux system_u:object_r:shadow_t:s0 29 /etc/shadow.copy ><fs> getxattrs /etc/shadow.copy [0] = { attrname: security.selinux...
2016 Mar 12
4
samba-4.3.6 and talloc-2.1.6
...ages/samba/dbchecker.py", line 138, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 1358, in check_object normalised = self.samdb.dsdb_normalise_attributes(self.samdb_schema, attrname, [val]) File "/usr/lib64/python2.7/site-packages/samba/samdb.py", line 672, in dsdb_normalise_attributes return dsdb._dsdb_normalise_attributes(ldb, ldap_display_name, ldif_elements) What policy of using new version of libraries for stable version of Samba? Can I fix domain p...
2019 Jul 03
2
`samba-tool dbcheck --cross-ncs --fix` fails: governsID already exists as an attributeId or governsId
...mba/dbchecker.py", line 198, in check_database > error_count += self.check_object(object.dn, attrs=attrs) > File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 1708, in check_object > normalised = self.samdb.dsdb_normalise_attributes(self.samdb_schema, attrname, obj[attrname]) > File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 677, in dsdb_normalise_attributes > return dsdb._dsdb_normalise_attributes(ldb, ldap_display_name, ldif_elements) All these object classes were tests we did? years ago, and which have been "...
2018 Nov 08
4
Error in samba-tool dbcheck after updating to samba-4.9.1
...File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 221, in check_database error_count += self.check_object(object.dn, attrs=attrs) File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 2230, in check_object error_count += self.check_dn(obj, attrname, syntax_oid) File "/usr/lib64/python2.7/site-packages/samba/dbchecker.py", line 1324, in check_dn v_dn = dsdb_Dn(self.samdb, v.decode('utf8')) File "/usr/lib64/python2.7/site-packages/samba/common.py", line 101, in __init__ self.dn = ldb.Dn(samdb, self.dnstr...
2003 Jun 25
3
patch draft for extended attributes on linux
...tr names"); + } else { + /* woot */ + *buf_return = buf; + *buf_len_return = buf_len; + return 0; + } + } +} + + +/** + * Read the one named attribute into a new list entry and store a + * pointer to it in *list_ret. + * + * The new item takes ownership wrt free() of the filename and attrname. + **/ +static int xa_load_one(char *filename, + char *attrname, + struct xa_list **list_ret) +{ + char *val; + size_t val_len; + int ret; + struct xa_list *newitem; + + if (verbose > 2) + rprintf(FINF...
2018 Oct 19
1
after samba update to 4.9 GIT issue with samba-tool dbcheck
...a/lib/python2.7/site-packages/samba/dbchecker.py", line 221, in check_database     error_count += self.check_object(object.dn, attrs=attrs)   File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 2230, in check_object     error_count += self.check_dn(obj, attrname, syntax_oid)   File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", line 1139, in check_dn     self.check_duplicate_links(obj, attrname, syntax_oid, linkID, reverse_link_name)   File "/usr/local/samba/lib/python2.7/site-packages/samba/dbchecker.py", li...
2019 Jul 03
0
`samba-tool dbcheck --cross-ncs --fix` fails: governsID already exists as an attributeId or governsId
...y", line 198, in check_database >> error_count += self.check_object(object.dn, attrs=attrs) >> File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 1708, in check_object >> normalised = self.samdb.dsdb_normalise_attributes(self.samdb_schema, attrname, obj[attrname]) >> File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 677, in dsdb_normalise_attributes >> return dsdb._dsdb_normalise_attributes(ldb, ldap_display_name, ldif_elements) > > All these object classes were tests we did? years ago, and whic...
2015 Jan 02
2
(no subject)
Hi, we needed these changes when we had to build a guest image compatible with a starting guest image but not backed by it in any way? We needed some tool to check our progress, comparing original and? rebuilt (from scratch) images, and virt-diff seemed the best option, but? we had to soften the comparison to reduce the noise in the output. I added some options to ignore certain informations when