UKERNEL: f_fsid is a struct on AIX

The statvfs f_fsid member is a struct with two fields on AIX when
_ALL_SOURCE is defined (which we define to get various extensions). So
in the AIX case, use it as such a struct instead of a single integer.

Change-Id: Ibd94d6b38b0cdc08b5812fe29e4e93344765ff05
Reviewed-on: http://gerrit.openafs.org/3260
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-11-04 10:57:30 -05:00 committed by Derrick Brashear
parent 8401d0281f
commit 7d6860c852

View File

@ -125,7 +125,13 @@ afs_statvfs(struct vfs *afsp, struct statvfs *abp)
abp->f_bsize = afsp->vfs_bsize;
abp->f_blocks = abp->f_bfree = abp->f_bavail = abp->f_files =
abp->f_ffree = 9000000;
#ifdef AFS_USR_AIX_ENV
abp->f_fsid.val[0] = AFS_VFSMAGIC;
abp->f_fsid.val[1] = AFS_VFSFSID;
#else
abp->f_fsid = (AFS_VFSMAGIC << 16) || AFS_VFSFSID;
#endif
return 0;
}