From: Derrick Brashear Date: Tue, 7 Oct 2008 22:30:33 +0000 (+0000) Subject: DEVEL15-darwin-fake-more-disk-free-20081007 X-Git-Tag: openafs-devel-1_5_54~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=28269a02d24ccb54302d96891bad64706662c1ec;p=packages%2Fo%2Fopenafs.git DEVEL15-darwin-fake-more-disk-free-20081007 LICENSE IPL10 placate finder. this time for sure (cherry picked from commit 967cbd2628c02060870c2381bd6fca3480f5711a) --- diff --git a/src/afs/DARWIN/osi_vfsops.c b/src/afs/DARWIN/osi_vfsops.c index d5697f1c2..f39ab3aab 100644 --- a/src/afs/DARWIN/osi_vfsops.c +++ b/src/afs/DARWIN/osi_vfsops.c @@ -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];