From 149e5a04f74fb1cfc857fa0f9ef9b70cd86520f5 Mon Sep 17 00:00:00 2001 From: tjr Date: Wed, 8 Sep 2004 13:03:19 +0000 Subject: Reduce the size of struct defid's defid_dirclust, defid_dirofs and (disabled) defid_gen members from u_long to u_int32_t so that alignment requirements don't cause the structure to become larger than struct fid on LP64 platforms. This fixes NFS exports of msdos filesystems on at least amd64. PR: 71173 --- sys/fs/msdosfs/denode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/fs/msdosfs/denode.h') diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h index 128527e..0da4378 100644 --- a/sys/fs/msdosfs/denode.h +++ b/sys/fs/msdosfs/denode.h @@ -252,10 +252,10 @@ struct defid { u_short defid_len; /* length of structure */ u_short defid_pad; /* force long alignment */ - u_long defid_dirclust; /* cluster this dir entry came from */ - u_long defid_dirofs; /* offset of entry within the cluster */ + u_int32_t defid_dirclust; /* cluster this dir entry came from */ + u_int32_t defid_dirofs; /* offset of entry within the cluster */ #if 0 - u_long defid_gen; /* generation number */ + u_int32_t defid_gen; /* generation number */ #endif }; -- cgit v1.1