Windows: RDR_DeleteFileEntry test for empty directory
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 12 Apr 2013 05:14:39 +0000 (01:14 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Wed, 17 Apr 2013 16:44:59 +0000 (09:44 -0700)
commit2632c3f459dc47946b2e973c045056c3dca719f2
treec9a1a5bfba3d07c79bf52fe6cd7d6eba5dd9fe25
parent6c73b8350a4bc67db271a5294c5fdf1e51e9033a
Windows: RDR_DeleteFileEntry test for empty directory

RDR_DeleteFileEntry should check to see that a directory entry
that is a directory is in fact empty.  The most frequent use of
RDR_DeleteFileEntry is to check whether the object can be deleted
prior to setting the DeletePending state which in turn results in
the object being deleted during Cleanup.  If the directory is not
empty during Cleanup it is too late for the error to be seen by
the application.

Change-Id: I3207bab0527406e3003e97bccf4195abeed31423
Reviewed-on: http://gerrit.openafs.org/9779
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/user/RDRFunction.c