tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: extended attributes and lsextattr/extattr_list_file

On Sun, Jun 26, 2011 at 04:48:22AM +0200, Emmanuel Dreyfus wrote:
 > I implemented extattr_list_file for UFS1. The thing works fine, but I
 > notice the data expected by lsextattr(8) is not in the same shape as
 > described in NetBSD documentation and in FUSE and Linux.

I'll throw a spanner in the works and suggest the kernel-level
interface for listing extended attributes should be the same as the
interface for listing directories.

I'm not sure if this is really a good idea or not, but it would allow
sharing code in some places and it reduces the chances that something
left out of the interface will be wanted next year.

(The application-level interface provided by libc can be whatever.)

David A. Holland

Home | Main Index | Thread Index | Old Index