cvs commit: src/sys/fs/msdosfs msdosfs_vfsops.c

John Baldwin jhb at FreeBSD.org
Thu Apr 24 11:21:25 PDT 2003


On 24-Apr-2003 John Baldwin wrote:
> jhb         2003/04/24 11:19:19 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/fs/msdosfs       msdosfs_vfsops.c 
>   Log:
>   Fail to mount a device if the bytes per sector in the BPB is less than
>   DEV_BSIZE or if the number of FAT sectors is zero.

Windows formatted iPod's have a fake DOS BPB at the start of their disk.
If you tried to mount it as a msdos filesystem before this change, the
kernel would panic.  Now you get EINVAL.  If you stick GEOM_APPLE in your
kernel, then the apple label at the start of the disk is recognized, and
you can mount /dev/da0s2 as a msdos filesystem.

-- 

John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


More information about the cvs-src mailing list