Home
last modified time | relevance | path

Searched refs:fs_type (Results 1 – 23 of 23) sorted by relevance

/onnv-gate/usr/src/lib/libparted/common/libparted/
H A Dfilesys.c46 ped_file_system_type_register (PedFileSystemType* fs_type) in ped_file_system_type_register() argument
48 PED_ASSERT (fs_type != NULL, return); in ped_file_system_type_register()
49 PED_ASSERT (fs_type->ops != NULL, return); in ped_file_system_type_register()
50 PED_ASSERT (fs_type->name != NULL, return); in ped_file_system_type_register()
53 ((struct _PedFileSystemType*) fs_type)->next = fs_types; in ped_file_system_type_register()
54 fs_types = (struct _PedFileSystemType*) fs_type; in ped_file_system_type_register()
58 ped_file_system_type_unregister (PedFileSystemType* fs_type) in ped_file_system_type_unregister() argument
64 PED_ASSERT (fs_type != NULL, return); in ped_file_system_type_unregister()
66 for (walk = fs_types; walk && walk != fs_type; in ped_file_system_type_unregister()
71 ((struct _PedFileSystemType*) last)->next = fs_type->next; in ped_file_system_type_unregister()
[all …]
H A Ddisk.c574 const PedFileSystemType* fs_type = walk->fs_type; in ped_disk_check() local
579 if (!ped_partition_is_active (walk) || !fs_type) in ped_disk_check()
582 geom = ped_file_system_probe_specific (fs_type, &walk->geom); in ped_disk_check()
975 const PedFileSystemType* fs_type, in _ped_partition_alloc() argument
996 part->fs_type = fs_type; in _ped_partition_alloc()
1056 const PedFileSystemType* fs_type, PedSector start, in ped_partition_new() argument
1080 part = disk->type->ops->partition_new (disk, type, fs_type, start, end); in ped_partition_new()
1084 if (fs_type || part->type == PED_PARTITION_EXTENDED) { in ped_partition_new()
1085 if (!ped_partition_set_system (part, fs_type)) in ped_partition_new()
1218 ped_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in ped_partition_set_system() argument
[all …]
/onnv-gate/usr/src/lib/libparted/common/libparted/labels/
H A Dloop.c124 PedFileSystemType* fs_type; in loop_read() local
143 fs_type = ped_file_system_probe (geom); in loop_read()
144 if (!fs_type) in loop_read()
147 part = ped_partition_new (disk, 0, fs_type, geom->start, geom->end); in loop_read()
151 part->fs_type = fs_type; in loop_read()
189 const PedFileSystemType* fs_type, in loop_partition_new() argument
194 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in loop_partition_new()
206 result = ped_partition_new (part->disk, part->type, part->fs_type, in loop_partition_duplicate()
219 loop_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in loop_partition_set_system() argument
221 part->fs_type = fs_type; in loop_partition_set_system()
H A Dpc98.c421 part->fs_type = ped_file_system_probe (&part->geom); in read_table()
466 if (!strlen (name) && part->fs_type) in fill_raw_part()
467 name = part->fs_type->name; in fill_raw_part()
549 const PedFileSystemType* fs_type, PedSector start, PedSector end) in pc98_partition_new() argument
554 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in pc98_partition_new()
587 part->fs_type, part->geom.start, in pc98_partition_duplicate()
612 pc98_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in pc98_partition_set_system() argument
616 part->fs_type = fs_type; in pc98_partition_set_system()
619 if (fs_type) { in pc98_partition_set_system()
620 if (!strcmp (fs_type->name, "fat16")) { in pc98_partition_set_system()
[all …]
H A Drdb.c558 part->fs_type = ped_file_system_probe (&part->geom); in amiga_read()
787 const PedFileSystemType* fs_type, in amiga_partition_new() argument
803 if (!(part = _ped_partition_alloc (disk, part_type, fs_type, start, end))) in amiga_partition_new()
863 part->fs_type, part->geom.start, in amiga_partition_duplicate()
888 const PedFileSystemType* fs_type) in amiga_partition_set_system() argument
896 part->fs_type = fs_type; in amiga_partition_set_system()
898 if (!fs_type) in amiga_partition_set_system()
900 else if (!strcmp (fs_type->name, "ext2")) in amiga_partition_set_system()
902 else if (!strcmp (fs_type->name, "ext3")) in amiga_partition_set_system()
904 else if (!strcmp (fs_type->name, "linux-swap")) in amiga_partition_set_system()
[all …]
H A Dsun.c365 part->fs_type = ped_file_system_probe (&part->geom); in sun_read()
479 const PedFileSystemType* fs_type, in sun_partition_new() argument
485 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in sun_partition_new()
519 part->fs_type, part->geom.start, in sun_partition_duplicate()
545 sun_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in sun_partition_set_system() argument
549 part->fs_type = fs_type; in sun_partition_set_system()
565 if (fs_type) { in sun_partition_set_system()
566 if (!strcmp (fs_type->name, "linux-swap")) in sun_partition_set_system()
568 else if (!strcmp (fs_type->name, "ufs")) in sun_partition_set_system()
591 return ped_partition_set_system (part, part->fs_type); in sun_partition_set_flag()
[all …]
H A Dbsd.c313 part->fs_type = ped_file_system_probe (&part->geom); in bsd_read()
397 const PedFileSystemType* fs_type, in bsd_partition_new() argument
403 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in bsd_partition_new()
433 part->fs_type, part->geom.start, in bsd_partition_duplicate()
456 bsd_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in bsd_partition_set_system() argument
460 part->fs_type = fs_type; in bsd_partition_set_system()
462 if (!fs_type) in bsd_partition_set_system()
464 else if (!strcmp (fs_type->name, "linux-swap")) in bsd_partition_set_system()
H A Dmac.c820 part->fs_type = ped_file_system_probe (&part->geom); in mac_read()
1132 const PedFileSystemType* fs_type, PedSector start, PedSector end) in mac_partition_new() argument
1137 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in mac_partition_new()
1169 part->fs_type, part->geom.start, in mac_partition_duplicate()
1194 mac_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in mac_partition_set_system() argument
1198 part->fs_type = fs_type; in mac_partition_set_system()
1200 if (fs_type && !strcmp (fs_type->name, "linux-swap")) in mac_partition_set_system()
1209 if (fs_type && (!strcmp (fs_type->name, "hfs") in mac_partition_set_system()
1210 || !strcmp (fs_type->name, "hfs+"))) { in mac_partition_set_system()
1213 } else if (fs_type && !strcmp (fs_type->name, "hfsx")) { in mac_partition_set_system()
[all …]
H A Dgpt.c923 part->fs_type = ped_file_system_probe (&part->geom); in gpt_read()
1142 PedPartitionType part_type, const PedFileSystemType* fs_type, in gpt_partition_new() argument
1148 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in gpt_partition_new()
1185 result = _ped_partition_alloc (part->disk, part->type, part->fs_type, in gpt_partition_duplicate()
1222 gpt_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in gpt_partition_set_system() argument
1228 part->fs_type = fs_type; in gpt_partition_set_system()
1251 if (fs_type) { in gpt_partition_set_system()
1252 if (strncmp (fs_type->name, "fat", 3) == 0 in gpt_partition_set_system()
1253 || strcmp (fs_type->name, "ntfs") == 0) { in gpt_partition_set_system()
1257 if (strncmp (fs_type->name, "hfs", 3) == 0) { in gpt_partition_set_system()
[all …]
H A Ddos.c474 if (!part->fs_type) in probe_filesystem_for_geom()
479 if (!strcmp(ms_types[i], part->fs_type->name)) in probe_filesystem_for_geom()
916 part->fs_type = ped_file_system_probe (&part->geom); in read_table()
1185 const PedFileSystemType* fs_type, in msdos_partition_new() argument
1191 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in msdos_partition_new()
1228 new_part = ped_partition_new (part->disk, part->type, part->fs_type, in msdos_partition_duplicate()
1275 const PedFileSystemType* fs_type) in msdos_partition_set_system() argument
1279 part->fs_type = fs_type; in msdos_partition_set_system()
1282 && fs_type in msdos_partition_set_system()
1283 && strncmp (fs_type->name, "fat", 3) != 0 in msdos_partition_set_system()
[all …]
H A Ddvh.c339 part->fs_type = ped_file_system_probe (&part->geom); in dvh_read()
385 part->fs_type = ped_file_system_probe (&part->geom); in dvh_read()
503 const PedFileSystemType* fs_type, in dvh_partition_new() argument
509 part = _ped_partition_alloc (disk, part_type, fs_type, start, end); in dvh_partition_new()
543 result = _ped_partition_alloc (part->disk, part->type, part->fs_type, in dvh_partition_duplicate()
581 dvh_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in dvh_partition_set_system() argument
585 part->fs_type = fs_type; in dvh_partition_set_system()
596 if (fs_type && !strcmp (fs_type->name, "xfs")) in dvh_partition_set_system()
H A Daix.c155 const PedFileSystemType* fs_type, in aix_partition_new() argument
184 aix_partition_set_system (PedPartition* part, const PedFileSystemType* fs_type) in aix_partition_set_system() argument
/onnv-gate/usr/src/cmd/parted/
H A Dparted.c693 const PedFileSystemType* fs_type = ped_file_system_type_get ("ext2"); in do_mkpart() local
724 fs_type = NULL; in do_mkpart()
727 &fs_type)) in do_mkpart()
739 part = ped_partition_new (disk, part_type, fs_type, start, end); in do_mkpart()
799 if (!ped_partition_set_system (part, fs_type)) in do_mkpart()
866 const PedFileSystemType* fs_type = ped_file_system_type_get ("ext2"); in do_mkpartfs() local
901 if (!command_line_get_fs_type (_("File system type?"), &fs_type)) in do_mkpartfs()
910 part = ped_partition_new (disk, part_type, fs_type, start, end); in do_mkpartfs()
971 fs = ped_file_system_create (&part->geom, fs_type, g_timer); in do_mkpartfs()
976 if (!ped_partition_set_system (part, fs_type)) in do_mkpartfs()
[all …]
H A Dui.c1056 PedFileSystemType* fs_type; in command_line_get_fs_type() local
1067 fs_type = ped_file_system_type_get (fs_type_name); in command_line_get_fs_type()
1068 if (!fs_type) { in command_line_get_fs_type()
1076 *value = fs_type; in command_line_get_fs_type()
/onnv-gate/usr/src/lib/libparted/common/include/parted/
H A Ddisk.h133 const PedFileSystemType* fs_type; member
186 const PedFileSystemType* fs_type,
192 const PedFileSystemType* fs_type);
270 const PedFileSystemType* fs_type,
282 const PedFileSystemType* fs_type);
336 const PedFileSystemType* fs_type,
H A Dfilesys.h87 ped_file_system_type_get_next (const PedFileSystemType* fs_type);
91 const PedFileSystemType* fs_type,
108 const PedFileSystemType* fs_type, const PedDevice* dev);
/onnv-gate/usr/src/lib/libbc/libc/gen/common/
H A Dfstab.c63 fs->fs_type = mnt->mnt_opts; in fstabscan()
145 if (strcmp(fs->fs_type, type) == 0) in getfstype()
/onnv-gate/usr/src/lib/libbc/inc/include/
H A Dfstab.h51 char *fs_type; /* FSTAB_* */ member
/onnv-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_config.c594 fsip->fs_type = ndmp_malloc(MNTTYPE_LEN); in ndmpd_config_get_fs_info_v3()
595 if (!fsip->fs_logical_device || !fsip->fs_type) { in ndmpd_config_get_fs_info_v3()
598 free(fsip->fs_type); in ndmpd_config_get_fs_info_v3()
601 (void) snprintf(fsip->fs_type, MNTTYPE_LEN, "%s", in ndmpd_config_get_fs_info_v3()
642 NDMP_SETENV(envp, "TYPE", fsip->fs_type); in ndmpd_config_get_fs_info_v3()
668 free(fsip->fs_type); in ndmpd_config_get_fs_info_v3()
H A Dndmpd_fhistory.c473 file_name_entry->fs_type = NDMP_FS_UNIX; in ndmpd_api_file_history_file_v3()
483 file_stat_entry->fs_type = NDMP_FS_UNIX; in ndmpd_api_file_history_file_v3()
587 dir_name_entry->fs_type = NDMP_FS_UNIX; in ndmpd_api_file_history_dir_v3()
698 file_stat_entry->fs_type = NDMP_FS_UNIX; in ndmpd_api_file_history_node_v3()
H A Dndmp.x507 string fs_type<>;
1810 union ndmp_file_name_v3 switch (ndmp_fs_type fs_type)
1828 ndmp_fs_type fs_type; member
/onnv-gate/usr/src/cmd/ntfsprogs/
H A Dntfsclone.c1538 long fs_type = 0; /* Unknown filesystem type */ in set_filesize()
1544 fs_type = opt.stfs.f_type; in set_filesize()
1546 if (fs_type == 0x52654973) in set_filesize()
1551 else if (fs_type == 0x517b) in set_filesize()
1559 if (fs_type) in set_filesize()
1561 (unsigned long)fs_type); in set_filesize()
1565 if (fs_type == 0x517b) { in set_filesize()
/onnv-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dvfs.c530 const struct fs_type { struct
548 #define NUM_FS_TYPES (sizeof (fs_types) / sizeof (struct fs_type)) argument