nfs-ganesha 1.4

fsal_fsinfo.c

Go to the documentation of this file.
00001 /*
00002  * vim:expandtab:shiftwidth=8:tabstop=8:
00003  */
00004 
00014 #ifdef HAVE_CONFIG_H
00015 #include "config.h"
00016 #endif
00017 
00018 #include "fsal.h"
00019 #include "fsal_internal.h"
00020 #include "fsal_convert.h"
00021 
00041 fsal_status_t FSAL_dynamic_fsinfo(fsal_handle_t * filehandle,   /* IN */
00042                                   fsal_op_context_t * p_context,        /* IN */
00043                                   fsal_dynamicfsinfo_t * dynamicinfo    /* OUT */
00044     )
00045 {
00046 
00047   /* sanity checks. */
00048   if(!filehandle || !dynamicinfo || !p_context)
00049     Return(ERR_FSAL_FAULT, 0, INDEX_FSAL_dynamic_fsinfo);
00050 
00051   TakeTokenFSCall();
00052 
00053   /* >> retrieve filesystem usage statistiques << */
00054 
00055   ReleaseTokenFSCall();
00056 
00057   /* >> interpret returned status << */
00058 
00059   Return(ERR_FSAL_NO_ERROR, 0, INDEX_FSAL_dynamic_fsinfo);
00060 
00061 }