Changeset 25027 for branches/pap/Nebulous/nebclient/src/nebclient.h
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
Nebulous (modified) (1 prop)
-
Nebulous/nebclient (modified) (1 prop)
-
Nebulous/nebclient/src/nebclient.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/Nebulous
- Property svn:mergeinfo deleted
-
branches/pap/Nebulous/nebclient
- Property svn:mergeinfo deleted
-
branches/pap/Nebulous/nebclient/src/nebclient.h
r23935 r25027 11 11 #ifndef NEBCLIENT_H 12 12 #define NEBCLIENT_H 1 13 14 // #include <sys/stat.h> 13 15 14 16 #ifdef __cplusplus … … 36 38 37 39 typedef struct { 38 char so_id[256];///< storage object ID39 char ext_id[256];///< storage object key (name)40 char read_lock[256];///< read lock value40 long so_id; ///< storage object ID 41 long ext_id; ///< storage object key (name) 42 int read_lock; ///< read lock value 41 43 char write_lock[256]; ///< write lock value 42 44 char epoch[256]; ///< creation time stamp 43 45 char mtime[256]; ///< modification time stamp 44 int instances; ///< number of instances 46 int available; ///< number of available instances 47 int instances; ///< total number of instances 45 48 } nebObjectStat; 46 49 … … 293 296 nebObjectStat *nebStat( 294 297 nebServer *server, ///< nebServer object 295 const char *key /// storage object key (name) 298 const char *key ///< storage object key (name) 299 ); 300 301 302 /** Deallocates a stat object 303 */ 304 void nebObjectStatFree( 305 nebObjectStat *stat ///< nebObjectStat object 306 ); 307 308 /** Change permissions of a storage objects 309 * 310 * This function will change the file permissions of all currently on disk 311 * instances of a storage object. 312 * 313 * @return the new mode or NULL on failure. 314 */ 315 316 int nebChmod( 317 nebServer *server, ///< nebServer object 318 const char *key, ///< storage object key (name) 319 mode_t mode ///< chmod(2) compatible mode (mode_t) 320 ); 321 322 /** Removes all of the inaccessible instances from an object 323 * 324 * @return the number of inaccessible instances removed 325 */ 326 327 int nebPrune( 328 nebServer *server, ///< nebServer object 329 const char *key ///< storage object key (name) 330 ); 331 332 /** Removes all but one instances of an object 333 * 334 * @return the number of available instances removed 335 */ 336 337 int nebThereCanBeOnlyOne( 338 nebServer *server, ///< nebServer object 339 const char *key, ///< storage object key (name) 340 const char *volume ///< leave remain instance on this volume 296 341 ); 297 342
Note:
See TracChangeset
for help on using the changeset viewer.
