dosfs.h (203871) | dosfs.h (203872) |
---|---|
1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * Some structure declaration borrowed from Paul Popelka 5 * (paulp@uts.amdahl.com), see /sys/msdosfs/ for reference. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * $NetBSD: dosfs.h,v 1.4 1997/01/03 14:32:48 ws Exp $ | 1/* 2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank 3 * Copyright (c) 1995 Martin Husemann 4 * Some structure declaration borrowed from Paul Popelka 5 * (paulp@uts.amdahl.com), see /sys/msdosfs/ for reference. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 10 unchanged lines hidden (view full) --- 19 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * $NetBSD: dosfs.h,v 1.4 1997/01/03 14:32:48 ws Exp $ |
27 * $FreeBSD: head/sbin/fsck_msdosfs/dosfs.h 203871 2010-02-14 12:28:43Z kib $ | 27 * $FreeBSD: head/sbin/fsck_msdosfs/dosfs.h 203872 2010-02-14 12:30:30Z kib $ |
28 */ 29 30#ifndef DOSFS_H 31#define DOSFS_H 32 33#define DOSBOOTBLOCKSIZE 512 34 35typedef u_int32_t cl_t; /* type holding a cluster number */ --- 7 unchanged lines hidden (view full) --- 43 u_int SecPerClust; /* sectors per cluster */ 44 u_int ResSectors; /* number of reserved sectors */ 45 u_int FATs; /* number of FATs */ 46 u_int RootDirEnts; /* number of root directory entries */ 47 u_int Media; /* media descriptor */ 48 u_int FATsmall; /* number of sectors per FAT */ 49 u_int SecPerTrack; /* sectors per track */ 50 u_int Heads; /* number of heads */ | 28 */ 29 30#ifndef DOSFS_H 31#define DOSFS_H 32 33#define DOSBOOTBLOCKSIZE 512 34 35typedef u_int32_t cl_t; /* type holding a cluster number */ --- 7 unchanged lines hidden (view full) --- 43 u_int SecPerClust; /* sectors per cluster */ 44 u_int ResSectors; /* number of reserved sectors */ 45 u_int FATs; /* number of FATs */ 46 u_int RootDirEnts; /* number of root directory entries */ 47 u_int Media; /* media descriptor */ 48 u_int FATsmall; /* number of sectors per FAT */ 49 u_int SecPerTrack; /* sectors per track */ 50 u_int Heads; /* number of heads */ |
51 u_int32_t Sectors; /* total number of sectors */ | |
52 u_int32_t HiddenSecs; /* # of hidden sectors */ | 51 u_int32_t HiddenSecs; /* # of hidden sectors */ |
52 u_int32_t Sectors; /* total number of sectors */ 53#define FAT32 1 /* this is a FAT32 file system */ 54 /* 55 * Maybe, we should separate out 56 * various parts of FAT32? XXX 57 */ |
|
53 u_int32_t HugeSectors; /* # of sectors if bpbSectors == 0 */ 54 u_int FSInfo; /* FSInfo sector */ 55 u_int Backup; /* Backup of Bootblocks */ 56 cl_t RootCl; /* Start of Root Directory */ 57 cl_t FSFree; /* Number of free clusters acc. FSInfo */ 58 cl_t FSNext; /* Next free cluster acc. FSInfo */ 59 60 /* and some more calculated values */ 61 u_int flags; /* some flags: */ | 58 u_int32_t HugeSectors; /* # of sectors if bpbSectors == 0 */ 59 u_int FSInfo; /* FSInfo sector */ 60 u_int Backup; /* Backup of Bootblocks */ 61 cl_t RootCl; /* Start of Root Directory */ 62 cl_t FSFree; /* Number of free clusters acc. FSInfo */ 63 cl_t FSNext; /* Next free cluster acc. FSInfo */ 64 65 /* and some more calculated values */ 66 u_int flags; /* some flags: */ |
62#define FAT32 1 /* this is a FAT32 file system */ 63 /* 64 * Maybe, we should separate out 65 * various parts of FAT32? XXX 66 */ | |
67 int ValidFat; /* valid fat if FAT32 non-mirrored */ 68 cl_t ClustMask; /* mask for entries in FAT */ 69 cl_t NumClusters; /* # of entries in a FAT */ 70 u_int32_t NumSectors; /* how many sectors are there */ 71 u_int32_t FATsecs; /* how many sectors are in FAT */ 72 u_int32_t NumFatEntries; /* how many entries really are there */ 73 u_int ClusterOffset; /* at what sector would sector 0 start */ 74 u_int ClusterSize; /* Cluster size in bytes */ --- 63 unchanged lines hidden --- | 67 int ValidFat; /* valid fat if FAT32 non-mirrored */ 68 cl_t ClustMask; /* mask for entries in FAT */ 69 cl_t NumClusters; /* # of entries in a FAT */ 70 u_int32_t NumSectors; /* how many sectors are there */ 71 u_int32_t FATsecs; /* how many sectors are in FAT */ 72 u_int32_t NumFatEntries; /* how many entries really are there */ 73 u_int ClusterOffset; /* at what sector would sector 0 start */ 74 u_int ClusterSize; /* Cluster size in bytes */ --- 63 unchanged lines hidden --- |