Commit 23044294 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix some inconsistent types

SGI Modid: 2.5.x-xfs:slinx:155637a
parent 663be8db
...@@ -102,7 +102,7 @@ xfs_error_test(int error_tag, int *fsidp, char *expression, ...@@ -102,7 +102,7 @@ xfs_error_test(int error_tag, int *fsidp, char *expression,
if (random() % randfactor) if (random() % randfactor)
return 0; return 0;
memcpy(&fsid, fsidp, sizeof(fsid_t)); memcpy(&fsid, fsidp, sizeof(xfs_fsid_t));
for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) {
if (xfs_etest[i] == error_tag && xfs_etest_fsid[i] == fsid) { if (xfs_etest[i] == error_tag && xfs_etest_fsid[i] == fsid) {
...@@ -123,7 +123,7 @@ xfs_errortag_add(int error_tag, xfs_mount_t *mp) ...@@ -123,7 +123,7 @@ xfs_errortag_add(int error_tag, xfs_mount_t *mp)
int len; int len;
int64_t fsid; int64_t fsid;
memcpy(&fsid, mp->m_fixedfsid, sizeof(fsid_t)); memcpy(&fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t));
for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) {
if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) { if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) {
...@@ -156,7 +156,7 @@ xfs_errortag_clear(int error_tag, xfs_mount_t *mp) ...@@ -156,7 +156,7 @@ xfs_errortag_clear(int error_tag, xfs_mount_t *mp)
int i; int i;
int64_t fsid; int64_t fsid;
memcpy(&fsid, mp->m_fixedfsid, sizeof(fsid_t)); memcpy(&fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t));
for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) {
if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) { if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) {
...@@ -209,7 +209,7 @@ xfs_errortag_clearall(xfs_mount_t *mp) ...@@ -209,7 +209,7 @@ xfs_errortag_clearall(xfs_mount_t *mp)
{ {
int64_t fsid; int64_t fsid;
memcpy(&fsid, mp->m_fixedfsid, sizeof(fsid_t)); memcpy(&fsid, mp->m_fixedfsid, sizeof(xfs_fsid_t));
return xfs_errortag_clearall_umount(fsid, mp->m_fsname, 1); return xfs_errortag_clearall_umount(fsid, mp->m_fsname, 1);
} }
......
...@@ -903,7 +903,7 @@ xfs_mountfs( ...@@ -903,7 +903,7 @@ xfs_mountfs(
* File systems that don't support user level file handles (i.e. * File systems that don't support user level file handles (i.e.
* all of them except for XFS) will leave vfs_altfsid as NULL. * all of them except for XFS) will leave vfs_altfsid as NULL.
*/ */
vfsp->vfs_altfsid = (fsid_t *)mp->m_fixedfsid; vfsp->vfs_altfsid = (xfs_fsid_t *)mp->m_fixedfsid;
mp->m_dmevmask = 0; /* not persistent; set after each mount */ mp->m_dmevmask = 0; /* not persistent; set after each mount */
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment