Searched refs:geom (Results 1 - 25 of 68) sorted by relevance

123

/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/
H A Dprobe.h30 hfsc_can_use_geom (PedGeometry* geom);
33 hfs_and_wrapper_probe (PedGeometry* geom);
36 hfsplus_probe (PedGeometry* geom);
39 hfs_probe (PedGeometry* geom);
42 hfsx_probe (PedGeometry* geom);
H A Dprobe.c39 hfsc_can_use_geom (PedGeometry* geom) argument
43 dev = geom->dev;
44 PED_ASSERT (geom != NULL, return 0);
64 hfs_and_wrapper_probe (PedGeometry* geom) argument
71 PED_ASSERT (geom != NULL, return NULL);
72 PED_ASSERT (hfsc_can_use_geom (geom), return NULL);
77 if ((geom->length < 5)
78 || (!ped_geometry_read (geom, buf, 2, 1))
86 if (!(geom_ret = ped_geometry_new (geom->dev, geom
102 hfsplus_probe(PedGeometry* geom) argument
172 hfs_probe(PedGeometry* geom) argument
193 hfsx_probe(PedGeometry* geom) argument
[all...]
H A Dhfs.c67 hfs_clobber (PedGeometry* geom) argument
74 return (!!ped_geometry_write (geom, buf, 0, 1)) &
75 (!!ped_geometry_write (geom, buf, 1, 1)) &
76 (!!ped_geometry_write (geom, buf, 2, 1)) &
77 (!!ped_geometry_write (geom, buf, geom->length - 2, 1)) &
78 (!!ped_geometry_write (geom, buf, geom->length - 1, 1)) &
79 (!!ped_geometry_sync (geom));
83 hfs_open (PedGeometry* geom) argument
194 hfs_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
343 hfsplus_clobber(PedGeometry* geom) argument
403 hfsplus_open(PedGeometry* geom) argument
597 hfsplus_volume_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
910 hfsplus_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
1158 PedGeometry* geom = priv_data->plus_geom; local
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/cs/
H A Dgeom.c20 /** \file geom.c */
54 * Initialize the previously allocated PedGeometry \p geom.
57 ped_geometry_init (PedGeometry* geom, const PedDevice* dev, argument
60 PED_ASSERT (geom != NULL, return 0);
63 geom->dev = (PedDevice*) dev;
64 return ped_geometry_set (geom, start, length);
76 PedGeometry* geom; local
80 geom = (PedGeometry*) ped_malloc (sizeof (PedGeometry));
81 if (!geom)
83 if (!ped_geometry_init (geom, de
104 ped_geometry_duplicate(const PedGeometry* geom) argument
140 ped_geometry_destroy(PedGeometry* geom) argument
153 ped_geometry_set(PedGeometry* geom, PedSector start, PedSector length) argument
187 ped_geometry_set_start(PedGeometry* geom, PedSector start) argument
198 ped_geometry_set_end(PedGeometry* geom, PedSector end) argument
267 ped_geometry_test_sector_inside(const PedGeometry* geom, PedSector sector) argument
289 ped_geometry_read(const PedGeometry* geom, void* buffer, PedSector offset, PedSector count) argument
311 ped_geometry_read_alloc(const PedGeometry* geom, void** buffer, PedSector offset, PedSector count) argument
337 ped_geometry_sync(PedGeometry* geom) argument
354 ped_geometry_sync_fast(PedGeometry* geom) argument
368 ped_geometry_write(PedGeometry* geom, const void* buffer, PedSector offset, PedSector count) argument
413 ped_geometry_check(PedGeometry* geom, void* buffer, PedSector buffer_size, PedSector offset, PedSector granularity, PedSector count, PedTimer* timer) argument
[all...]
H A Dnatmath.c341 * geom and satisfies the alignment constraint.
344 _closest_inside_geometry (const PedAlignment* align, const PedGeometry* geom, argument
350 if (ped_alignment_is_aligned (align, geom, sector)
351 && (!geom || ped_geometry_test_sector_inside (geom,
358 if (sector < geom->start)
359 sector += ped_round_up_to (geom->start - sector,
361 if (sector > geom->end)
362 sector -= ped_round_up_to (sector - geom->end,
365 if (!ped_geometry_test_sector_inside (geom, secto
379 ped_alignment_align_up(const PedAlignment* align, const PedGeometry* geom, PedSector sector) argument
407 ped_alignment_align_down(const PedAlignment* align, const PedGeometry* geom, PedSector sector) argument
448 ped_alignment_align_nearest(const PedAlignment* align, const PedGeometry* geom, PedSector sector) argument
464 ped_alignment_is_aligned(const PedAlignment* align, const PedGeometry* geom, PedSector sector) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/include/parted/
H A Dgeom.h25 /** \file geom.h */
45 extern int ped_geometry_init (PedGeometry* geom, const PedDevice* dev,
49 extern PedGeometry* ped_geometry_duplicate (const PedGeometry* geom);
52 extern void ped_geometry_destroy (PedGeometry* geom);
53 extern int ped_geometry_set (PedGeometry* geom, PedSector start,
55 extern int ped_geometry_set_start (PedGeometry* geom, PedSector start);
56 extern int ped_geometry_set_end (PedGeometry* geom, PedSector end);
62 extern int ped_geometry_test_sector_inside (const PedGeometry* geom,
65 extern int ped_geometry_read (const PedGeometry* geom, void* buffer,
67 extern int ped_geometry_read_alloc (const PedGeometry* geom, voi
[all...]
H A Dfilesys.h35 #include <parted/geom.h>
40 PedGeometry* (*probe) (PedGeometry* geom);
41 int (*clobber) (PedGeometry* geom);
43 PedFileSystem* (*open) (PedGeometry* geom);
44 PedFileSystem* (*create) (PedGeometry* geom, PedTimer* timer);
47 PedFileSystem* (*copy) (const PedFileSystem* fs, PedGeometry* geom,
49 int (*resize) (PedFileSystem* fs, PedGeometry* geom, PedTimer* timer);
85 PedGeometry* geom; /**< where the file system actually is */ member in struct:_PedFileSystem
108 extern PedFileSystemType* ped_file_system_probe (PedGeometry* geom);
111 PedGeometry* geom);
[all...]
H A Dconstraint.h26 #include <parted/geom.h>
85 const PedConstraint* constraint, const PedGeometry* geom);
89 const PedGeometry* geom);
95 ped_constraint_exact (const PedGeometry* geom);
H A Dnatmath.h34 #include <parted/geom.h>
75 ped_alignment_align_up (const PedAlignment* align, const PedGeometry* geom,
78 ped_alignment_align_down (const PedAlignment* align, const PedGeometry* geom,
81 ped_alignment_align_nearest (const PedAlignment* align, const PedGeometry* geom,
85 ped_alignment_is_aligned (const PedAlignment* align, const PedGeometry* geom,
/osnet-11/usr/src/lib/libparted/common/libparted/fs/amiga/
H A Dasfs.c37 _asfs_probe_root (PedGeometry *geom, uint32_t *block, int blocksize, PedSector root) { argument
44 if (PED_BE32_TO_CPU (block[2]) * blocksize + geom->start != root) {
51 if (start != geom->start || end != geom->end) return 0;
56 _asfs_probe (PedGeometry* geom) argument
64 PED_ASSERT (geom != NULL, return NULL);
65 PED_ASSERT (geom->dev != NULL, return NULL);
73 if (amiga_find_part(geom, part) != NULL) {
85 root = geom->start;
86 if (!ped_device_read (geom
[all...]
H A Dapfs.c43 _generic_apfs_probe (PedGeometry* geom, uint32_t kind) argument
50 PED_ASSERT (geom != NULL, return NULL);
51 PED_ASSERT (geom->dev != NULL, return NULL);
59 if (amiga_find_part(geom, part) != NULL) {
72 if (!ped_device_read (geom->dev, block, geom->start, blocksize)) {
74 _("%s : Couldn't read boot block %llu\n"), __func__, geom->start);
82 root = geom->start+reserved*blocksize;
83 if (!ped_device_read (geom->dev, block, root, blocksize)) {
90 return ped_geometry_duplicate (geom);
101 _apfs1_probe(PedGeometry* geom) argument
106 _apfs2_probe(PedGeometry* geom) argument
[all...]
H A Daffs.c50 _generic_affs_probe (PedGeometry* geom, uint32_t kind) argument
57 PED_ASSERT (geom != NULL, return NULL);
58 PED_ASSERT (geom->dev != NULL, return NULL);
66 if (amiga_find_part(geom, part) != NULL) {
81 if (!ped_device_read (geom->dev, block, geom->start, blocksize)) {
83 _("%s : Couldn't read boot block %llu\n"), __func__, geom->start);
91 len = geom->length / blocksize - reserved;
93 root = geom->start + (pos + reserved) * blocksize;
97 if (!ped_device_read (geom
114 _affs0_probe(PedGeometry* geom) argument
118 _affs1_probe(PedGeometry* geom) argument
122 _affs2_probe(PedGeometry* geom) argument
126 _affs3_probe(PedGeometry* geom) argument
130 _affs4_probe(PedGeometry* geom) argument
134 _affs5_probe(PedGeometry* geom) argument
138 _affs6_probe(PedGeometry* geom) argument
142 _affs7_probe(PedGeometry* geom) argument
146 _amufs_probe(PedGeometry* geom) argument
150 _amufs0_probe(PedGeometry* geom) argument
154 _amufs1_probe(PedGeometry* geom) argument
158 _amufs2_probe(PedGeometry* geom) argument
162 _amufs3_probe(PedGeometry* geom) argument
166 _amufs4_probe(PedGeometry* geom) argument
170 _amufs5_probe(PedGeometry* geom) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ext2/
H A Dinterface.c32 struct ext2_dev_handle* ext2_make_dev_handle_from_parted_geometry(PedGeometry* geom);
35 _ext2_generic_probe (PedGeometry* geom, int expect_ext_ver) argument
38 if (!ped_geometry_read_alloc(geom, &sb_v, 2, 2))
83 start = geom->start
89 ped_geometry_init (&probe_geom, geom->dev,
94 return ped_geometry_new (geom->dev, geom->start,
106 _ext2_probe (PedGeometry* geom) argument
108 return _ext2_generic_probe (geom, 2);
112 _ext3_probe (PedGeometry* geom) argument
118 _ext4_probe(PedGeometry* geom) argument
125 _ext2_clobber(PedGeometry* geom) argument
145 _ext2_open(PedGeometry* geom) argument
178 _ext2_create(PedGeometry* geom, PedTimer* timer) argument
232 _ext2_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
[all...]
H A Dparted_io.c36 PedGeometry* geom; member in struct:my_cookie
64 return ped_geometry_sync(monster->geom);
71 return ped_geometry_sync(monster->geom);
78 return monster->geom->length >> (monster->logsize - 9);
85 return ped_geometry_read(monster->geom, ptr,
102 return ped_geometry_write(monster->geom, ptr,
108 struct ext2_dev_handle *ext2_make_dev_handle_from_parted_geometry(PedGeometry* geom) argument
122 monster->geom = geom;
134 ped_geometry_destroy(((struct my_cookie *)handle->cookie)->geom);
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ntfs/
H A Dntfs.c50 ntfs_probe (PedGeometry* geom) argument
54 PED_ASSERT(geom != NULL, return 0);
56 if (!ped_geometry_read (geom, buf, 0, 1))
60 return ped_geometry_new (geom->dev, geom->start,
69 ntfs_clobber (PedGeometry* geom) argument
73 PED_ASSERT(geom != NULL, return 0);
76 return ped_geometry_write (geom, buf, 0, 1);
80 ntfs_open (PedGeometry* geom) argument
84 PED_ASSERT(geom !
102 _get_partition_num_by_geom(const PedGeometry* geom) argument
134 _get_part_device_path(const PedGeometry* geom, char *partpath, const int len) argument
197 ntfs_create(PedGeometry* geom, PedTimer* timer) argument
313 ntfs_copy(const PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument
379 ntfs_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/jfs/
H A Djfs.c40 jfs_probe (PedGeometry* geom) argument
48 if (geom->dev->sector_size != PED_SECTOR_SIZE_DEFAULT)
51 if (geom->length < JFS_SUPER_SECTOR + 1)
53 if (!ped_geometry_read (geom, &buf, JFS_SUPER_SECTOR, 1))
60 return ped_geometry_new (geom->dev, geom->start,
69 jfs_clobber (PedGeometry* geom) argument
74 return ped_geometry_write (geom, buf, JFS_SUPER_SECTOR, 1);
/osnet-11/usr/src/lib/libparted/common/libparted/
H A Dfilesys.c187 * @param geom The region to be searched.
193 const PedFileSystemType* fs_type, PedGeometry* geom)
199 PED_ASSERT (geom != NULL, return NULL);
203 if (geom->dev->sector_size != PED_SECTOR_SIZE_DEFAULT)
206 if (!ped_device_open (geom->dev))
208 result = fs_type->ops->probe (geom);
209 ped_device_close (geom->dev);
214 _test_open (PedFileSystemType* fs_type, PedGeometry* geom) argument
219 fs = fs_type->ops->open (geom);
229 _probe_with_open (PedGeometry* geom, in argument
192 ped_file_system_probe_specific( const PedFileSystemType* fs_type, PedGeometry* geom) argument
283 _best_match(const PedGeometry* geom, PedFileSystemType* detected [], const int detected_error [], int detected_count) argument
322 ped_file_system_probe(PedGeometry* geom) argument
371 ped_file_system_clobber(PedGeometry* geom) argument
414 ped_file_system_clobber_exclude(PedGeometry* geom, const PedGeometry* exclude) argument
448 ped_file_system_open(PedGeometry* geom) argument
512 ped_file_system_create(PedGeometry* geom, const PedFileSystemType* type, PedTimer* timer) argument
642 _raw_copy_and_resize(const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
687 ped_file_system_copy(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
766 ped_file_system_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/xfs/
H A Dxfs.c39 xfs_probe (PedGeometry* geom) argument
48 if (geom->length < XFS_SB_DADDR + 1)
50 if (!ped_geometry_read (geom, &buf, XFS_SB_DADDR, 1))
57 return ped_geometry_new (geom->dev, geom->start,
65 return ped_geometry_new (geom->dev, geom->start,
74 xfs_clobber (PedGeometry* geom) argument
79 return ped_geometry_write (geom, buf, XFS_SB_DADDR, 1);
/osnet-11/usr/src/lib/libparted/common/libparted/fs/linux_swap/
H A Dlinux_swap.c77 static PedFileSystem* _swap_v0_open (PedGeometry* geom);
78 static PedFileSystem* _swap_v1_open (PedGeometry* geom);
79 static PedFileSystem* _swap_swsusp_open (PedGeometry* geom);
83 _generic_swap_probe (PedGeometry* geom, int kind) argument
92 if (geom->dev->sector_size != PED_SECTOR_SIZE_DEFAULT)
98 fs = _swap_v0_open(geom);
102 fs = _swap_v1_open(geom);
106 fs = _swap_swsusp_open(geom);
120 length = geom->length;
122 probed_geom = ped_geometry_new (geom
136 _generic_swap_clobber(PedGeometry* geom, int kind) argument
204 swap_alloc(PedGeometry* geom) argument
260 _swap_v0_open(PedGeometry* geom) argument
302 _swap_v1_open(PedGeometry* geom) argument
345 _swap_swsusp_open(PedGeometry* geom) argument
535 swap_create(PedGeometry* geom, PedTimer* timer) argument
554 swap_resize(PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
572 swap_copy(const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
611 _swap_v0_probe(PedGeometry* geom) argument
616 _swap_v1_probe(PedGeometry* geom) argument
621 _swap_swsusp_probe(PedGeometry* geom) argument
626 _swap_v0_clobber(PedGeometry* geom) argument
631 _swap_v1_clobber(PedGeometry* geom) argument
636 _swap_swsusp_clobber(PedGeometry* geom) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/solaris_x86/
H A Dsolaris_x86.c95 solaris_x86_probe(PedGeometry* geom) argument
101 if (geom->length < 5)
103 if (!ped_geometry_read(geom, buf, 1, 1))
114 return ped_geometry_new(geom->dev, geom->start,
123 solaris_x86_clobber(PedGeometry* geom) argument
127 if (!ped_geometry_read(geom, buf, 1, 1))
132 return (ped_geometry_write(geom, buf, 1, 1));
/osnet-11/usr/src/lib/libparted/common/libparted/fs/ufs/
H A Dufs.c179 ufs_probe_sun (PedGeometry* geom) argument
184 if (geom->length < 5)
186 if (!ped_geometry_read (geom, buf, 16, 3))
194 return ped_geometry_new (geom->dev, geom->start,
200 return ped_geometry_new (geom->dev, geom->start,
207 ufs_probe_hp (PedGeometry* geom) argument
214 if (geom->length < 5)
216 if (!ped_geometry_read (geom, bu
247 ufs_clobber(PedGeometry* geom) argument
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/labels/
H A Dloop.c59 PedGeometry* geom; local
61 geom = ped_geometry_new (dev, 0, disk->dev->length);
62 if (!geom)
64 result = ped_file_system_probe (geom) != NULL;
65 ped_geometry_destroy (geom);
104 PedGeometry* geom; local
127 geom = ped_geometry_new (dev, 0, dev->length);
128 if (!geom)
131 fs_type = ped_file_system_probe (geom);
136 fs_type, geom
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/fat/
H A Dfat.c27 fat_alloc (const PedGeometry* geom) argument
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) argument
119 fs = fat_alloc (geom);
124 if (!fat_boot_sector_read (&fs_info->boot_sector, geom))
130 result = ped_geometry_new (geom->dev, geom
143 fat_probe_fat16(PedGeometry* geom) argument
157 fat_probe_fat32(PedGeometry* geom) argument
172 fat_clobber(PedGeometry* geom) argument
213 fat_open(PedGeometry* geom) argument
280 fat_create(PedGeometry* geom, FatType fat_type, PedTimer* timer) argument
414 fat_create_fat16(PedGeometry* geom, PedTimer* timer) argument
420 fat_create_fat32(PedGeometry* geom, PedTimer* timer) argument
438 fat_copy(const PedFileSystem* fs, PedGeometry* geom, PedTimer* timer) argument
592 PedGeometry geom; local
[all...]
/osnet-11/usr/src/grub/grub-0.97/lib/
H A Ddevice.c140 get_drive_geometry (struct geometry *geom, char **map, int drive) argument
144 if (geom->flags == -1)
150 fd = geom->flags;
153 geom->sector_size = SECTOR_SIZE;
168 geom->cylinders = hdg.cylinders;
169 geom->heads = hdg.heads;
170 geom->sectors = hdg.sectors;
171 geom->total_sectors = nr;
191 geom->total_sectors = media_size / sector_size;
194 geom
[all...]
/osnet-11/usr/src/lib/libparted/common/libparted/fs/reiserfs/
H A Dreiserfs.c198 static PedGeometry *reiserfs_probe(PedGeometry *geom) argument
203 PED_ASSERT(geom != NULL, return NULL);
206 if (reiserfs_super_offset[i] >= geom->length)
208 if (!ped_geometry_read (geom, &sb, reiserfs_super_offset[i], 1))
224 return ped_geometry_new(geom->dev, geom->start,
232 static int reiserfs_clobber(PedGeometry *geom) argument
237 PED_ASSERT(geom != NULL, return 0);
241 if (reiserfs_super_offset[i] >= geom->length)
244 (geom, bu
253 reiserfs_open(PedGeometry *geom) argument
295 reiserfs_create(PedGeometry *geom, PedTimer *timer) argument
456 reiserfs_resize(PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument
576 reiserfs_copy(const PedFileSystem *fs, PedGeometry *geom, PedTimer *timer) argument
[all...]

Completed in 91 milliseconds

123