]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-darwin-fake-more-disk-free-20081007
authorDerrick Brashear <shadow@dementia.org>
Tue, 7 Oct 2008 22:30:33 +0000 (22:30 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Oct 2008 22:30:33 +0000 (22:30 +0000)
LICENSE IPL10

placate finder. this time for sure

(cherry picked from commit 967cbd2628c02060870c2381bd6fca3480f5711a)

src/afs/DARWIN/osi_vfsops.c

index d5697f1c2ea3700ef1aec5e13e73cd601dc8b780..f39ab3aabb39cb3334691345a91cc9ed33c0a42a 100644 (file)
@@ -118,7 +118,7 @@ afs_mount(mp, path, data, ndp, ctx)
     afs_globalVFS = mp;
 #ifdef AFS_DARWIN80_ENV
     vfs_ioattr(mp, &ioattr);
-    ioattr.io_devblocksize = 8192;
+    ioattr.io_devblocksize = (16 * 32768);
     vfs_setioattr(mp, &ioattr);
     /* f_iosize is handled in VFS_GETATTR */
 #else
@@ -366,28 +366,23 @@ afs_statfs(struct mount *mp, STATFS_TYPE *abp, CTX_TYPE ctx)
     AFS_GLOCK();
     AFS_STATCNT(afs_statfs);
 
-#if 0
-    abp->f_type = MOUNT_AFS;
-#endif
 #ifdef AFS_DARWIN80_ENV
-    abp->f_bsize = abp->f_iosize = vfs_devblocksize(mp);
+    abp->f_iosize = (256 * 1024);
+    abp->f_bsize = vfs_devblocksize(mp);
 #else
     abp->f_bsize = mp->vfs_bsize;
     abp->f_iosize = mp->vfs_bsize;
 #endif
+#if 0
+    abp->f_type = MOUNT_AFS;
+#endif
 
     /* Fake a high number below to satisfy programs that use the statfs call
      * to make sure that there's enough space in the device partition before
      * storing something there.
      */
     abp->f_blocks = abp->f_bfree = abp->f_bavail = abp->f_files =
-       abp->f_ffree = 
-#ifdef AFS_DARWIN80_ENV
-        0xffffffffffffffff
-#else
-       2000000
-#endif
-       ;
+      abp->f_ffree = 0x7fffffff;
 
     if (abp != sysstat) {
         abp->f_fsid.val[0] = sysstat->f_fsid.val[0];