[OpenAFS-devel] php-(a)fs
Jeffrey Hutzelman
jhutz@cmu.edu
Thu, 11 Dec 2008 11:32:33 -0500
--On Thursday, December 11, 2008 02:56:09 AM +0100 Alberto Mancini
<mancini@math.unifi.it> wrote:
> Hi,
> I wrote, mostly to understand the difficulties, a tiny php extension
> wrapping a couple of pioctl calls.
>
> Actually WHEREIS,GETACL,GETVOLSTAT are in the code and I think that
> writing the extension is less problematic than processing 'fs'
> output.
>
> The code (that is really a quick-and-dirty test) can be downloaded
> at the URL:
> http://ununtrio.math.unifi.it/PHP/
>
> where a working test (test.php) is available.
> Most of the code is from fs.c.
>
> Any criticism will be apreciated.
>
> I'd like to ear ideas on the general layout of the extension (OO ?) and
> on the "operations" that may be useful to implement.
I wonder if you wouldn't be better off implementing only a thin wrapper
around pioctl() in C, and doing the operation-specific parts entirely in
PHP.