/netbsd-current/sbin/gpt/ |
H A D | gpt.h | 65 typedef struct gpt *gpt_t; typedef in typeref:struct:gpt 70 int (*fptr)(gpt_t, int, char *[]); 77 void gpt_close(gpt_t); 78 int gpt_gpt(gpt_t, off_t, int); 79 gpt_t gpt_open(const char *, int, int, off_t, u_int, time_t); 91 void* gpt_read(gpt_t, off_t, size_t); 92 off_t gpt_last(gpt_t); 93 off_t gpt_create(gpt_t, off_t, u_int, int); 94 int gpt_write(gpt_t, map_t); 95 int gpt_write_crc(gpt_t, map_ [all...] |
H A D | remove.c | 52 static int cmd_remove(gpt_t, int, char *[]); 76 cmd_remove(gpt_t gpt, int argc, char *argv[])
|
H A D | header.c | 52 static int cmd_header(gpt_t, int, char *[]); 68 header(gpt_t gpt) 102 cmd_header(gpt_t gpt, int argc, char *argv[])
|
H A D | destroy.c | 52 static int cmd_destroy(gpt_t, int, char *[]); 69 destroy(gpt_t gpt, int force, int recoverable) 115 cmd_destroy(gpt_t gpt, int argc, char *argv[])
|
H A D | create.c | 55 static int cmd_create(gpt_t, int, char *[]); 72 create(gpt_t gpt, u_int parts, int force, int primary_only, int active) 125 cmd_create(gpt_t gpt, int argc, char *argv[])
|
H A D | label.c | 53 static int cmd_label(gpt_t, int, char *[]); 78 name_from_file(gpt_t gpt, void *v) 124 cmd_label(gpt_t gpt, int argc, char *argv[])
|
H A D | set.c | 52 static int cmd_set(gpt_t, int, char *[]); 70 cmd_set(gpt_t gpt, int argc, char *argv[])
|
H A D | unset.c | 52 static int cmd_unset(gpt_t, int, char *[]); 70 cmd_unset(gpt_t gpt, int argc, char *argv[])
|
H A D | type.c | 52 static int cmd_type(gpt_t, int, char *[]); 77 cmd_type(gpt_t gpt, int argc, char *argv[])
|
H A D | uuid.c | 52 static int cmd_uuid(gpt_t, int, char *[]); 89 cmd_uuid(gpt_t gpt, int argc, char *argv[])
|
H A D | resize.c | 53 static int cmd_resize(gpt_t, int, char *[]); 69 resize(gpt_t gpt, u_int entry, off_t alignment, off_t sectors, off_t size, bool quiet) 143 cmd_resize(gpt_t gpt, int argc, char *argv[])
|
H A D | gpt.c | 247 gpt_read(gpt_t gpt, off_t lba, size_t count) 267 gpt_write(gpt_t gpt, map_t map) 282 gpt_mbr(gpt_t gpt, off_t lba, unsigned int *next_index, off_t ext_offset) 377 gpt_gpt(gpt_t gpt, off_t lba, int found) 479 gpt_t 485 gpt_t gpt; 613 gpt_close(gpt_t gpt) 641 gpt_vwarnx(gpt_t gpt, const char *fmt, va_list ap, const char *e) 656 gpt_warnx(gpt_t gpt, const char *fmt, ...) 666 gpt_warn(gpt_t gp [all...] |
H A D | biosboot.c | 72 static int cmd_biosboot(gpt_t, int, char *[]); 92 read_boot(gpt_t gpt, const char *bootpath) 151 set_bootable(gpt_t gpt, map_t map, map_t tbl, unsigned int i) 170 biosboot(gpt_t gpt, daddr_t start, uint64_t size, u_int entry, uint8_t *label, 263 cmd_biosboot(gpt_t gpt, int argc, char *argv[]) 269 gpt_t ngpt = gpt;
|
H A D | backup.c | 60 static int cmd_backup(gpt_t, int, char *[]); 74 store_mbr(gpt_t gpt, unsigned int i, const struct mbr *mbr, 123 store_gpt(gpt_t gpt, const struct gpt_hdr *hdr, prop_dictionary_t *type_dict) 144 store_tbl(gpt_t gpt, const map_t m, prop_dictionary_t *type_dict) 201 backup(gpt_t gpt, const char *outfile) 280 cmd_backup(gpt_t gpt, int argc, char *argv[])
|
H A D | migrate.c | 81 static int cmd_migrate(gpt_t, int, char *[]); 122 freebsd_fstype_to_gpt_type(gpt_t gpt, u_int i, u_int fstype) 142 netbsd_fstype_to_gpt_type(gpt_t gpt, u_int i, u_int fstype) 171 migrate_disklabel(gpt_t gpt, off_t start, struct gpt_ent *ent, 172 gpt_type_t (*convert)(gpt_t, u_int, u_int)) 236 migrate(gpt_t gpt, u_int parts, int force, int slice, int active) 343 cmd_migrate(gpt_t gpt, int argc, char *argv[])
|
H A D | recover.c | 52 static int cmd_recover(gpt_t, int, char *[]); 68 recover_gpt_hdr(gpt_t gpt, int type, off_t last) 115 recover_gpt_tbl(gpt_t gpt, int type, off_t start) 152 recover(gpt_t gpt) 233 cmd_recover(gpt_t gpt, int argc, char *argv[])
|
H A D | add.c | 54 static int cmd_add(gpt_t, int, char *[]); 84 add(gpt_t gpt, off_t alignment, off_t block, off_t sectors, off_t size, 157 cmd_add(gpt_t gpt, int argc, char *argv[])
|
H A D | map.c | 97 map_add(gpt_t gpt, off_t start, off_t size, int type, void *data, int alloc) 203 map_alloc(gpt_t gpt, off_t start, off_t size, off_t alignment) 249 map_resize(gpt_t gpt, map_t m, off_t size, off_t alignment) 360 map_find(gpt_t gpt, int type) 371 map_first(gpt_t gpt) 377 map_last(gpt_t gpt) 388 map_free(gpt_t gpt, off_t start, off_t size) 404 map_init(gpt_t gpt, off_t size)
|
H A D | show.c | 54 static int cmd_show(gpt_t, int, char *[]); 162 show(gpt_t gpt, int xshow) 208 show_one(gpt_t gpt, unsigned int entry) 253 show_all(gpt_t gpt) 333 cmd_show(gpt_t gpt, int argc, char *argv[])
|
H A D | resizedisk.c | 55 static int cmd_resizedisk(gpt_t, int, char *[]); 82 resizedisk(gpt_t gpt, off_t sector, off_t size, bool quiet) 236 cmd_resizedisk(gpt_t gpt, int argc, char *argv[])
|
H A D | restore.c | 55 static int cmd_restore(gpt_t, int, char *[]); 76 restore_mbr(gpt_t gpt, struct mbr *mbr, prop_dictionary_t mbr_dict, off_t last) 128 restore_ent(gpt_t gpt, prop_dictionary_t gpt_dict, void *secbuf, u_int gpt_size, 172 restore(gpt_t gpt, const char *infile, int force) 388 cmd_restore(gpt_t gpt, int argc, char *argv[])
|
H A D | gpt_uuid.c | 274 gpt_uuid_random(gpt_t gpt, void *v, size_t n) 309 gpt_uuid_tstamp(gpt_t gpt, void *v, size_t l) 322 gpt_uuid_generate(gpt_t gpt, gpt_uuid_t t)
|
H A D | main.c | 171 gpt_t gpt;
|