00001 #ifndef __XRDCnsInventory_H_ 00002 #define __XRDCnsInventory_H_ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d C n s I n v e n t o r y . h h */ 00006 /* */ 00007 /* (c) 2009 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 // $Id: XrdCnsInventory.hh 30949 2009-11-02 16:37:58Z ganis $ 00014 00015 #include <sys/param.h> 00016 00017 #include "XrdCns/XrdCnsLogRec.hh" 00018 #include "XrdCns/XrdCnsLogFile.hh" 00019 #include "XrdCns/XrdCnsXref.hh" 00020 #include "XrdOuc/XrdOucNSWalk.hh" 00021 00022 class XrdCnsInventory 00023 { 00024 public: 00025 00026 int Conduct(const char *dPath); 00027 00028 int Init(XrdCnsLogFile *theLF); 00029 00030 XrdCnsInventory(); 00031 ~XrdCnsInventory() {} 00032 00033 private: 00034 int Xref(XrdOucNSWalk::NSEnt *nP); 00035 00036 XrdCnsLogRec dRec; 00037 XrdCnsLogRec fRec; 00038 XrdCnsLogRec mRec; 00039 XrdCnsLogRec sRec; 00040 XrdCnsXref Mount; 00041 XrdCnsXref Space; 00042 XrdCnsLogFile *lfP; 00043 char lfnBuff[MAXPATHLEN+1]; 00044 const char *cwdP; 00045 char mDflt; 00046 char sDflt; 00047 }; 00048 #endif