IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17678


Ignore:
Timestamp:
May 14, 2008, 12:21:43 PM (18 years ago)
Author:
jhoblitt
Message:

document xattr methods

Location:
trunk/Nebulous-Server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/Changes

    r17650 r17678  
    22
    330.10
     4    - document xattr methods
    45    - change Nebulous::Server::stat() to not die when passed a non-existant key
    56    - change listxattr_object() to return an arrayref
  • trunk/Nebulous-Server/lib/Nebulous/Server.pod

    r17077 r17678  
    2222    Nebulous::Server->getxattr_object( $key, $name );
    2323    Nebulous::Server->listxattr_object( $key );
    24     Nebulous::Server->removexattr_object( $key );
     24    Nebulous::Server->removexattr_object( $key, $name );
    2525    Nebulous::Server->find_objects( $pattern );
    2626    Nebulous::Server->find_instances( $key, $volume );
     
    7575Accepts 2 parameters, all are mandatory.  Returns Boolean true.   Throws an
    7676exception on error.
     77
     78=item * setxattr_object( $key, $name, $value, $flags );
     79
     80Accepts 4 parameters, all are mandatory. 
     81
     82=over 4
     83
     84=item C<$key>
     85
     86Nebulous key to create the xattr on.
     87
     88=item C<$name>
     89
     90The xattr's name.
     91
     92=item C<$value>
     93
     94The xattr's value.
     95
     96=item C<$flags>
     97
     98The xattr key insertion mode flag.  Acceptable value are either C<"create"> or
     99C<"replace">.  If the xattr already exists then trying to insert another xattr
     100with the same name in C<"create"> mode will fail.
     101
     102=back
     103
     104Returns Boolean true on success.  Throws an exception on error.
     105
     106=item * getxattr_object( $key, $name );
     107
     108Accepts 2 parameters, all are mandatory. 
     109
     110=over 4
     111
     112=item C<$key>
     113
     114Nebulous key to fetch the xattr from.
     115
     116=item C<$name>
     117
     118The xattr's name.
     119
     120=back
     121
     122Returns the string value of C<$name> on success.  Throws an exception on error.
     123
     124=item * listxattr_object( $key );
     125
     126Accepts 1 mandatory parameter.
     127
     128=over 4
     129
     130=item C<$key>
     131
     132List all xattrs on this Nebulous key.
     133
     134=back
     135
     136Returns an C<ARRAYREF> on success.  Throws an exception on error.
     137
     138=item * removexattr_object( $key, $name );
     139
     140Accepts 2 parameters, all are mandatory. 
     141
     142=over 4
     143
     144=item C<$key>
     145
     146Nebulous key to remove the xattr from.
     147
     148=item C<$name>
     149
     150The xattr's name.
     151
     152=back
     153
     154Returns Boolean true on success.  Throws an exception on error.
    77155
    78156=item * find_instance( $key, $volume );
Note: See TracChangeset for help on using the changeset viewer.