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
This commit is contained in:
Tim J. Robbins 2004-09-08 13:03:19 +00:00
parent a6406834da
commit d676af371d

View File

@ -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
};