CVSROOT:        /cvs
Module name:    src
Changes by:     s...@cvs.openbsd.org    2017/08/14 16:43:56

Modified files:
        sys/msdosfs    : msdosfs_denode.c msdosfs_fat.c msdosfs_vnops.c 

Log message:
msdofs: Add new CLUST_END constant

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 jdole...@netbsd.org

ok tb@ mpi@

Reply via email to