summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/denode.h
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-09-08 13:03:19 +0000
committertjr <tjr@FreeBSD.org>2004-09-08 13:03:19 +0000
commit149e5a04f74fb1cfc857fa0f9ef9b70cd86520f5 (patch)
tree0d4a3d8c5b0824e1fb473465ef3e92564e50f265 /sys/fs/msdosfs/denode.h
parentd7e4f82c9a851b8b205af9050b670e428e0ebd88 (diff)
downloadFreeBSD-src-149e5a04f74fb1cfc857fa0f9ef9b70cd86520f5.zip
FreeBSD-src-149e5a04f74fb1cfc857fa0f9ef9b70cd86520f5.tar.gz
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
Diffstat (limited to 'sys/fs/msdosfs/denode.h')
-rw-r--r--sys/fs/msdosfs/denode.h6
1 files changed, 3 insertions, 3 deletions
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
};
OpenPOWER on IntegriCloud