[OpenAFS] OpenAFS 1.7.8 windows: no error on quota full on copy action

Jeffrey Altman jaltman@your-file-system.com
Thu, 05 Apr 2012 07:15:29 -0400

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

At the moment the AFS Redirector does not implement the Windows Volume
Quota Service interface.  Therefore, Windows has no knowledge of per
user quotas.

The behavior you are seeing is due to the fact that Windows is copying
the entire file into the Windows page cache and it is only being sent to
\\AFS when the file is closed.  At that point the AFS redirector does
report the over quota error but the application ignores it.  In this
respect the Windows client is now more like the UNIX client.

Adding support for the Volume Quota Service interface is a feature that
I would like to see implemented.  However, doing so is non-trivial.  It
requires mapping AFS PTS IDs to Windows SIDs for users that may access
the file system after the quota information was reported to the system.

Jeffrey Altman

On 4/5/2012 4:15 AM, Lars Schimmer wrote:
> Hi!
> Maybe I do miss a point, but if I try to copy files in a directory
> with not enough quota, copy action just stops silently and no error is
> shown?
> And worse: explorer does show the file is copied with full size...
> E.g. I have a directory with 5 MB quota. A OpenAFS 1.7.8 client on
> windows 7 32bit with a 100MB OpenAFS cache.
> If I try to copy the 100 MB file into that 5 MB Quota directory via
> drag&drop in explorer, the copy window opens and shows progress with
> 6-10 MB/sec up to 90% (size of cache, more or less). Now it hangs some
> time. After some kind of timeout the copy windows vanishes and the
> target explorer window does show the 100MB file with the expected size
> of 100 MB as complete copied into target.
> No error was shown.
> If I check with another client, OpenAFS did only copy untill quota is
> full, the 100MB file is cut down to 5 MB.
> I do not think thats the expected behavior, or?
> At least it looks dangerous, as users think the file is copied for
> 100% and delete the source and do see after some time, files are not
> copied 100% into OpenAFS....
> While if quota is already full, the start of a new copy into directory
> with full quota is not started, shows a correct error.
> MfG,
> Lars Schimmer
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-info

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG v1.4.9 (MingW32)