Windows: fs chmod and display mode in fs examine
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 18 Dec 2010 23:39:07 +0000 (18:39 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 20 Dec 2010 16:06:39 +0000 (08:06 -0800)
commitafef1712f28a1c83cfb732d1c4fde7faec4811fc
tree09ec61049acb4c907f05874c1e26058eb98c378b
parentbb4c0234b2fa5ae91097b6c40cbfda6ed7484eb0
Windows: fs chmod and display mode in fs examine

Make use of the new pioctl VIOC_GETUNIXMODE and VIOC_SETUNIXMODE
operations to display the current mode in fs examine and permit
setting the mode with "fs chmod".   The mode string parsing makes
use of Vincent Archer's code from Minix.  The required copyright
statement and license is attached to parsemode().

afsconfig-windows.h gains definitions for various mode symbols
that are not defined by Visual Studio runtime headers.

Change-Id: I624f73154b7f177f93289e2641da5d9478ea931c
Reviewed-on: http://gerrit.openafs.org/3546
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/fs.c
src/config/afsconfig-windows.h