|
|
| version 1.9, 2003/09/23 05:03:52 | version 1.10, 2004/02/05 21:03:37 |
|---|---|
| Line 124 update_mp(mp, argp) | Line 124 update_mp(mp, argp) |
| bcopy(argp->lu, pmp->pm_lu, sizeof(pmp->pm_lu)); | bcopy(argp->lu, pmp->pm_lu, sizeof(pmp->pm_lu)); |
| } | } |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| /* | /* |
| * GEMDOS knows nothing (yet) about win95 | * GEMDOS knows nothing (yet) about win95 |
| */ | */ |
| Line 155 update_mp(mp, argp) | Line 155 update_mp(mp, argp) |
| return 0; | return 0; |
| } | } |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| int | int |
| msdosfs_mountroot() | msdosfs_mountroot() |
| { | { |
| Line 372 mountmsdosfs(devvp, mp, td, argp) | Line 372 mountmsdosfs(devvp, mp, td, argp) |
| struct msdosfsmount *pmp; | struct msdosfsmount *pmp; |
| struct buf *bp; | struct buf *bp; |
| dev_t dev = devvp->v_rdev; | dev_t dev = devvp->v_rdev; |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| struct partinfo dpart; | struct partinfo dpart; |
| int bsize = 0, dtype = 0, tmp; | int bsize = 0, dtype = 0, tmp; |
| #endif | #endif |
| Line 411 mountmsdosfs(devvp, mp, td, argp) | Line 411 mountmsdosfs(devvp, mp, td, argp) |
| bp = NULL; /* both used in error_exit */ | bp = NULL; /* both used in error_exit */ |
| pmp = NULL; | pmp = NULL; |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| if (argp->flags & MSDOSFSMNT_GEMDOSFS) { | if (argp->flags & MSDOSFSMNT_GEMDOSFS) { |
| /* | /* |
| * We need the disklabel to calculate the size of a FAT entry | * We need the disklabel to calculate the size of a FAT entry |
| Line 451 mountmsdosfs(devvp, mp, td, argp) | Line 451 mountmsdosfs(devvp, mp, td, argp) |
| b50 = (struct byte_bpb50 *)bsp->bs50.bsBPB; | b50 = (struct byte_bpb50 *)bsp->bs50.bsBPB; |
| b710 = (struct byte_bpb710 *)bsp->bs710.bsPBP; | b710 = (struct byte_bpb710 *)bsp->bs710.bsPBP; |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) { | if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) { |
| #endif | #endif |
| #ifndef MSDOSFS_NOCHECKSIG | #ifndef MSDOSFS_NOCHECKSIG |
| Line 461 mountmsdosfs(devvp, mp, td, argp) | Line 461 mountmsdosfs(devvp, mp, td, argp) |
| goto error_exit; | goto error_exit; |
| } | } |
| #endif | #endif |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| } | } |
| #endif | #endif |
| Line 488 mountmsdosfs(devvp, mp, td, argp) | Line 488 mountmsdosfs(devvp, mp, td, argp) |
| /* calculate the ratio of sector size to DEV_BSIZE */ | /* calculate the ratio of sector size to DEV_BSIZE */ |
| pmp->pm_BlkPerSec = pmp->pm_BytesPerSec / DEV_BSIZE; | pmp->pm_BlkPerSec = pmp->pm_BytesPerSec / DEV_BSIZE; |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) { | if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) { |
| #endif | #endif |
| /* XXX - We should probably check more values here */ | /* XXX - We should probably check more values here */ |
| Line 502 mountmsdosfs(devvp, mp, td, argp) | Line 502 mountmsdosfs(devvp, mp, td, argp) |
| error = EINVAL; | error = EINVAL; |
| goto error_exit; | goto error_exit; |
| } | } |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| } | } |
| #endif | #endif |
| Line 587 mountmsdosfs(devvp, mp, td, argp) | Line 587 mountmsdosfs(devvp, mp, td, argp) |
| SecPerClust + 1; | SecPerClust + 1; |
| pmp->pm_fatsize = pmp->pm_FATsecs * DEV_BSIZE; /* XXX not used? */ | pmp->pm_fatsize = pmp->pm_FATsecs * DEV_BSIZE; /* XXX not used? */ |
| #ifndef __FreeBSD__ | #ifndef __DragonFly__ |
| if (argp->flags & MSDOSFSMNT_GEMDOSFS) { | if (argp->flags & MSDOSFSMNT_GEMDOSFS) { |
| if ((pmp->pm_maxcluster <= (0xff0 - 2)) | if ((pmp->pm_maxcluster <= (0xff0 - 2)) |
| && ((dtype == DTYPE_FLOPPY) || ((dtype == DTYPE_VNODE) | && ((dtype == DTYPE_FLOPPY) || ((dtype == DTYPE_VNODE) |