/netbsd/usr.sbin/installboot/ |
H A D | ffs.c | 139 assert(params->fstype != NULL); in ffs_find_disk_blocks_ufs1() 149 if (params->fstype->needswap) 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() 276 assert(params->fstype != NULL); in ffs_find_disk_blocks_ufs2() 286 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs2() 304 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs2() 337 if (params->fstype->needswap) in ffs_find_disk_blocks_ufs2() 401 assert(params->fstype != NULL); in ffs_findstage2_ino() 496 assert(params->fstype != NULL); in ffs_match_common() [all …]
|
H A D | fstypes.c | 70 assert(params->fstype != NULL); in hardcode_stage2() 71 assert(params->fstype->blocksize != 0); in hardcode_stage2() 82 nblk = s2sb.st_size / params->fstype->blocksize; in hardcode_stage2() 83 if (s2sb.st_size % params->fstype->blocksize != 0) in hardcode_stage2() 87 params->stage2, s2sb.st_size, params->fstype->blocksize, nblk); in hardcode_stage2() 98 i * (params->fstype->blocksize / params->sectorsize); in hardcode_stage2() 99 blocks[i].blocksize = params->fstype->blocksize; in hardcode_stage2() 112 assert(params->fstype != NULL); in raw_match() 114 params->fstype->blocksize = 8192; // XXX: hardcode in raw_match()
|
H A D | installboot.c | 288 if (params->fstype != NULL) { in main() 289 if (! params->fstype->match(params)) in main() 294 params->fstype = &fstypes[0]; 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() 337 params->fstype->needswap); in main() 587 assert(fstype != NULL); in getfstype() [all …]
|
H A 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()
|
/netbsd/usr.sbin/makefs/ |
H A D | makefs.c | 100 fstype_t *fstype; in main() local 117 if (fstype->prepare_options) in main() 118 fstype->prepare_options(&fsoptions); in main() 150 usage(fstype, &fsoptions); in main() 224 usage(fstype, &fsoptions); in main() 246 if (fstype->cleanup_options) in main() 247 fstype->cleanup_options(&fsoptions); in main() 251 fstype->prepare_options(&fsoptions); in main() 270 usage(fstype, &fsoptions); in main() 285 usage(fstype, &fsoptions); in main() [all …]
|
/netbsd/sys/arch/macppc/macppc/ |
H A D | disksubr.c | 175 *fstype = FS_OTHER; in whichType() 203 *fstype = FS_BSDFFS; 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() 234 *fstype = FS_HFS; in whichType() 240 *fstype = FS_OTHER; in whichType() 243 *fstype = FS_OTHER; in whichType() [all …]
|
/netbsd/sys/arch/i386/stand/efiboot/ |
H A D | efidisk.c | 245 if (part[i].fstype == FS_UNUSED) in efi_disk_show() 247 if (part[i].fstype == FS_RAID) { in efi_disk_show() 261 else if (part[i].fstype < FSMAXTYPES) in efi_disk_show() 262 printf("%s", fstypenames[part[i].fstype]); in efi_disk_show() 264 printf("%d", part[i].fstype); in efi_disk_show() 302 if (part[j].fstype == FS_UNUSED) in efi_disk_show() 304 if (part[j].fstype == FS_RAID) /* raid in raid? */ in efi_disk_show() 317 else if (part[j].fstype < FSMAXTYPES) in efi_disk_show() 319 fstypenames[part[j].fstype]); in efi_disk_show() 321 printf("%d", part[j].fstype); in efi_disk_show() [all …]
|
/netbsd/sys/stand/efiboot/ |
H A D | efiblock.c | 365 uint8_t fstype; member 381 uint8_t fstype = FS_UNUSED; in efi_block_find_partitions_gpt_entry() local 389 fstype = gpt_guid_to_str[n].fstype; in efi_block_find_partitions_gpt_entry() 392 if (fstype == FS_UNUSED) in efi_block_find_partitions_gpt_entry() 399 bpart->gpt.fstype = fstype; in efi_block_find_partitions_gpt_entry() 401 if (fstype == FS_RAID) { in efi_block_find_partitions_gpt_entry() 524 uint8_t fstype = FS_UNUSED; in efi_block_probe() local 530 fstype = bpart->gpt.fstype; in efi_block_probe() 533 fstype = FS_ISO9660; in efi_block_probe() 536 if (fstype == FS_BSDFFS || fstype == FS_ISO9660 || fstype == FS_RAID) { in efi_block_probe() [all …]
|
/netbsd/sys/arch/ofppc/stand/ofwboot/ |
H A 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/sys/arch/amiga/amiga/ |
H A D | disksubr.c | 350 adt.fstype = FS_UNUSED; in readdisklabel() 465 adt.fstype = FS_UNUSED; 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() 618 adt.fstype = FS_EX2FS; in getadostype() 623 adt.fstype = FS_RAID; in getadostype() [all …]
|
/netbsd/sys/arch/macppc/stand/ofwboot/ |
H A 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/sys/arch/i386/stand/lib/ |
H A D | biosdisk.c | 424 d->part[j].fstype = FS_BSDFFS; in check_gpt() 426 d->part[j].fstype = FS_BSDLFS; in check_gpt() 428 d->part[j].fstype = FS_RAID; in check_gpt() 430 d->part[j].fstype = FS_SWAP; in check_gpt() 432 d->part[j].fstype = FS_CCD; in check_gpt() 434 d->part[j].fstype = FS_CGD; in check_gpt() 436 d->part[j].fstype = FS_OTHER; in check_gpt() 643 d->part[0].fstype = FS_ISO9660; in check_cd9660() 902 if (d->part[part].fstype == FS_RAID) in biosdisk_probe() 1060 if (d->part[i].fstype == FS_UNUSED) in biosdisk_findpartition() [all …]
|
/netbsd/external/bsd/am-utils/dist/amd/ |
H A 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()
|
H A D | sun_map.h | 70 char *fstype; /* filesystem type */ member 79 char *fstype; /* filesystem type */ member
|
/netbsd/sys/arch/ofppc/ofppc/ |
H A D | disksubr.c | 425 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() 653 adt.fstype = FS_RAID; in getadostype() 657 adt.fstype = FS_MSDOS; in getadostype() [all …]
|
/netbsd/usr.sbin/autofs/ |
H A D | automountd.c | 173 char *key, *options, *fstype, *nobrowse, *retrycnt, *tmp; in handle_request() local 318 fstype = pick_option("fstype=", &options); in handle_request() 319 if (fstype == NULL) { in handle_request() 322 fstype = checked_strdup("nfs"); in handle_request() 326 if (strcmp(fstype, "nfs") == 0) { in handle_request() 347 assert(!strcmp(fstype, "nfs")); in handle_request() 351 f = auto_popen("mount", "-t", fstype, "-o", options, in handle_request()
|
/netbsd/external/cddl/osnet/lib/libzfs/ |
H A 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/usr.sbin/sysinst/ |
H A D | gpt.c | 93 uint fstype; member 108 { .name = "bios", .fstype = FS_MSDOS, .ptype = PT_FAT, 113 { .name = "ccd", .fstype = FS_CCD, .ptype = PT_root }, 114 { .name = "cgd", .fstype = FS_CGD, .ptype = PT_root }, 768 t->default_fs_type = gpt_fs_types[i].fstype; in gpt_match_ptype() 924 if (fstype == gpt_fs_types[i].fstype && in gpt_get_fs_part_type() 930 if (fstype == gpt_fs_types[i].fstype) in gpt_get_fs_part_type() 938 unsigned *fstype, unsigned *fs_sub_type) in gpt_get_default_fstype() argument 946 *fstype = gtype->default_fs_type; in gpt_get_default_fstype() 1318 bsdlabel_fstype_to_str(uint8_t fstype) in bsdlabel_fstype_to_str() argument [all …]
|
/netbsd/sys/arch/x68k/x68k/ |
H A 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/sbin/gpt/ |
H A D | migrate.c | 122 freebsd_fstype_to_gpt_type(gpt_t gpt, u_int i, 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/usr.sbin/fstyp/ |
H A D | hammer.c | 51 static hammer_uuid_t fsid, fstype; in test_ondisk() local 69 memcpy(&fstype, &ondisk->vol_fstype, sizeof(fstype)); in test_ondisk() 76 if (!uuid_equal(&ondisk->vol_fstype, &fstype, NULL)) in test_ondisk()
|
H A D | hammer2.c | 90 static uuid_t fsid, fstype; in test_voldata() local 117 memcpy(&fstype, &voldata->fstype, sizeof(fstype)); in test_voldata() 127 if (!uuid_equal(&fstype, &voldata->fstype, NULL)) { in test_voldata()
|
/netbsd/sys/arch/ews4800mips/stand/common/ |
H A D | local.h | 45 enum fstype { enum 63 int fstype(int);
|
/netbsd/external/cddl/osnet/sys/sys/ |
H A D | mount.h | 51 char *fstype; member 61 zmount(const char *spec, const char *dir, int mflag, char *fstype,
|
/netbsd/distrib/cdrom/macppc_installboot/ |
H A D | cd9660.c | 68 assert(params->fstype != NULL); in cd9660_match() 97 params->fstype->blocksize = blocksize; in cd9660_match() 98 params->fstype->needswap = 0; in cd9660_match()
|