diff options
author | kib <kib@FreeBSD.org> | 2010-02-13 12:41:07 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-02-13 12:41:07 +0000 |
commit | b6bb83ada40bb7bb9c35cdb0f31f00e100932b8c (patch) | |
tree | 973912c4c40193e5f04c11eb23d2055f94128cb5 /sys/fs/msdosfs/bootsect.h | |
parent | b99a62d97c56f96defd88c87e44d3a4553b85cdf (diff) | |
download | FreeBSD-src-b6bb83ada40bb7bb9c35cdb0f31f00e100932b8c.zip FreeBSD-src-b6bb83ada40bb7bb9c35cdb0f31f00e100932b8c.tar.gz |
- Add idempotency guards so the structures can be used in other utilities.
- Update bpb structs with reserved fields.
- In direntry struct join deName with deExtension. Although a
fix was attempted in the past, these fields were being overflowed,
Now this is consistent with the spec, and we can now share the
WinChksum code with NetBSD.
Submitted by: Pedro F. Giffuni <giffunip tutopia com>
Mostly obtained from: NetBSD
Reviewed by: bde
MFC after: 2 weeks
Diffstat (limited to 'sys/fs/msdosfs/bootsect.h')
-rw-r--r-- | sys/fs/msdosfs/bootsect.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/fs/msdosfs/bootsect.h b/sys/fs/msdosfs/bootsect.h index 9e8aa97..ebd60a0 100644 --- a/sys/fs/msdosfs/bootsect.h +++ b/sys/fs/msdosfs/bootsect.h @@ -16,6 +16,8 @@ * * October 1992 */ +#ifndef _FS_MSDOSFS_BOOTSECT_H_ +#define _FS_MSDOSFS_BOOTSECT_H_ /* * Format of a boot sector. This is the first sector on a DOS floppy disk @@ -91,3 +93,5 @@ union bootsector { #define bsHiddenSecs bsBPB.bpbHiddenSecs #define bsHugeSectors bsBPB.bpbHugeSectors #endif + +#endif /* !_FS_MSDOSFS_BOOTSECT_H_ */ |