xfs
[Top] [All Lists]

Re: Newbie questions

To: Alessandro Bottoni <alessandrobottoni@xxxxxxxxxxxx>
Subject: Re: Newbie questions
From: Nathan Scott <nathans@xxxxxxx>
Date: Wed, 26 Nov 2003 17:09:15 +1100
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200311251749.45683.alessandrobottoni@xxxxxxxxxxxx>
References: <200311251749.45683.alessandrobottoni@xxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.3i
On Tue, Nov 25, 2003 at 05:49:45PM +0000, Alessandro Bottoni wrote:
> Well, I'm a newbie, so here is the usual list of newbie questions :-)
> 
> - Is there any (readable/understandable) example of the use of EA and/or ACL 
> from within a C or C++ client program?

There are examples of C programs in the attr package -
e.g. getfattr(1) and setfattr(1).

> - Is there any other C++ (or even a "simplified C") wrapper for the C/ioctl 
> XFS API beside the one supplied by libferris?

Not AFAIK.

> - Is there any Python/Perl/Ruby binding of the XFS EA/ACL API?

Hmm... dunno.  If you do it, you should just wrap the *xattr
syscalls and then it'll work for any filesystem not only XFS.

> - Is there any programmer's guide or any tutorial?

Just the man pages, AFAIK.

> - "Some functionality specific to the  XFS  filesystem  is  accessible  to
> applications  through  the  Linux ioctl(2) interface." (from "man 5 xfs"). => 
> Any example for mere mortals?

The XFS tools - esp. xfs_io(8) - provide a command line interface
to a number of these system calls.

> - "The http://witme.sourceforge.net/libferris.web/ has tools for accessing 
> Extended Attributes including writing to XFS Extended Attributes." (from XFS 
> FAQ page) => The link to "what are ACL" and other pages are broken... Any 

Seth, still around?

cheers.

-- 
Nathan


<Prev in Thread] Current Thread [Next in Thread>