Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 50363 invoked from network); 21 Dec 2007 09:22:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Dec 2007 09:22:09 -0000 Received: (qmail 4503 invoked by uid 500); 21 Dec 2007 09:21:57 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 4459 invoked by uid 500); 21 Dec 2007 09:21:57 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 4448 invoked by uid 99); 21 Dec 2007 09:21:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 01:21:57 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.40.195.232] (HELO verdesmares.com) (209.40.195.232) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2007 09:21:45 +0000 Received: from endora.local (unknown [201.21.162.101]) by verdesmares.com (Postfix) with ESMTP id 87FD14E58AF2; Fri, 21 Dec 2007 09:21:33 +0000 (UTC) Message-ID: <476B8599.1090608@apache.org> Date: Fri, 21 Dec 2007 07:21:29 -0200 From: Davi Arnaut User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Michael Clark CC: dev@apr.apache.org Subject: Re: [Patch] Proposed Extended Attributes Implementation References: <4769F773.10503@metaparadigm.com> <476B6413.8070201@metaparadigm.com> <476B770C.9010100@apache.org> <476B7B23.4020904@metaparadigm.com> In-Reply-To: <476B7B23.4020904@metaparadigm.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Michael Clark wrote: > Davi Arnaut wrote: >> Hi Michael, >> >> Michael Clark wrote: >> >>> Michael Clark wrote: >>> >>>> I have been doing some work on implementing extended attributes >>>> support for apr. >>>> >>>> ... >>>> >>>> I'll send some initial patches soon. They still need a little work >>>> and some more test cases. >>>> >>> I've come up with an initial set of patches and a sample client application. >>> >>> >> [..] >> >> >>> It may be a week or so before I get time to get a mod_dav_fs_props >>> implementation that use these interfaces (which i'll post to httpd-dev). >>> Perhaps also a nice patch for mod_autoindex xattr descriptions. >>> >>> Any committers out there who would like to sponsor this? >>> >> From a quick review, it looks good, but I would prefer a apr_file_t >> based implementation. Other than this, please open a entry on bugzilla >> so we can track more easily the patches/progress. >> > > Thanks. I'll open a bugzilla entry for it. > > Okay, so you recommend a change from const char *filepath to apr_file_t > *thefile and fetch the apr_os_file_t (file descriptors) and use the f* > variants. The file descriptor is accessible through apr_file_t::filedes. > I had used filepath as it seemed consistent with the existing > interfaces. i.e. apr_stat, apr_file_perms_set, etc do not have fstat, > fchown equivalents. Hum, we have apr_file_info_get for fstat equivalent. For file permissions, the path make much more sense.. > I am okay with using file descriptors. Would it be good to have both? > e.g. apr_file_xattr_get, apr_file_xattr_get_path You can access the file name in apr_file_t::fname. Only the apr_file_t one will suffice. > Would an apr_file_t based implementation be portable i.e. do you have a > call like Solaris' openat on windows that will open the named stream > relative to a file handle? See above, in cases where there is no file descriptor based api, use the filename in the apr_file_t structure. Regards, Davi Arnaut