Skip to content

Commit

Permalink
add more debug information
Browse files Browse the repository at this point in the history
git-svn-id: http://dokan.googlecode.com/svn/trunk@169 53ea604a-054e-0410-8546-456bafaea6b0
  • Loading branch information
asakaw committed Jan 4, 2011
1 parent e173d72 commit e3a189e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 33 deletions.
1 change: 1 addition & 0 deletions sys/fscontrol.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ DokanUserFsRequest(

case FSCTL_GET_REPARSE_POINT:
DDbgPrint(" FSCTL_GET_REPARSE_POINT\n");
status = STATUS_NOT_A_REPARSE_POINT;
break;

case FSCTL_DELETE_REPARSE_POINT:
Expand Down
56 changes: 23 additions & 33 deletions sys/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,25 +78,20 @@ DokanDispatchQuerySecurity(
bufferLength = irpSp->Parameters.QuerySecurity.Length;
securityInfo = &irpSp->Parameters.QuerySecurity.SecurityInformation;

switch (*securityInfo) {
case DACL_SECURITY_INFORMATION:
DDbgPrint(" DACL_SECURITY_INFORMATION\n");
break;
case GROUP_SECURITY_INFORMATION:
DDbgPrint(" GROUP_SECURITY_INFORMATION\n");
break;
case OWNER_SECURITY_INFORMATION:
if (*securityInfo & OWNER_SECURITY_INFORMATION) {
DDbgPrint(" OWNER_SECURITY_INFORMATION\n");
break;
case SACL_SECURITY_INFORMATION:
}
if (*securityInfo & GROUP_SECURITY_INFORMATION) {
DDbgPrint(" GROUP_SECURITY_INFORMATION\n");
}
if (*securityInfo & DACL_SECURITY_INFORMATION) {
DDbgPrint(" DACL_SECURITY_INFORMATION\n");
}
if (*securityInfo & SACL_SECURITY_INFORMATION) {
DDbgPrint(" SACL_SECURITY_INFORMATION\n");
break;
case LABEL_SECURITY_INFORMATION:
}
if (*securityInfo & LABEL_SECURITY_INFORMATION) {
DDbgPrint(" LABEL_SECURITY_INFORMATION\n");
break;
default:
DDbgPrint(" Unknown Security information: %d\n", *securityInfo);
break;
}

eventLength = sizeof(EVENT_CONTEXT) + fcb->FileName.Length;
Expand Down Expand Up @@ -185,7 +180,7 @@ DokanCompleteQuerySecurity(

} else {
info = 0;
status = STATUS_INVALID_PARAMETER;
status = EventInfo->Status;
}

if (irp->MdlAddress != NULL) {
Expand Down Expand Up @@ -270,25 +265,20 @@ DokanDispatchSetSecurity(

securityInfo = &irpSp->Parameters.SetSecurity.SecurityInformation;

switch (*securityInfo) {
case DACL_SECURITY_INFORMATION:
DDbgPrint(" DACL_SECURITY_INFORMATION\n");
break;
case GROUP_SECURITY_INFORMATION:
DDbgPrint(" GROUP_SECURITY_INFORMATION\n");
break;
case OWNER_SECURITY_INFORMATION:
if (*securityInfo & OWNER_SECURITY_INFORMATION) {
DDbgPrint(" OWNER_SECURITY_INFORMATION\n");
break;
case SACL_SECURITY_INFORMATION:
}
if (*securityInfo & GROUP_SECURITY_INFORMATION) {
DDbgPrint(" GROUP_SECURITY_INFORMATION\n");
}
if (*securityInfo & DACL_SECURITY_INFORMATION) {
DDbgPrint(" DACL_SECURITY_INFORMATION\n");
}
if (*securityInfo & SACL_SECURITY_INFORMATION) {
DDbgPrint(" SACL_SECURITY_INFORMATION\n");
break;
case LABEL_SECURITY_INFORMATION:
}
if (*securityInfo & LABEL_SECURITY_INFORMATION) {
DDbgPrint(" LABEL_SECURITY_INFORMATION\n");
break;
default:
DDbgPrint(" Unknown Security information: %d\n", *securityInfo);
break;
}

securityDescriptor = irpSp->Parameters.SetSecurity.SecurityDescriptor;
Expand Down

0 comments on commit e3a189e

Please sign in to comment.