Lines Matching defs:geom

27 fat_alloc (const PedGeometry* geom)
39 fs->geom = ped_geometry_duplicate (geom);
40 if (!fs->geom)
89 ped_geometry_destroy (fs->geom);
113 fat_probe (PedGeometry* geom, FatType* fat_type)
119 fs = fat_alloc (geom);
124 if (!fat_boot_sector_read (&fs_info->boot_sector, geom))
130 result = ped_geometry_new (geom->dev, geom->start,
143 fat_probe_fat16 (PedGeometry* geom)
146 PedGeometry* probed_geom = fat_probe (geom, &fat_type);
157 fat_probe_fat32 (PedGeometry* geom)
160 PedGeometry* probed_geom = fat_probe (geom, &fat_type);
172 fat_clobber (PedGeometry* geom)
176 if (!fat_boot_sector_read (&boot_sector, geom))
186 return ped_geometry_write (geom, &boot_sector, 0, 1);
213 fat_open (PedGeometry* geom)
218 fs = fat_alloc (geom);
223 if (!fat_boot_sector_read (&fs_info->boot_sector, geom))
259 return ped_geometry_write (fs->geom, fs_info->buffer,
280 fat_create (PedGeometry* geom, FatType fat_type, PedTimer* timer)
286 fs = fat_alloc (geom);
292 fs_info->sectors_per_track = geom->dev->bios_geom.sectors;
293 fs_info->heads = geom->dev->bios_geom.heads;
294 fs_info->sector_count = fs->geom->length;
302 if (!fat_calc_sizes (fs->geom->length, 0,
414 fat_create_fat16 (PedGeometry* geom, PedTimer* timer)
416 return fat_create (geom, FAT_TYPE_FAT16, timer);
420 fat_create_fat32 (PedGeometry* geom, PedTimer* timer)
422 return fat_create (geom, FAT_TYPE_FAT32, timer);
438 fat_copy (const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer)
442 new_fs = ped_file_system_open (fs->geom);
445 if (!ped_file_system_resize (new_fs, geom, timer))
507 if (!fat_calc_sizes (fs->geom->length,
592 PedGeometry geom;
597 ped_geometry_init (&geom, fs->geom->dev, fs->geom->start, length);
600 &geom,
614 &geom,
637 PedSector max_length = fs->geom->length;
680 return fat_get_copy_constraint (fs, fs->geom->dev);