mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
8401d0281f
commit
7d6860c852
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user