[openbeosstorage] Re: Kernel Interface Design

These look OK, but we also need a function to pass attribute queries to 
the kernel & method to get updates as the file system changes
        Keith

Mike Lee wrote:

>Hi all
>As all the rest are taken, I'll do the attr stuff. As these have not yet
>been included with the NewOS VFS, I’ve take a stab in the dark (below), 
>if
>you have any suggestions, let me know.
>Thanks, 
>       Mike
>
>ssize_t read_attr ( int fd, const char *attribute, uint32 type, 
>                   off_t pos, void *buf, size_t count );
>
>ssize_t write_attr ( int fd, const char *attribute, uint32 type, 
>                    off_t pos, const void *buf, size_t count );
>
>int remove_attr ( int fd, const char *attr );
>
>void open_attr_dir ( int fd, void **cookie );
>
>int close_attr_dir ( void *cookie );
>
>void read_attr_dir( void *cookie, dirent **buf );
>
>void rewind_attr_dir( void *cookie );
>
>int stat_attr( int fd, const char *name, struct attr_info *ai );
>



Other related posts: