OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/WINNT/afsd/smb_iocons.h
00001 /*
00002  * Copyright 2000, International Business Machines Corporation and others.
00003  * All Rights Reserved.
00004  *
00005  * This software has been released under the terms of the IBM Public
00006  * License.  For details, see the LICENSE file in the top-level source
00007  * directory or online at http://www.openafs.org/dl/license10.html
00008  */
00009 
00010 #ifndef OPENAFS_WINNT_AFSD_SMB_IOCONS_H
00011 #define OPENAFS_WINNT_AFSD_SMB_IOCONS_H 1
00012 
00013 /* included in both AFSD and fs commands */
00014 
00015 typedef struct chservinfo {
00016         int magic;
00017         char tbuffer[128];
00018         int tsize;
00019         long tinterval;
00020         long tflags;
00021 } chservinfo_t;
00022 
00023 struct gaginfo {
00024         afs_uint32 showflags, logflags, logwritethruflag, spare[3];
00025         unsigned char spare2[128];
00026 };
00027 
00028 #define GAGUSER         1
00029 #define GAGCONSOLE      2
00030 
00031 struct ClearToken {
00032         int AuthHandle;
00033         char HandShakeKey[8];
00034         int ViceId;
00035         int BeginTimestamp;
00036         int EndTimestamp;
00037 };
00038 
00039 struct sbstruct {
00040         int sb_thisfile;
00041         int sb_default;
00042 };
00043 
00044 /* set cell flags */
00045 #define CM_SETCELLFLAG_SUID             2
00046 
00047 #define VIOC_FILE_CELL_NAME             0x1
00048 #define VIOCGETAL                       0x2
00049 #define VIOCSETAL                       0x3
00050 #define VIOC_FLUSHVOLUME                0x4
00051 #define VIOCFLUSH                       0x5
00052 #define VIOCSETVOLSTAT                  0x6
00053 #define VIOCGETVOLSTAT                  0x7
00054 #define VIOCWHEREIS                     0x8
00055 #define VIOC_AFS_STAT_MT_PT             0x9
00056 #define VIOC_AFS_DELETE_MT_PT           0xa
00057 #define VIOCCKSERV                      0xb
00058 #define VIOC_GAG                        0xc
00059 #define VIOCCKBACK                      0xd
00060 #define VIOCSETCACHESIZE                0xe
00061 #define VIOCGETCACHEPARMS               0xf
00062 #define VIOCGETCELL                     0x10
00063 #define VIOCNEWCELL                     0x11
00064 #define VIOC_GET_WS_CELL                0x12
00065 #define VIOC_AFS_MARINER_HOST           0x13
00066 #define VIOC_AFS_SYSNAME                0x14
00067 #define VIOC_EXPORTAFS                  0x15
00068 #define VIOC_GETCELLSTATUS              0x16
00069 #define VIOC_SETCELLSTATUS              0x17
00070 #define VIOC_SETSPREFS                  0x18
00071 #define VIOC_GETSPREFS                  0x19
00072 #define VIOC_STOREBEHIND                0x1a
00073 #define VIOC_AFS_CREATE_MT_PT           0x1b
00074 #define VIOC_TRACECTL                   0x1c
00075 #define VIOCSETTOK                      0x1d
00076 #define VIOCGETTOK                      0x1e
00077 #define VIOCNEWGETTOK                   0x1f
00078 #define VIOCDELTOK                      0x20
00079 #define VIOCDELALLTOK                   0x21
00080 #define VIOC_ISSYMLINK                  0x22
00081 #define VIOC_SYMLINK                    0x23
00082 #define VIOC_LISTSYMLINK                0x24
00083 #define VIOC_DELSYMLINK                 0x25
00084 #define VIOC_MAKESUBMOUNT               0x26
00085 #define VIOC_GETRXKCRYPT                0x27
00086 #define VIOC_SETRXKCRYPT                0x28
00087 #define VIOC_TRACEMEMDUMP               0x29
00088 #define VIOC_SHUTDOWN                   0x2a
00089 #define VIOC_FLUSHALL                   0x2b
00090 #define VIOCGETFID                      0x2c
00091 #define VIOCGETOWNER                    0x2d
00092 #define VIOC_RXSTAT_PROC                0x2e
00093 #define VIOC_RXSTAT_PEER                0x2f
00094 #define VIOC_UUIDCTL                    0x30
00095 #define VIOC_PATH_AVAILABILITY          0x31
00096 #define VIOC_GETFILETYPE                0x32
00097 #define VIOC_UNICODECTL                 0x33
00098 #define VIOC_SETOWNER                   0x34
00099 #define VIOC_SETGROUP                   0x35
00100 #define VIOC_FS_CMD                     0x36
00101 #define VIOCNEWCELL2                    0x37
00102 #define VIOC_GETUNIXMODE                0x38
00103 #define VIOC_SETUNIXMODE                0x39
00104 #define VIOC_GETVERIFYDATA              0x3A
00105 #define VIOC_SETVERIFYDATA              0x3B
00106 
00107 #define VIOC_VOLSTAT_TEST               0x3F
00108 
00109 #define VIOC_NEWCELL2_FLAG_LINKED       0x1
00110 #define VIOC_NEWCELL2_FLAG_USEDNS       0x2
00111 #define VIOC_NEWCELL2_FLAG_USEREG       0x4
00112 
00113 /* magic file name for ioctl opens */
00114 #define CM_IOCTL_FILENAME       "\\_._AFS_IOCTL_._"     /* double backslashes for C compiler */
00115 #define CM_IOCTL_FILENAME_W     L"\\_._AFS_IOCTL_._"    /* double backslashes for C compiler */
00116 #define CM_IOCTL_FILENAME_NOSLASH "_._AFS_IOCTL_._"
00117 #define CM_IOCTL_FILENAME_NOSLASH_W L"_._AFS_IOCTL_._"
00118 
00119 /* max parms for ioctl, in either direction */
00120 #define CM_IOCTL_MAXDATA                8192*2
00121 #define CM_IOCTL_MAXPROCS               64
00122 
00123 #endif /*  OPENAFS_WINNT_AFSD_SMB_IOCONS_H */
 All Data Structures Files Functions Variables