]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Make afsio be useful on Windows and fix bugs
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 9 May 2010 14:15:30 +0000 (10:15 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 12 May 2010 05:23:56 +0000 (22:23 -0700)
commitafaecee40f4ae07bdf6c1419e70bdecbd5aa9526
tree356df2ea0fc71cd59efbf0aa12aa263705f4307b
parent6d48026f86794ecf4dba70cc3f8f5ebd685c5255
Make afsio be useful on Windows and fix bugs

On Windows, the stdin and stdout handles default to text
mode which corrupts data piped through them.  At the start
of readFile and writeFile, the mode is now set to binary.

The ProbeUuid callback is supposed to determine if this
client is the same as the one being requested.  Since we
are advertising a new uuid in TellMeAboutYourself and
WhoAmI, we should perform the uuid check and return a
valid answer in order to avoid confusing the file server.

Add support for TellMeAboutYourself.  On Windows, return
valid interface information.

Always print verbose output to stderr.

Display MB/sec to three decimal places.

In readFile, always perform a AFSFetchStatus operation
otherwise we have no idea what the file size is.

On Windows, the path separator is backslash.

Change-Id: I174eda991383301d01fe5d6431d459b6ea01a0be
Reviewed-on: http://gerrit.openafs.org/1930
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Hartmut Reuter <reuter@rzg.mpg.de>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/venus/afsio.c