| /netbsd/src/usr.sbin/installboot/ |
| D | ffs.c | 139 assert(params->fstype != NULL); in ffs_find_disk_blocks_ufs1() 144 if (!ffs_read_disk_block(params, params->fstype->sblockloc, SBLOCKSIZE, in ffs_find_disk_blocks_ufs1() 149 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs1() 161 FFS_FSBTODB(fs, ino_to_fsba(fs, ino)) + params->fstype->offset, in ffs_find_disk_blocks_ufs1() 167 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs1() 200 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs1() 218 FFS_FSBTODB(fs, blk) + params->fstype->offset, in ffs_find_disk_blocks_ufs1() 234 FFS_FSBTODB(fs, blk) + params->fstype->offset, in ffs_find_disk_blocks_ufs1() 276 assert(params->fstype != NULL); in ffs_find_disk_blocks_ufs2() 281 if (!ffs_read_disk_block(params, params->fstype->sblockloc, SBLOCKSIZE, in ffs_find_disk_blocks_ufs2() [all …]
|
| D | fstypes.c | 92 assert(params->fstype != NULL); in hardcode_stage2() 93 assert(params->fstype->blocksize != 0); in hardcode_stage2() 104 nblk = s2sb.st_size / params->fstype->blocksize; in hardcode_stage2() 105 if (s2sb.st_size % params->fstype->blocksize != 0) in hardcode_stage2() 109 params->stage2, s2sb.st_size, params->fstype->blocksize, nblk); in hardcode_stage2() 120 i * (params->fstype->blocksize / params->sectorsize); in hardcode_stage2() 121 blocks[i].blocksize = params->fstype->blocksize; in hardcode_stage2() 134 assert(params->fstype != NULL); in raw_match() 136 params->fstype->blocksize = 8192; // XXX: hardcode in raw_match()
|
| D | installboot.c | 288 if (params->fstype != NULL) { in main() 289 if (! params->fstype->match(params)) in main() 291 params->filesystem, params->fstype->name); in main() 294 params->fstype = &fstypes[0]; in main() 295 while (params->fstype->name != NULL && in main() 296 !params->fstype->match(params)) in main() 297 params->fstype++; in main() 298 if (params->fstype->name == NULL) in main() 333 if (params->fstype) in main() 336 params->fstype->name, params->fstype->blocksize, in main() [all …]
|
| D | ext2fs.c | 211 assert(params->fstype != NULL); in ext2fs_find_disk_blocks() 239 EXT2_FSBTODB(fs, ino_to_fsba(fs, ino)) + params->fstype->offset, in ext2fs_find_disk_blocks() 291 EXT2_FSBTODB(fs, blk) + params->fstype->offset, in ext2fs_find_disk_blocks() 307 EXT2_FSBTODB(fs, blk) + params->fstype->offset, fs->e2fs_bsize); in ext2fs_find_disk_blocks() 337 assert(params->fstype != NULL); in ext2fs_findstage2_ino() 406 assert(params->fstype != NULL); in ext2fs_match() 413 params->fstype->needswap = 0; in ext2fs_match() 414 params->fstype->blocksize = fs->e2fs_bsize; in ext2fs_match() 415 params->fstype->offset = 0; in ext2fs_match()
|
| D | cd9660.c | 72 assert(params->fstype != NULL); in cd9660_match() 101 params->fstype->blocksize = blocksize; in cd9660_match() 102 params->fstype->needswap = 0; in cd9660_match()
|
| /netbsd/src/usr.sbin/makefs/ |
| D | makefs.c | 101 fstype_t *fstype; in main() local 111 if ((fstype = get_fstype(DEFAULT_FSTYPE)) == NULL) in main() 120 if (fstype->prepare_options) in main() 121 fstype->prepare_options(&fsoptions); in main() 153 usage(fstype, &fsoptions); in main() 226 if (! fstype->parse_options(p, &fsoptions)) in main() 227 usage(fstype, &fsoptions); in main() 249 if (fstype->cleanup_options) in main() 250 fstype->cleanup_options(&fsoptions); in main() 252 if ((fstype = get_fstype(optarg)) == NULL) in main() [all …]
|
| /netbsd/src/sys/arch/macppc/macppc/ |
| D | disksubr.c | 167 whichType(struct part_map_entry *part, u_int8_t *fstype, int *clust) in whichType() argument 175 *fstype = FS_OTHER; in whichType() 201 *fstype = bzb->bzbType; in whichType() 203 *fstype = FS_BSDFFS; in whichType() 210 *fstype = bzb->bzbType; in whichType() 212 *fstype = FS_BSDFFS; in whichType() 221 *fstype = FS_BSDFFS; in whichType() 224 *fstype = FS_BSDFFS; in whichType() 227 *fstype = FS_SWAP; in whichType() 230 *fstype = FS_OTHER; in whichType() [all …]
|
| /netbsd/src/sys/arch/i386/stand/lib/ |
| D | biosdisk.c | 423 d->part[j].fstype = FS_BSDFFS; in check_gpt() 425 d->part[j].fstype = FS_BSDLFS; in check_gpt() 427 d->part[j].fstype = FS_RAID; in check_gpt() 429 d->part[j].fstype = FS_SWAP; in check_gpt() 431 d->part[j].fstype = FS_CCD; in check_gpt() 433 d->part[j].fstype = FS_CGD; in check_gpt() 435 d->part[j].fstype = FS_OTHER; in check_gpt() 541 d->part[part].fstype = lp->d_partitions[part].p_fstype; in ingest_label() 642 d->part[0].fstype = FS_ISO9660; in check_cd9660() 899 if (d->part[part].fstype == FS_UNUSED) in biosdisk_probe() [all …]
|
| /netbsd/src/sys/arch/ofppc/stand/ofwboot/ |
| D | rdb.c | 64 adt.fstype = b1; in getadostype() 79 adt.fstype = FS_BSDFFS; in getadostype() 81 adt.fstype = FS_UNUSED; in getadostype() 97 adt.fstype = FS_EX2FS; in getadostype() 101 adt.fstype = FS_RAID; in getadostype() 105 adt.fstype = FS_MSDOS; in getadostype() 109 adt.fstype = FS_UNUSED; in getadostype() 248 pp->p_fstype = adt.fstype; in search_rdb_label()
|
| /netbsd/src/sys/arch/amiga/amiga/ |
| D | disksubr.c | 350 adt.fstype = FS_UNUSED; in readdisklabel() 438 pp->p_fstype = adt.fstype; in readdisklabel() 465 adt.fstype = FS_UNUSED; in readdisklabel() 471 } else if (adt.fstype == FS_ISO9660) { in readdisklabel() 565 adt.fstype = b1; in getadostype() 580 adt.fstype = FS_ADOS; in getadostype() 585 adt.fstype = FS_UNUSED; in getadostype() 587 adt.fstype = FS_ADOS; in getadostype() 593 adt.fstype = FS_BSDFFS; in getadostype() 595 adt.fstype = FS_UNUSED; in getadostype() [all …]
|
| /netbsd/src/sys/arch/macppc/stand/ofwboot/ |
| D | ofdev.c | 150 u_int8_t fstype; in check_apm_root() local 153 fstype = 0; in check_apm_root() 166 fstype = bzb->bzbType; in check_apm_root() 168 fstype = FS_BSDFFS; in check_apm_root() 172 fstype = FS_BSDFFS; in check_apm_root() 175 return fstype; in check_apm_root() 190 u_int8_t fstype; in search_mac_label() local 205 fstype = check_apm_root(pme, &clust); in search_mac_label() 207 if (fstype && (lastclust == -1 || clust < lastclust)) { in search_mac_label() 210 a_part->p_fstype = fstype; in search_mac_label()
|
| /netbsd/src/external/bsd/am-utils/dist/amd/ |
| D | sun_map.c | 554 if (s_entry->fstype != NULL) { in sun_entry2amd() 555 if (NSTREQ(s_entry->fstype, SUN_NFS_TYPE, strlen(SUN_NFS_TYPE))) { in sun_entry2amd() 560 else if (NSTREQ(s_entry->fstype, SUN_HSFS_TYPE, strlen(SUN_HSFS_TYPE))) { in sun_entry2amd() 568 else if (NSTREQ(s_entry->fstype, SUN_AUTOFS_TYPE, strlen(SUN_AUTOFS_TYPE))) { in sun_entry2amd() 571 s_entry->fstype); in sun_entry2amd() 575 else if (NSTREQ(s_entry->fstype, SUN_CACHEFS_TYPE, strlen(SUN_CACHEFS_TYPE))) { in sun_entry2amd() 578 s_entry->fstype); in sun_entry2amd() 583 s_entry->fstype); in sun_entry2amd()
|
| D | sun_map.h | 70 char *fstype; /* filesystem type */ member 79 char *fstype; /* filesystem type */ member
|
| /netbsd/src/sys/arch/ofppc/ofppc/ |
| D | disksubr.c | 425 adt.fstype = FS_UNUSED; in read_rdb_label() 516 pp->p_fstype = adt.fstype; in read_rdb_label() 543 adt.fstype = FS_UNUSED; in read_rdb_label() 598 adt.fstype = b1; in getadostype() 613 adt.fstype = FS_ADOS; in getadostype() 618 adt.fstype = FS_UNUSED; in getadostype() 620 adt.fstype = FS_ADOS; in getadostype() 625 adt.fstype = FS_BSDFFS; in getadostype() 627 adt.fstype = FS_UNUSED; in getadostype() 649 adt.fstype = FS_EX2FS; in getadostype() [all …]
|
| /netbsd/src/sys/arch/x68k/x68k/ |
| D | disksubr.c | 171 u_char fstype; in readdisklabel() local 182 fstype = FS_UNUSED; in readdisklabel() 186 fstype = FS_MSDOS; in readdisklabel() 189 fstype = FS_BSDFFS; in readdisklabel() 192 fstype = FS_BSDLFS; in readdisklabel() 195 fstype = FS_SWAP; in readdisklabel() 198 fstype = FS_SWAP; in readdisklabel() 201 fstype = FS_BSDFFS; /* XXX */ in readdisklabel() 202 lp->d_partitions[part].p_fstype = fstype; /* XXX */ in readdisklabel()
|
| /netbsd/src/external/cddl/osnet/lib/libzfs/ |
| D | zmount.c | 46 zmount(const char *spec, const char *dir, int mflag, char *fstype, in zmount() argument 63 za.fstype = NULL; in zmount() 65 return mount(fstype, dir, 0, &za, sizeof(za)); in zmount()
|
| /netbsd/src/sys/arch/macppc/stand/installboot/ |
| D | installboot.c | 80 params->fstype = &cd9660_fstype; in main() 86 if (!params->fstype->match(params)) in main() 88 params->filesystem, params->fstype->name); in main() 182 if (!params->fstype->findstage2(params, &nblk, blocks)) { in main() 190 block = blocks[blk_i].block * (params->fstype->blocksize / 512); in main()
|
| /netbsd/src/sbin/gpt/ |
| D | migrate.c | 122 freebsd_fstype_to_gpt_type(gpt_t gpt, u_int i __unused, u_int fstype) in freebsd_fstype_to_gpt_type() argument 124 switch (fstype) { in freebsd_fstype_to_gpt_type() 136 gpt_warnx(gpt, "Unknown FreeBSD partition (%d)", fstype); in freebsd_fstype_to_gpt_type() 142 netbsd_fstype_to_gpt_type(gpt_t gpt, u_int i, u_int fstype) in netbsd_fstype_to_gpt_type() argument 144 switch (fstype) { in netbsd_fstype_to_gpt_type() 165 "using \"Microsoft Basic Data\"", i, fstypename(fstype)); in netbsd_fstype_to_gpt_type()
|
| /netbsd/src/usr.sbin/installboot/arch/ |
| D | hp300.c | 125 if (strcmp(params->fstype->name, "cd9660") != 0) { in hp300_setboot() 127 params->fstype->name); in hp300_setboot() 151 if (!params->fstype->findstage2(params, &nblk, blocks)) in hp300_setboot() 164 boot_offset = blocks[0].block * params->fstype->blocksize; in hp300_setboot()
|
| /netbsd/src/sys/arch/ews4800mips/stand/common/ |
| D | local.h | 45 enum fstype { enum 63 int fstype(int);
|
| D | diskutil.c | 87 switch (fstype(i)) { in cmd_ls() 126 fstype(int partition) in fstype() function
|
| /netbsd/src/external/cddl/osnet/sys/sys/ |
| D | mount.h | 51 char *fstype; member 61 zmount(const char *spec, const char *dir, int mflag, char *fstype,
|
| D | vfs.h | 113 char *fstype; /* Unused */ member 126 int mount_snapshot(kthread_t *td, vnode_t **vpp, const char *fstype,
|
| /netbsd/src/common/lib/libutil/ |
| D | getfstypename.c | 59 getfstypename(int fstype) in getfstypename() argument 65 switch ((enum fstype_enum)fstype) { in getfstypename()
|
| /netbsd/src/sys/fs/puffs/ |
| D | puffs_vfsops.c | 98 char fstype[_VFS_NAMELEN]; in puffs_vfsop_mount() local 196 (void)strlcpy(fstype, PUFFS_TYPEPREFIX, sizeof(fstype)); in puffs_vfsop_mount() 197 (void)strlcat(fstype, args->pa_typename, sizeof(fstype)); in puffs_vfsop_mount() 205 (void)strlcpy(args->pa_typename, fstype, sizeof(args->pa_typename)); in puffs_vfsop_mount() 208 UIO_SYSSPACE, fstype, mp, curlwp); in puffs_vfsop_mount()
|