[issue12720] Expose linux extended filesystem attributes

2011-09-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset f325439d7f84 by Benjamin Peterson in branch 'default': only compile xattrs on glibc (closes #12720) http://hg.python.org/cpython/rev/f325439d7f84 -- status: open -> closed ___ Python tracker

[issue12720] Expose linux extended filesystem attributes

2011-09-14 Thread Stefan Krah
Stefan Krah added the comment: The OS X buildbots fail to compile posixmodule.c: gcc -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c: In function ‘try_getxattr’: ./Modules/p

[issue12720] Expose linux extended filesystem attributes

2011-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 33f7044b5682 by Benjamin Peterson in branch 'default': Use xattr functions from sys/xattr.h instead of attr/xattr.h (closes #12720) http://hg.python.org/cpython/rev/33f7044b5682 -- resolution: -> fixed status: open -> closed _

[issue12720] Expose linux extended filesystem attributes

2011-09-13 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: There is an inconsistency in used header and library. attr/xattr.h and libattr.so belong to attr package (http://savannah.nongnu.org/projects/attr). glibc provides sys/xattr.h and libc.so. Both libattr.so and libc.so define getxattr(), setx

[issue12720] Expose linux extended filesystem attributes

2011-08-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4eb0b1819bda by Benjamin Peterson in branch 'default': expose linux extended file system attributes (closes #12720) http://hg.python.org/cpython/rev/4eb0b1819bda -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/re

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: After Antoine's review... -- Added file: http://bugs.python.org/file23057/xattrs.patch ___ Python tracker ___ __

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/8/28 Antoine Pitrou : > > Antoine Pitrou added the comment: > > Is it normal that listxattr() succeeds but getxattr() fails with ENOTSUPP? > os.listxattr("/") > [] os.getxattr("/", "foo") > Traceback (most recent call last): >  File "", line 1

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it normal that listxattr() succeeds but getxattr() fails with ENOTSUPP? >>> os.listxattr("/") [] >>> os.getxattr("/", "foo") Traceback (most recent call last): File "", line 1, in OSError: [Errno 95] Operation not supported This is on 2.6.38.8.

[issue12720] Expose linux extended filesystem attributes

2011-08-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: And here is the next version, taking into account neologix's review. -- Added file: http://bugs.python.org/file23056/xattrs.patch ___ Python tracker ___

[issue12720] Expose linux extended filesystem attributes

2011-08-18 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12720] Expose linux extended filesystem attributes

2011-08-18 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here is a new patch, implementing Antoine's suggestions. -- Added file: http://bugs.python.org/file22937/xattrs.patch ___ Python tracker ___

[issue12720] Expose linux extended filesystem attributes

2011-08-17 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12720] Expose linux extended filesystem attributes

2011-08-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the functions should: - accept both str and bytes for keys and values; when it's an str, encoding it using the FS encoding - return str for attribute names, using the FS encoding - return bytes for attribute values, although returning str might be reaso

[issue12720] Expose linux extended filesystem attributes

2011-08-09 Thread Benjamin Peterson
New submission from Benjamin Peterson : These allow extra metadata to be attached to files. -- components: Extension Modules files: xattrs.patch keywords: patch messages: 141842 nosy: benjamin.peterson priority: normal severity: normal stage: patch review status: open title: Expose linux