On 1/23/2013 9:05 AM, Jeffrey Altman wrote:
> Tobias,
> 
> File a bug report against the application that is querying volume
> information for the root directory of a drive mapping instead of for the
> path that the application is actually interested in.  The AFS redirector
> reports each volume change in the path as a reparse point.  It is up to
> the application to query for free space in the correct volume.  A
> readonly volume by definition has zero bytes free.
> 
> As a work around for applications that cannot be fixed, use a drive
> letter mapping to the root of the volume you wish the application to access.
> 
> Jeffrey Altman

In particular, when filing a bug report against an application suggest
that the application developer obtain the free space information using

  GetDiskFreeSpaceEx

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364937%28v=vs.85%29.aspx

where the input parameter, lpDirectoryName, is the directory to which
the application is interested in writing.   It should not be the root
directory of the path.

The older GetDiskFreeSpace function

http://msdn.microsoft.com/en-us/library/windows/desktop/aa364935%28v=vs.85%29.aspx

requires that the lpRootPathName parameter be the root of the path.
GetDiskFreeSpace does not work correctly when there are Reparse Points
(NTFS Junctions, NTFS Symlinks, CIFS Referrals, AFS Mount Points, AFS
Symlinks, etc) and should no longer be used.

Jeffrey Altman


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to