Lines Matching defs:fs_type

47 ped_file_system_type_register (PedFileSystemType* fs_type)
49 PED_ASSERT (fs_type != NULL, return);
50 PED_ASSERT (fs_type->ops != NULL, return);
51 PED_ASSERT (fs_type->name != NULL, return);
53 fs_type->next = fs_types;
54 fs_types = fs_type;
58 ped_file_system_type_unregister (PedFileSystemType* fs_type)
64 PED_ASSERT (fs_type != NULL, return);
66 for (walk = fs_types; walk && walk != fs_type;
71 ((struct _PedFileSystemType*) last)->next = fs_type->next;
73 fs_types = fs_type->next;
77 ped_file_system_alias_register (PedFileSystemType* fs_type, const char* alias,
82 PED_ASSERT (fs_type != NULL, return);
90 fs_alias->fs_type = fs_type;
97 ped_file_system_alias_unregister (PedFileSystemType* fs_type,
104 PED_ASSERT (fs_type != NULL, return);
108 if (walk->fs_type == fs_type && !strcmp (walk->alias, alias))
149 return alias_walk->fs_type;
156 * Get the next PedFileSystemType after @p fs_type.
158 * @return @c NULL if @p fs_type is the last item in the list.
161 ped_file_system_type_get_next (const PedFileSystemType* fs_type)
163 if (fs_type)
164 return fs_type->next;
186 * @param fs_type The file system type to probe for.
189 * @return @p NULL if @p fs_type file system wasn't detected
193 const PedFileSystemType* fs_type, PedGeometry* geom)
197 PED_ASSERT (fs_type != NULL, return NULL);
198 PED_ASSERT (fs_type->ops->probe != NULL, return NULL);
208 result = fs_type->ops->probe (geom);
214 _test_open (PedFileSystemType* fs_type, PedGeometry* geom)
219 fs = fs_type->ops->open (geom);
221 fs_type->ops->close (fs);
373 PedFileSystemType* fs_type = NULL;
381 while ((fs_type = ped_file_system_type_get_next (fs_type))) {
384 if (!fs_type->ops->clobber)
387 probed = ped_file_system_probe_specific (fs_type, geom);
394 if (fs_type->ops->clobber && !fs_type->ops->clobber (geom)) {
791 * of a particular type \p fs_type created on device \p dev with
798 ped_file_system_get_create_constraint (const PedFileSystemType* fs_type,
801 PED_ASSERT (fs_type != NULL, return NULL);
804 if (!fs_type->ops->get_create_constraint)
806 return fs_type->ops->get_create_constraint (dev);