apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44127] - File Extended Attributes Support
Date Sat, 05 Jan 2008 14:50:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44127>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=44127


michael@metaparadigm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #21330|0                           |1
        is obsolete|                            |




------- Additional Comments From michael@metaparadigm.com  2008-01-05 06:50 -------
Created an attachment (id=21346)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=21346&action=view)
Revised build infrastrucutre, headers, implementations and tests

* Change interface from apr_file_t *file to const char *pathname
  This was needed to support extended attributes on directories and to
  keep the interface simple.

  The use case that the interface was created for (mod_dav_fs xattr props)
  has a pathname that could point to either a file or a directory.
  With an apr_file_t (and the addition of an apr_dir_t based interface),
  it would require an apr_stat followed by an apr_file_open or apr_dir_open
  and then to conditionally call the file_xattr or dir_xattr interface.

* Added APR_ENOATTR and APR_STATUS_IS_ENOATTR() definitions to apr_errno.h

* Added interface apr_file_xattr_exists() to check for the existence of
  an attribute but without the overhead of fetching and allocating space

* Doxygen documentation updates

* Made solaris implementation disambiguate return in cases where the
  attribute does not exist but the file does. Previously it returned
  ENOENT when it should have returned ENOATTR

* Added test cases for APR_STATUS_IS_ENOATTR() return when getting or
  removing a non-existent attribute

* Changed set replace test case to check for APR_STATUS_IS_ENOATTR()
  when setting a non existant attribute with the APR_XATTR_REPLACE flag

* Changed set create test cases to check for APR_STATUS_IS_EEXISTS()
  when setting an existing attribute with the APR_XATTR_CREATE flag

* Added test cases for APR_STATUS_IS_ENOENT() return when getting, setting
  listing, or removing an attribute from a file that does not exist

* Added test cases for extended attributes on directories

* Changed example apxattr.c to use revised interface


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message