xrootd
XrdOucExport.hh
Go to the documentation of this file.
00001 #ifndef __XRDOUCEXPORT_HH_
00002 #define __XRDOUCEXPORT_HH_
00003 /******************************************************************************/
00004 /*                                                                            */
00005 /*                       X r d O u c E x p o r t . h h                        */
00006 /*                                                                            */
00007 /* (c) 2007 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 /* This file is part of the XRootD software suite.                            */
00013 /*                                                                            */
00014 /* XRootD is free software: you can redistribute it and/or modify it under    */
00015 /* the terms of the GNU Lesser General Public License as published by the     */
00016 /* Free Software Foundation, either version 3 of the License, or (at your     */
00017 /* option) any later version.                                                 */
00018 /*                                                                            */
00019 /* XRootD is distributed in the hope that it will be useful, but WITHOUT      */
00020 /* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or      */
00021 /* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public       */
00022 /* License for more details.                                                  */
00023 /*                                                                            */
00024 /* You should have received a copy of the GNU Lesser General Public License   */
00025 /* along with XRootD in a file called COPYING.LESSER (LGPL license) and file  */
00026 /* COPYING (GPL license).  If not, see <http://www.gnu.org/licenses/>.        */
00027 /*                                                                            */
00028 /* The copyright holder's institutional names and contributor's names may not */
00029 /* be used to endorse or promote products derived from this software without  */
00030 /* specific prior written permission of the institution or contributor.       */
00031 /******************************************************************************/
00032 
00033 #include "XrdSys/XrdSysError.hh"
00034 #include "XrdOuc/XrdOucPList.hh"
00035 #include "XrdOuc/XrdOucStream.hh"
00036   
00037 /******************************************************************************/
00038 /*                           F l a g   V a l u e s                            */
00039 /******************************************************************************/
00040   
00041 //                          0 1 2 3 4 5 6 7
00042 #define XRDEXP_READONLY   0x0000000000000001LL
00043 #define XRDEXP_FORCERO    0x0000000000000002LL
00044 #define XRDEXP_ROW_X      0x0000000300000000LL
00045 #define XRDEXP_NOTRW      0x0000000000000003LL
00046 #define XRDEXP_NODREAD    0x0000000000000004LL
00047 #define XRDEXP_DREAD_X    0x0000000400000000LL
00048 #define XRDEXP_RCREATE    0x0000000000000008LL
00049 #define XRDEXP_RCREATE_X  0x0000000800000000LL
00050 #define XRDEXP_NOCHECK    0x0000000000000010LL
00051 #define XRDEXP_CHECK_X    0x0000001000000000LL
00052 #define XRDEXP_STAGE      0x0000000000000020LL
00053 #define XRDEXP_STAGE_X    0x0000002000000000LL
00054 #define XRDEXP_MIG        0x0000000000000400LL
00055 #define XRDEXP_MIG_X      0x0000040000000000LL
00056 #define XRDEXP_MMAP       0x0000000000000800LL
00057 #define XRDEXP_MMAP_X     0x0000080000000000LL
00058 #define XRDEXP_MLOK       0x0000000000001000LL
00059 #define XRDEXP_MLOK_X     0x0000100000000000LL
00060 #define XRDEXP_MKEEP      0x0000000000002000LL
00061 #define XRDEXP_MKEEP_X    0x0000200000000000LL
00062 #define XRDEXP_PURGE      0x0000000000004000LL
00063 #define XRDEXP_PURGE_X    0x0000400000000000LL
00064 #define XRDEXP_NOXATTR    0x0000000000008000LL
00065 #define XRDEXP_NOXATTR_X  0x0000800000000000LL
00066 #define XRDEXP_INPLACE    0x0000000000010000LL
00067 #define XRDEXP_INPLACE_X  0x0001000000000000LL
00068 //                        0x0002000000020000LL
00069 //                        0x0004000000040000LL
00070 #define XRDEXP_LOCAL      0x0000000000080000LL
00071 #define XRDEXP_LOCAL_X    0x0008000000000000LL
00072 #define XRDEXP_GLBLRO     0x0000000000100000LL
00073 #define XRDEXP_GLBLRO_X   0x0018000000000000LL
00074 #define XRDEXP_STAGEMM    0x0000000000200020LL
00075 //                        0x0020000000000000LL
00076 //                        0x0040000000400000LL
00077 //                        0x0080000000800000LL
00078 #define XRDEXP_AVAILABLE  0xff000000ff000000LL
00079 #define XRDEXP_MASKSHIFT  32
00080 #define XRDEXP_SETTINGS   0x00000000ffffffffLL
00081 
00082 #define XRDEXP_MEMAP      0x0000000000003800LL
00083 #define XRDEXP_REMOTE     0x0000000000000420LL
00084 
00085 #define XRDEXP_ROOTDIR    0x0000000001000000LL
00086 #define XRDEXP_MAKELF     0x0000000002000000LL
00087 
00088 
00089 // The following options are prescreened elsewhere
00090 //
00091 #define XRDEXP_NOLK       0LL
00092 #define XRDEXP_NOLK_X     0LL
00093 
00094 /******************************************************************************/
00095 /*                       C l a s s   X r d E x p o r t                        */
00096 /******************************************************************************/
00097 
00098 class XrdOucPListAnchor;
00099   
00100 class XrdOucExport
00101 {
00102 public:
00103 
00104 static unsigned long long ParseDefs(XrdOucStream &Config, XrdSysError &Eroute,
00105                                     unsigned long long Flags);
00106 
00107 static XrdOucPList       *ParsePath(XrdOucStream &Config, XrdSysError &Eroute,
00108                                     XrdOucPListAnchor &Export,
00109                                     unsigned long long Defopts);
00110 
00111                    XrdOucExport() {}
00112                   ~XrdOucExport() {}
00113 
00114 private:
00115 };
00116 #endif