home *** CD-ROM | disk | FTP | other *** search
/ ftp.parl.clemson.edu / 2015-02-07.ftp.parl.clemson.edu.tar / ftp.parl.clemson.edu / pub / pvfs2 / orangefs-2.8.3-20110323.tar.gz / orangefs-2.8.3-20110323.tar / orangefs / include / pvfs2-dist-twod-stripe.h < prev    next >
C/C++ Source or Header  |  2007-08-15  |  898b  |  41 lines

  1. /*
  2.  * (C) 2007 University of Chicago.
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6.  
  7. #ifndef __PVFS_DIST_TWOD_STRIPE_H
  8. #define __PVFS_DIST_TWOD_STRIPE_H
  9.  
  10. #include "pvfs2-request.h"
  11. #include "pint-distribution.h"
  12. #include "pint-request.h"
  13. #include "pvfs2-types.h"
  14.  
  15. #define PVFS_DIST_TWOD_STRIPE_NAME "twod_stripe"
  16. #define PVFS_DIST_TWOD_STRIPE_NAME_SIZE 14
  17. #define PVFS_DIST_TWOD_STRIPE_DEFAULT_GROUPS 2
  18. #define PVFS_DIST_TWOD_STRIPE_DEFAULT_STRIP_SIZE 65536
  19. #define PVFS_DIST_TWOD_STRIPE_DEFAULT_FACTOR 256
  20.  
  21. /* 2d stripe distribution parameters */
  22. struct PVFS_twod_stripe_params_s
  23. {
  24.     uint32_t num_groups;
  25.     PVFS_size strip_size;
  26.     uint32_t group_strip_factor; /* Number of strips/server/group */
  27. };
  28. typedef struct PVFS_twod_stripe_params_s PVFS_twod_stripe_params;
  29.  
  30. #endif
  31.  
  32. /*
  33.  * Local variables:
  34.  *  c-indent-level: 4
  35.  *  c-basic-offset: 4
  36.  * End:
  37.  *
  38.  * vim: ts=8 sts=4 sw=4 expandtab
  39.  */
  40.  
  41.