client-64bit-file-size-support-20011031
[openafs.git] / src / afs / LINUX / osi_misc.c
index 039e18d..ec345b3 100644 (file)
@@ -90,7 +90,7 @@ int osi_InitCacheInfo(char *aname)
 
     cacheInode = dp->d_inode->i_ino;
     cacheDev.dev = dp->d_inode->i_dev;
-    afs_fsfragsize = dp->d_inode->i_sb->s_blocksize;
+    afs_fsfragsize = dp->d_inode->i_sb->s_blocksize - 1;
     afs_cacheSBp = dp->d_inode->i_sb;
 
     dput(dp);
@@ -192,7 +192,7 @@ int osi_file_uio_rdwr(struct osi_file *osifile, uio_t *uiop, int rw)
  * Setup a uio struct.
  */
 void setup_uio(uio_t *uiop, struct iovec *iovecp, char *buf,
-                            int pos, int count, uio_flag_t flag,
+                            afs_offs_t pos, int count, uio_flag_t flag,
                             uio_seg_t seg)
 {
     iovecp->iov_base = buf;