2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
10 #ifndef OPENAFS_WINNT_AFSD_SMB_IOCONS_H
11 #define OPENAFS_WINNT_AFSD_SMB_IOCONS_H 1
13 /* included in both AFSD and fs commands */
15 typedef struct chservinfo {
24 afs_uint32 showflags, logflags, logwritethruflag, spare[3];
25 unsigned char spare2[128];
45 #define CM_SETCELLFLAG_SUID 2
47 #define VIOC_FILE_CELL_NAME 0x1
50 #define VIOC_FLUSHVOLUME 0x4
52 #define VIOCSETVOLSTAT 0x6
53 #define VIOCGETVOLSTAT 0x7
54 #define VIOCWHEREIS 0x8
55 #define VIOC_AFS_STAT_MT_PT 0x9
56 #define VIOC_AFS_DELETE_MT_PT 0xa
57 #define VIOCCKSERV 0xb
59 #define VIOCCKBACK 0xd
60 #define VIOCSETCACHESIZE 0xe
61 #define VIOCGETCACHEPARMS 0xf
62 #define VIOCGETCELL 0x10
63 #define VIOCNEWCELL 0x11
64 #define VIOC_GET_WS_CELL 0x12
65 #define VIOC_AFS_MARINER_HOST 0x13
66 #define VIOC_AFS_SYSNAME 0x14
67 #define VIOC_EXPORTAFS 0x15
68 #define VIOC_GETCELLSTATUS 0x16
69 #define VIOC_SETCELLSTATUS 0x17
70 #define VIOC_SETSPREFS 0x18
71 #define VIOC_GETSPREFS 0x19
72 #define VIOC_STOREBEHIND 0x1a
73 #define VIOC_AFS_CREATE_MT_PT 0x1b
74 #define VIOC_TRACECTL 0x1c
75 #define VIOCSETTOK 0x1d
76 #define VIOCGETTOK 0x1e
77 #define VIOCNEWGETTOK 0x1f
78 #define VIOCDELTOK 0x20
79 #define VIOCDELALLTOK 0x21
80 #define VIOC_ISSYMLINK 0x22
81 #define VIOC_SYMLINK 0x23
82 #define VIOC_LISTSYMLINK 0x24
83 #define VIOC_DELSYMLINK 0x25
84 #define VIOC_MAKESUBMOUNT 0x26
85 #define VIOC_GETRXKCRYPT 0x27
86 #define VIOC_SETRXKCRYPT 0x28
87 #define VIOC_TRACEMEMDUMP 0x29
88 #define VIOC_SHUTDOWN 0x2a
89 #define VIOC_FLUSHALL 0x2b
90 #define VIOCGETFID 0x2c
91 #define VIOCGETOWNER 0x2d
92 #define VIOC_RXSTAT_PROC 0x2e
93 #define VIOC_RXSTAT_PEER 0x2f
94 #define VIOC_UUIDCTL 0x30
95 #define VIOC_PATH_AVAILABILITY 0x31
96 #define VIOC_GETFILETYPE 0x32
97 #define VIOC_UNICODECTL 0x33
98 #define VIOC_SETOWNER 0x34
99 #define VIOC_SETGROUP 0x35
100 #define VIOC_FS_CMD 0x36
101 #define VIOCNEWCELL2 0x37
102 #define VIOC_GETUNIXMODE 0x38
103 #define VIOC_SETUNIXMODE 0x39
104 #define VIOC_GETVERIFYDATA 0x3A
105 #define VIOC_SETVERIFYDATA 0x3B
107 #define VIOC_VOLSTAT_TEST 0x3F
109 #define VIOC_NEWCELL2_FLAG_LINKED 0x1
110 #define VIOC_NEWCELL2_FLAG_USEDNS 0x2
111 #define VIOC_NEWCELL2_FLAG_USEREG 0x4
113 /* magic file name for ioctl opens */
114 #define CM_IOCTL_FILENAME "\\_._AFS_IOCTL_._" /* double backslashes for C compiler */
115 #define CM_IOCTL_FILENAME_W L"\\_._AFS_IOCTL_._" /* double backslashes for C compiler */
116 #define CM_IOCTL_FILENAME_NOSLASH "_._AFS_IOCTL_._"
117 #define CM_IOCTL_FILENAME_NOSLASH_W L"_._AFS_IOCTL_._"
119 /* max parms for ioctl, in either direction */
120 #define CM_IOCTL_MAXDATA 8192*2
121 #define CM_IOCTL_MAXPROCS 64
123 #endif /* OPENAFS_WINNT_AFSD_SMB_IOCONS_H */