]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Fix ntops to provide expected semantics
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 15 Jan 2011 16:07:19 +0000 (11:07 -0500)
committerJeffrey Altman <jaltman@openafs.org>
Sat, 15 Jan 2011 23:01:09 +0000 (15:01 -0800)
commit714b3ffb2258b316621415c2e81372dc48b4119d
tree9d370cc054eaf01376ddc74cf5e625b6a7574bb1
parent98f633c60d20834cee0bbc0770a3146b06642a59
vol: Fix ntops to provide expected semantics

nt_open() can be asked to open a file with a path containing
directory components that do not yet exist.  Modify nt_open()
to automatically create directories if necessary.

nt_read() and nt_pread() should not treat partial reads due
to reaching EOF as an error.  Instead, return the bytes read.

Change-Id: If088393a842d6f6d7ad901345e94e92d23f2321c
Reviewed-on: http://gerrit.openafs.org/3666
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/vol/ntops.c