Changeset 17678
- Timestamp:
- May 14, 2008, 12:21:43 PM (18 years ago)
- Location:
- trunk/Nebulous-Server
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
lib/Nebulous/Server.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r17650 r17678 2 2 3 3 0.10 4 - document xattr methods 4 5 - change Nebulous::Server::stat() to not die when passed a non-existant key 5 6 - change listxattr_object() to return an arrayref -
trunk/Nebulous-Server/lib/Nebulous/Server.pod
r17077 r17678 22 22 Nebulous::Server->getxattr_object( $key, $name ); 23 23 Nebulous::Server->listxattr_object( $key ); 24 Nebulous::Server->removexattr_object( $key );24 Nebulous::Server->removexattr_object( $key, $name ); 25 25 Nebulous::Server->find_objects( $pattern ); 26 26 Nebulous::Server->find_instances( $key, $volume ); … … 75 75 Accepts 2 parameters, all are mandatory. Returns Boolean true. Throws an 76 76 exception on error. 77 78 =item * setxattr_object( $key, $name, $value, $flags ); 79 80 Accepts 4 parameters, all are mandatory. 81 82 =over 4 83 84 =item C<$key> 85 86 Nebulous key to create the xattr on. 87 88 =item C<$name> 89 90 The xattr's name. 91 92 =item C<$value> 93 94 The xattr's value. 95 96 =item C<$flags> 97 98 The xattr key insertion mode flag. Acceptable value are either C<"create"> or 99 C<"replace">. If the xattr already exists then trying to insert another xattr 100 with the same name in C<"create"> mode will fail. 101 102 =back 103 104 Returns Boolean true on success. Throws an exception on error. 105 106 =item * getxattr_object( $key, $name ); 107 108 Accepts 2 parameters, all are mandatory. 109 110 =over 4 111 112 =item C<$key> 113 114 Nebulous key to fetch the xattr from. 115 116 =item C<$name> 117 118 The xattr's name. 119 120 =back 121 122 Returns the string value of C<$name> on success. Throws an exception on error. 123 124 =item * listxattr_object( $key ); 125 126 Accepts 1 mandatory parameter. 127 128 =over 4 129 130 =item C<$key> 131 132 List all xattrs on this Nebulous key. 133 134 =back 135 136 Returns an C<ARRAYREF> on success. Throws an exception on error. 137 138 =item * removexattr_object( $key, $name ); 139 140 Accepts 2 parameters, all are mandatory. 141 142 =over 4 143 144 =item C<$key> 145 146 Nebulous key to remove the xattr from. 147 148 =item C<$name> 149 150 The xattr's name. 151 152 =back 153 154 Returns Boolean true on success. Throws an exception on error. 77 155 78 156 =item * find_instance( $key, $volume );
Note:
See TracChangeset
for help on using the changeset viewer.
