]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-linux-correct-fragsize-to-be-as-expected-20020919
authorDerrick Brashear <shadow@dementia.org>
Thu, 19 Sep 2002 23:33:43 +0000 (23:33 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 19 Sep 2002 23:33:43 +0000 (23:33 +0000)
consider it a partial pullup of  client-64bit-file-size-support-20011031

in order for the bit operations we do in afs_AdjustSize to work, this must
be (what it is) minus 1

src/afs/LINUX/osi_misc.c

index c123b7d0cf80dccad9e2c8e0915ed933c23cfe70..dfa2d63ee7a969ef3055a901f220b00ea47685fe 100644 (file)
@@ -91,7 +91,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);