projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use local access checks when NQNFS ACCESS check cannot be used to server
[unix-history]
/
usr
/
src
/
sys
/
nfs
/
nfs_bio.c
diff --git
a/usr/src/sys/nfs/nfs_bio.c
b/usr/src/sys/nfs/nfs_bio.c
index
349ddf0
..
a970fa1
100644
(file)
--- a/
usr/src/sys/nfs/nfs_bio.c
+++ b/
usr/src/sys/nfs/nfs_bio.c
@@
-7,7
+7,7
@@
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)nfs_bio.c 7.3
4
(Berkeley) %G%
+ * @(#)nfs_bio.c 7.3
5
(Berkeley) %G%
*/
#include <sys/param.h>
*/
#include <sys/param.h>
@@
-194,7
+194,8
@@
again:
case VDIR:
nfsstats.biocache_readdirs++;
on = 0;
case VDIR:
nfsstats.biocache_readdirs++;
on = 0;
- error = bread(vp, uio->uio_offset, NFS_DIRBLKSIZ, cred, &bp);
+ error = bread(vp, (daddr_t)uio->uio_offset, NFS_DIRBLKSIZ,
+ cred, &bp);
n = min(uio->uio_resid, NFS_DIRBLKSIZ - bp->b_resid);
break;
};
n = min(uio->uio_resid, NFS_DIRBLKSIZ - bp->b_resid);
break;
};