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 / src / server / noop.sm < prev    next >
Text File  |  2008-02-11  |  1KB  |  69 lines

  1. /* 
  2.  * (C) 2001 Clemson University and The University of Chicago 
  3.  *
  4.  * See COPYING in top-level directory.
  5.  */
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <sys/types.h>
  9. #include <sys/stat.h>
  10. #include <unistd.h>
  11. #include <fcntl.h>
  12.  
  13. #include "pvfs2-server.h"
  14.  
  15. %%
  16.  
  17. machine pvfs2_noop_sm
  18. {
  19.     state prelude
  20.     {
  21.         jump pvfs2_prelude_sm;
  22.         default => final_response;
  23.     }
  24.  
  25.     state final_response
  26.     {
  27.         jump pvfs2_final_response_sm;
  28.         default => cleanup;
  29.     }
  30.  
  31.     state cleanup
  32.     {
  33.         run noop_cleanup;
  34.         default => terminate;
  35.     }
  36. }
  37.  
  38. %%
  39.  
  40. /* noop_cleanup()
  41.  *
  42.  * cleans up any resources consumed by this state machine and ends
  43.  * execution of the machine
  44.  */
  45. static PINT_sm_action noop_cleanup(
  46.         struct PINT_smcb *smcb, job_status_s *js_p)
  47. {
  48.     return(server_state_machine_complete(smcb));
  49. }
  50.  
  51. struct PINT_server_req_params pvfs2_noop_params =
  52. {
  53.     .string_name = "noop",
  54.     .perm = PINT_SERVER_CHECK_NONE,
  55.     .access_type = PINT_server_req_readonly,
  56.     .state_machine = &pvfs2_noop_sm
  57. };
  58.  
  59. /*
  60.  * Local variables:
  61.  *  mode: c
  62.  *  c-indent-level: 4
  63.  *  c-basic-offset: 4
  64.  * End:
  65.  *
  66.  * vim: ft=c ts=8 sts=4 sw=4 expandtab
  67.  */
  68.  
  69.