IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 12:45:24 PM (17 years ago)
Author:
eugene
Message:

update from mainline

Location:
branches/eam_branches/20090715
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715

  • branches/eam_branches/20090715/Nebulous/nebclient/src/nebclient.h

    r24289 r25022  
    3838
    3939typedef struct {
    40     char            so_id[256];         ///< storage object ID
    41     char            ext_id[256];        ///< storage object key (name)
    42     char            read_lock[256];     ///< read lock value
     40    long            so_id;              ///< storage object ID
     41    long            ext_id;             ///< storage object key (name)
     42    int             read_lock;          ///< read lock value
    4343    char            write_lock[256];    ///< write lock value
    4444    char            epoch[256];         ///< creation time stamp
    4545    char            mtime[256];         ///< modification time stamp
    46     int             instances;          ///< number of instances
     46    int             available;          ///< number of available instances
     47    int             instances;          ///< total number of instances
    4748} nebObjectStat;
    4849
     
    295296nebObjectStat *nebStat(
    296297    nebServer *server,                  ///< nebServer object
    297     const char *key                     /// storage object key (name)
     298    const char *key                     ///< storage object key (name)
     299);
     300
     301
     302/** Deallocates a stat object
     303 */
     304void nebObjectStatFree(
     305    nebObjectStat *stat                 ///< nebObjectStat object
    298306);
    299307
     
    308316int nebChmod(
    309317    nebServer *server,                  ///< nebServer object
    310     const char *key,                    /// storage object key (name)
    311     mode_t mode                         /// chmod(2) compatible mode (mode_t)
     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
     327int 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
     337int nebThereCanBeOnlyOne(
     338    nebServer *server,                  ///< nebServer object
     339    const char *key,                    ///< storage object key (name)
     340    const char *volume                  ///< leave remain instance on this volume
    312341);
    313342
Note: See TracChangeset for help on using the changeset viewer.