History log of /openbsd-current/sys/msdosfs/fat.h
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 11-Jul-2021 jsg

correct comment
from Jonathan Kollasch in NetBSD


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.12 14-Aug-2017 sf

msdofs: Add new CLUST_END constant

(forgot to commit fat.h)

Add new CLUST_END and use it as parameter to pcbmap() when searching
for end cluster, instead of explicitly passing 0xffff. This fixes potential
problem for FAT32, where cluster number may be legally bigger than 0xffff.

Also change clusteralloc() so that fillwith is not explicitly passed by caller
anymore (there is no need to use anything other than CLUST_EOFE).

From NetBSD commit by jdolecek@NetBSD.org

ok tb@ mpi@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 23-Oct-2015 krw

Nuke a bunch of leading/embedded/trailing whitespace so the code can be
read without generating spurious headaches.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.9 15-Dec-2006 krw

Nuke GEMDOSFS. Unused part of unused atari port. Simplifies
MSDOSFS code. Eliminates -G option to mount_msdos.

Nit detection by gwk@, tom@, jmc@.

ok weingart@ tom@ thib@ dlg@ deraadt@


# 1.8 03-Oct-2006 pedro

Introduce daddr64_t and use it for physical block numbers
Okay weingart@, "I'm game with putting my name on it" dlg@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 14-May-2004 tedu

use pool for namei pathbuf. testing ok millert@ tdeval@


# 1.6 12-May-2004 tedu

32 bit ints are uint32_t, not u_long. works on 64bit now. ok deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE SMP_BASE UBC_BASE kame_19991208
# 1.4 11-Jan-1998 provos

branches: 1.4.10; 1.4.20;
FAT32 support from NetBSD by Wolfgang Solfrank.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 29-Feb-1996 niklas

From NetBSD: merge with 960217


# 1.2 29-Jan-1996 deraadt

from netbsd;
Instead of using '#ifdef atari' to handle the differences of Gemdosfs and
Msdosfs, use a flag that can be set by mount_msdos. This is definitely
more flexible.
Fix error in previous change: don't use the local FS mount data before
it's actually allocated. Pass mount arguments to msdosfs_mountfs instead,
and use them (as in iso_mountfs for example).


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_2_BASE
# 1.12 14-Aug-2017 sf

msdofs: Add new CLUST_END constant

(forgot to commit fat.h)

Add new CLUST_END and use it as parameter to pcbmap() when searching
for end cluster, instead of explicitly passing 0xffff. This fixes potential
problem for FAT32, where cluster number may be legally bigger than 0xffff.

Also change clusteralloc() so that fillwith is not explicitly passed by caller
anymore (there is no need to use anything other than CLUST_EOFE).

From NetBSD commit by jdolecek@NetBSD.org

ok tb@ mpi@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.11 23-Oct-2015 krw

Nuke a bunch of leading/embedded/trailing whitespace so the code can be
read without generating spurious headaches.


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.10 11-Jun-2013 deraadt

final removal of daddr64_t. daddr_t has been 64 bit for a long enough
test period; i think 3 years ago the last bugs fell out.
ok otto beck others


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.9 15-Dec-2006 krw

Nuke GEMDOSFS. Unused part of unused atari port. Simplifies
MSDOSFS code. Eliminates -G option to mount_msdos.

Nit detection by gwk@, tom@, jmc@.

ok weingart@ tom@ thib@ dlg@ deraadt@


# 1.8 03-Oct-2006 pedro

Introduce daddr64_t and use it for physical block numbers
Okay weingart@, "I'm game with putting my name on it" dlg@


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE SMP_SYNC_A SMP_SYNC_B
# 1.7 14-May-2004 tedu

use pool for namei pathbuf. testing ok millert@ tdeval@


# 1.6 12-May-2004 tedu

32 bit ints are uint32_t, not u_long. works on 64bit now. ok deraadt@


Revision tags: OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE OPENBSD_3_4_BASE OPENBSD_3_5_BASE UBC_SYNC_A UBC_SYNC_B
# 1.5 14-Mar-2002 millert

First round of __P removal in sys


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE SMP_BASE UBC_BASE kame_19991208
# 1.4 11-Jan-1998 provos

branches: 1.4.10; 1.4.20;
FAT32 support from NetBSD by Wolfgang Solfrank.


Revision tags: OPENBSD_2_0_BASE OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 29-Feb-1996 niklas

From NetBSD: merge with 960217


# 1.2 29-Jan-1996 deraadt

from netbsd;
Instead of using '#ifdef atari' to handle the differences of Gemdosfs and
Msdosfs, use a flag that can be set by mount_msdos. This is definitely
more flexible.
Fix error in previous change: don't use the local FS mount data before
it's actually allocated. Pass mount arguments to msdosfs_mountfs instead,
and use them (as in iso_mountfs for example).


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision