39#ifndef STANDALONE_NFSD
42 const char dfile[] =
"nfsddbg.log";
43 const char efile[] =
"nfsderr.log";
44 const char mode[] =
"w";
79#ifndef STANDALONE_NFSD
92#ifndef STANDALONE_NFSD
103 for(
j = 0,
k = 0;
j <
len;
j++,
k++) {
105 if (((
k+1) % 10 == 0 &&
k > 0)) {
117 for(
j = 0,
k = 0;
j <
len;
j++,
k++) {
119 if (((
k+1) % 10 == 0 &&
k > 0)) {
232 pboth_dir_info,
sizeof(
unsigned char *));
234 pboth_dir_info->NextEntryOffset,
235 sizeof(pboth_dir_info->NextEntryOffset),
sizeof(
DWORD));
237 sizeof(pboth_dir_info->FileIndex));
239 pboth_dir_info->CreationTime.QuadPart,
240 sizeof(pboth_dir_info->CreationTime));
242 pboth_dir_info->LastAccessTime.QuadPart,
243 sizeof(pboth_dir_info->LastAccessTime));
245 pboth_dir_info->LastWriteTime.QuadPart,
246 sizeof(pboth_dir_info->LastWriteTime));
248 pboth_dir_info->ChangeTime.QuadPart,
249 sizeof(pboth_dir_info->ChangeTime));
251 pboth_dir_info->EndOfFile.QuadPart,
252 sizeof(pboth_dir_info->EndOfFile));
254 pboth_dir_info->AllocationSize.QuadPart,
255 sizeof(pboth_dir_info->AllocationSize));
257 pboth_dir_info->FileAttributes,
258 sizeof(pboth_dir_info->FileAttributes));
260 pboth_dir_info->FileNameLength,
261 sizeof(pboth_dir_info->FileNameLength));
263 pboth_dir_info->EaSize,
sizeof(pboth_dir_info->EaSize));
265 pboth_dir_info->ShortNameLength,
266 sizeof(pboth_dir_info->ShortNameLength));
268 sizeof(pboth_dir_info->ShortName));
270 sizeof(pboth_dir_info->FileId));
272 pboth_dir_info->FileName);
301 default:
return "UNKNOWN";
366 default:
return "invalid nfs opnum";
374 case NFS4_OK:
return "NFS4_OK";
478 default:
return "invalid nfs error code";
500 default:
return "invalid rpc error code";
509 default:
return "invalid gss auth type";
567 return "UNKNOWN FLAVOR";
573 dprintf(1,
"--> print_windows_access_mask: %x\n",
m);
575 dprintf(1,
"\tGENERIC_READ\n");
577 dprintf(1,
"\tGENERIC_WRITE\n");
579 dprintf(1,
"\tGENERIC_EXECUTE\n");
583 dprintf(1,
"\tMAXIMUM_ALLOWED\n");
585 dprintf(1,
"\tACCESS_SYSTEM_SECURITY\n");
587 dprintf(1,
"\tSPECIFIC_RIGHTS_ALL\n");
589 dprintf(1,
"\tSTANDARD_RIGHTS_ALL\n");
591 dprintf(1,
"\tSTANDARD_RIGHTS_REQUIRED\n");
599 dprintf(1,
"\tREAD_CONTROL\n");
603 dprintf(1,
"\tFILE_READ_DATA\n");
605 dprintf(1,
"\tFILE_LIST_DIRECTORY\n");
607 dprintf(1,
"\tFILE_WRITE_DATA\n");
609 dprintf(1,
"\tFILE_ADD_FILE\n");
611 dprintf(1,
"\tFILE_APPEND_DATA\n");
613 dprintf(1,
"\tFILE_ADD_SUBDIRECTORY\n");
615 dprintf(1,
"\tFILE_CREATE_PIPE_INSTANCE\n");
617 dprintf(1,
"\tFILE_READ_EA\n");
619 dprintf(1,
"\tFILE_WRITE_EA\n");
621 dprintf(1,
"\tFILE_EXECUTE\n");
623 dprintf(1,
"\tFILE_TRAVERSE\n");
625 dprintf(1,
"\tFILE_DELETE_CHILD\n");
627 dprintf(1,
"\tFILE_READ_ATTRIBUTES\n");
629 dprintf(1,
"\tFILE_WRITE_ATTRIBUTES\n");
631 dprintf(1,
"\tFILE_ALL_ACCESS\n");
633 dprintf(1,
"\tFILE_GENERIC_READ\n");
635 dprintf(1,
"\tFILE_GENERIC_WRITE\n");
637 dprintf(1,
"\tFILE_GENERIC_EXECUTE\n");
643 dprintf(1,
"--> print_nfs_access_mask: %x\n",
m);
645 dprintf(1,
"\tACE4_READ_DATA\n");
647 dprintf(1,
"\tACE4_LIST_DIRECTORY\n");
649 dprintf(1,
"\tACE4_WRITE_DATA\n");
651 dprintf(1,
"\tACE4_ADD_FILE\n");
653 dprintf(1,
"\tACE4_APPEND_DATA\n");
655 dprintf(1,
"\tACE4_ADD_SUBDIRECTORY\n");
657 dprintf(1,
"\tACE4_READ_NAMED_ATTRS\n");
659 dprintf(1,
"\tACE4_WRITE_NAMED_ATTRS\n");
661 dprintf(1,
"\tACE4_EXECUTE\n");
663 dprintf(1,
"\tACE4_DELETE_CHILD\n");
665 dprintf(1,
"\tACE4_READ_ATTRIBUTES\n");
667 dprintf(1,
"\tACE4_WRITE_ATTRIBUTES\n");
671 dprintf(1,
"\tACE4_READ_ACL\n");
673 dprintf(1,
"\tACE4_WRITE_ACL\n");
675 dprintf(1,
"\tACE4_WRITE_OWNER\n");
677 dprintf(1,
"\tACE4_SYNCHRONIZE\n");
@ RPCSEC_SSPI_SVC_INTEGRITY
@ RPCSEC_SSPI_SVC_PRIVACY
#define FILE_DIRECTORY_FILE
#define FILE_NON_DIRECTORY_FILE
#define FILE_COMPLETE_IF_OPLOCKED
#define FILE_DELETE_ON_CLOSE
BOOL ReportStatusToSCMgr(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwWaitHint)
const char * secflavorop2name(DWORD sec_flavor)
void eprintf(LPCSTR format,...)
const char * nfs_opnum_to_string(int opnum)
void print_disposition(int level, DWORD disposition)
const char * nfs_error_string(int status)
const char * opcode2string(DWORD opcode)
void print_file_id_both_dir_info(int level, FILE_ID_BOTH_DIR_INFO *pboth_dir_info)
void print_share_mode(int level, DWORD mode)
void print_create_attributes(int level, DWORD create_opts)
void print_hexbuf(int level, unsigned char *title, unsigned char *buf, int len)
void print_opcode(int level, DWORD opcode)
void set_debug_level(int level)
void print_sr_status_flags(int level, int flags)
void print_nfs_access_mask(int on, int m)
void print_hexbuf_no_asci(int level, unsigned char *title, unsigned char *buf, int len)
void print_windows_access_mask(int on, ACCESS_MASK m)
void print_access_mask(int level, DWORD access_mask)
const char * gssauth_string(int type)
const char * rpc_error_string(int status)
void print_condwait_status(int level, int status)
#define DEFAULT_DEBUG_LEVEL
#define FILE_OPEN_BY_FILE_ID
#define FILE_OVERWRITE_IF
#define FILE_OPEN_REPARSE_POINT
#define FILE_NO_EA_KNOWLEDGE
#define FILE_RESERVE_OPFILTER
#define FILE_SYNCHRONOUS_IO_NONALERT
#define FILE_NO_INTERMEDIATE_BUFFERING
#define FILE_RANDOM_ACCESS
#define FILE_WRITE_THROUGH
#define FILE_SEQUENTIAL_ONLY
#define FILE_SYNCHRONOUS_IO_ALERT
#define FILE_CREATE_TREE_CONNECTION
#define FILE_OPEN_FOR_BACKUP_INTENT
GLuint GLuint GLsizei GLenum type
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_opt_ _CRTIMP int __cdecl fflush(_Inout_opt_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
#define ACE4_READ_NAMED_ATTRS
#define ACE4_ADD_SUBDIRECTORY
#define ACE4_WRITE_NAMED_ATTRS
#define ACE4_LIST_DIRECTORY
#define ACE4_WRITE_ATTRIBUTES
#define ACE4_READ_ATTRIBUTES
@ NFS4ERR_OP_NOT_IN_SESSION
@ NFS4ERR_DELEG_ALREADY_WANTED
@ NFS4ERR_REP_TOO_BIG_TO_CACHE
@ NFS4ERR_COMPLETE_ALREADY
@ NFS4ERR_RETRY_UNCACHED_REP
@ NFS4ERR_BAD_SESSION_DIGEST
@ NFS4ERR_RECLAIM_CONFLICT
@ NFS4ERR_DIRDELEG_UNAVAIL
@ NFS4ERR_MINOR_VERS_MISMATCH
@ NFS4ERR_CONN_NOT_BOUND_TO_SESSION
@ NFS4ERR_ENCR_ALG_UNSUPP
@ NFS4ERR_NOMATCHING_LAYOUT
@ NFS4ERR_UNSAFE_COMPOUND
@ NFS4ERR_HASH_ALG_UNSUPP
@ NFS4ERR_UNKNOWN_LAYOUTTYPE
@ NFS4ERR_LAYOUTUNAVAILABLE
@ NFS4ERR_SEQ_FALSE_RETRY
#define ACE4_DELETE_CHILD
@ OP_BIND_CONN_TO_SESSION
@ SEQ4_STATUS_EXPIRED_SOME_STATE_REVOKED
@ SEQ4_STATUS_CB_PATH_DOWN_SESSION
@ SEQ4_STATUS_RESTART_RECLAIM_NEEDED
@ SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRING
@ SEQ4_STATUS_ADMIN_STATE_REVOKED
@ SEQ4_STATUS_LEASE_MOVED
@ SEQ4_STATUS_CB_PATH_DOWN
@ SEQ4_STATUS_BACKCHANNEL_FAULT
@ SEQ4_STATUS_EXPIRED_ALL_STATE_REVOKED
@ SEQ4_STATUS_RECALLABLE_STATE_REVOKED
@ SEQ4_STATUS_CB_GSS_CONTEXTS_EXPIRED
@ SEQ4_STATUS_DEVID_DELETED
@ SEQ4_STATUS_DEVID_CHANGED
#define SPECIFIC_RIGHTS_ALL
#define FILE_GENERIC_EXECUTE
#define FILE_CREATE_PIPE_INSTANCE
#define ACCESS_SYSTEM_SECURITY
#define FILE_READ_ATTRIBUTES
#define FILE_LIST_DIRECTORY
#define FILE_DELETE_CHILD
#define FILE_SHARE_DELETE
#define STANDARD_RIGHTS_READ
#define FILE_WRITE_ATTRIBUTES
#define STANDARD_RIGHTS_ALL
#define STANDARD_RIGHTS_WRITE
#define FILE_ADD_SUBDIRECTORY
#define FILE_GENERIC_READ
#define FILE_GENERIC_WRITE
#define STANDARD_RIGHTS_REQUIRED
DWORD WINAPI GetLastError(void)
DWORD WINAPI GetCurrentThreadId(void)