gpt_t
get_map_widths(gpt_t gpt)
gpt_t gpt;
gpt_t gpt;
gpt_t gpt;
gpt_t gpt;
cmd_add(gpt_t gpt, int argc, char *argv[])
static int cmd_add(gpt_t, int, char *[]);
add(gpt_t gpt, off_t alignment, off_t block, off_t sectors, off_t size __unused,
store_gpt(gpt_t gpt __unused, const struct gpt_hdr *hdr,
store_tbl(gpt_t gpt, const map_t m, prop_dictionary_t *type_dict)
backup(gpt_t gpt, const char *outfile)
cmd_backup(gpt_t gpt, int argc, char *argv[])
static int cmd_backup(gpt_t, int, char *[]);
store_mbr(gpt_t gpt, unsigned int i, const struct mbr *mbr,
set_bootable(gpt_t gpt, map_t map, map_t tbl, unsigned int i)
biosboot(gpt_t gpt, off_t start, uint64_t size, u_int entry, uint8_t *label,
cmd_biosboot(gpt_t gpt, int argc, char *argv[])
gpt_t ngpt = gpt;
static int cmd_biosboot(gpt_t, int, char *[]);
read_boot(gpt_t gpt, const char *bootpath)
cmd_create(gpt_t gpt, int argc, char *argv[])
static int cmd_create(gpt_t, int, char *[]);
create(gpt_t gpt, u_int parts, int force, int primary_only, int active)
cmd_destroy(gpt_t gpt, int argc, char *argv[])
static int cmd_destroy(gpt_t, int, char *[]);
destroy(gpt_t gpt, int force __unused, int recoverable)
gpt_size_get(gpt_t gpt, off_t *size)
gpt_human_get(gpt_t gpt, off_t *human)
gpt_add_find(gpt_t gpt, struct gpt_find *find, int ch)
gpt_change_ent(gpt_t gpt, const struct gpt_find *find,
gpt_change_hdr(gpt_t gpt, const struct gpt_find *find,
gpt_add_ais(gpt_t gpt, off_t *alignment, u_int *entry, off_t *size, int ch)
gpt_check_ais(gpt_t gpt, off_t alignment, u_int entry, off_t size)
gpt_attr_get(gpt_t gpt, uint64_t *attributes)
gpt_attr_update(gpt_t gpt, u_int entry, uint64_t set, uint64_t clr)
gpt_scaled_uint_get(gpt_t gpt, u_int *entry)
gpt_uint_get(gpt_t gpt, u_int *entry)
gpt_uuid_get(gpt_t gpt, gpt_uuid_t *uuid)
gpt_name_get(gpt_t gpt, void *v)
gpt_add_hdr(gpt_t gpt, int type, off_t loc)
gpt_read(gpt_t gpt, off_t lba, size_t count)
gpt_write(gpt_t gpt, map_t map)
gpt_mbr(gpt_t gpt, off_t lba, unsigned int *next_index, off_t ext_offset)
gpt_gpt(gpt_t gpt, off_t lba, int found)
gpt_t
gpt_t gpt;
gpt_close(gpt_t gpt)
gpt_vwarnx(gpt_t gpt, const char *fmt, va_list ap, const char *e)
gpt_warnx(gpt_t gpt, const char *fmt, ...)
gpt_warn(gpt_t gpt, const char *fmt, ...)
gpt_msg(gpt_t gpt, const char *fmt, ...)
gpt_hdr(gpt_t gpt)
gpt_write_crc(gpt_t gpt, map_t map, map_t tbl)
gpt_write_primary(gpt_t gpt)
gpt_write_backup(gpt_t gpt)
gpt_ent_primary(gpt_t gpt, unsigned int i)
gpt_ent_backup(gpt_t gpt, unsigned int i)
gpt_last(gpt_t gpt)
gpt_create(gpt_t gpt, off_t last, u_int parts, int primary_only)
void gpt_warn(gpt_t, const char *, ...) __printflike(2, 3);
void gpt_warnx(gpt_t, const char *, ...) __printflike(2, 3);
struct gpt_ent *gpt_ent_primary(gpt_t, unsigned int);
struct gpt_ent *gpt_ent_backup(gpt_t, unsigned int);
int gpt_change_ent(gpt_t, const struct gpt_find *,
int gpt_change_hdr(gpt_t, const struct gpt_find *,
int gpt_add_find(gpt_t, struct gpt_find *, int);
int gpt_add_ais(gpt_t, off_t *, u_int *, off_t *, int);
off_t gpt_check_ais(gpt_t, off_t, u_int, off_t);
int gpt_attr_get(gpt_t, uint64_t *);
int gpt_attr_update(gpt_t, u_int, uint64_t, uint64_t);
int gpt_uint_get(gpt_t, u_int *);
int gpt_scaled_uint_get(gpt_t, u_int *);
int gpt_human_get(gpt_t, off_t *);
int gpt_uuid_get(gpt_t, gpt_uuid_t *);
int gpt_name_get(gpt_t, void *);
int gpt_add_hdr(gpt_t, int, off_t);
int (*fptr)(gpt_t, int, char *[]);
void gpt_close(gpt_t);
int gpt_gpt(gpt_t, off_t, int);
gpt_t gpt_open(const char *, int, int, off_t, u_int, time_t);
void* gpt_read(gpt_t, off_t, size_t);
off_t gpt_last(gpt_t);
off_t gpt_create(gpt_t, off_t, u_int, int);
int gpt_write(gpt_t, map_t);
int gpt_write_crc(gpt_t, map_t, map_t);
int gpt_write_primary(gpt_t);
int gpt_write_backup(gpt_t);
struct gpt_hdr *gpt_hdr(gpt_t);
void gpt_msg(gpt_t, const char *, ...) __printflike(2, 3);
gpt_uuid_random(gpt_t gpt, struct dce_uuid *u, size_t n)
gpt_uuid_tstamp(gpt_t gpt, struct dce_uuid *u, size_t l __unused)
gpt_uuid_generate(gpt_t gpt, gpt_uuid_t t)
cmd_header(gpt_t gpt, int argc, char *argv[] __unused)
static int cmd_header(gpt_t, int, char *[]);
header(gpt_t gpt)
cmd_label(gpt_t gpt, int argc, char *argv[])
static int cmd_label(gpt_t, int, char *[]);
name_from_file(gpt_t gpt, void *v)
gpt_t gpt;
map_alloc(gpt_t gpt, off_t start, off_t size, off_t alignment)
map_resize(gpt_t gpt, map_t m, off_t size, off_t alignment)
map_find(gpt_t gpt, int type)
map_first(gpt_t gpt)
map_last(gpt_t gpt)
map_free(gpt_t gpt, off_t start, off_t size)
map_init(gpt_t gpt, off_t size)
map_add(gpt_t gpt, off_t start, off_t size, int type, void *data, int alloc)
freebsd_fstype_to_gpt_type(gpt_t gpt, u_int i __unused, u_int fstype)
netbsd_fstype_to_gpt_type(gpt_t gpt, u_int i, u_int fstype)
migrate_disklabel(gpt_t gpt, off_t start, struct gpt_ent *ent,
gpt_type_t (*convert)(gpt_t, u_int, u_int))
migrate(gpt_t gpt, u_int parts, int force, int slice, int active)
cmd_migrate(gpt_t gpt, int argc, char *argv[])
static int cmd_migrate(gpt_t, int, char *[]);
recover_gpt_tbl(gpt_t gpt, int type, off_t start)
recover(gpt_t gpt)
cmd_recover(gpt_t gpt, int argc, char *argv[])
static int cmd_recover(gpt_t, int, char *[]);
recover_gpt_hdr(gpt_t gpt, int type, off_t last)
static int cmd_remove(gpt_t, int, char *[]);
cmd_remove(gpt_t gpt, int argc, char *argv[])
cmd_resize(gpt_t gpt, int argc, char *argv[])
static int cmd_resize(gpt_t, int, char *[]);
resize(gpt_t gpt, u_int entry, off_t alignment, off_t sectors,
cmd_resizedisk(gpt_t gpt, int argc, char *argv[])
static int cmd_resizedisk(gpt_t, int, char *[]);
resizedisk(gpt_t gpt, off_t sector, off_t size __unused, bool quiet)
restore_ent(gpt_t gpt, prop_dictionary_t gpt_dict, void *secbuf,
restore(gpt_t gpt, const char *infile, int force)
cmd_restore(gpt_t gpt, int argc, char *argv[])
static int cmd_restore(gpt_t, int, char *[]);
restore_mbr(gpt_t gpt, struct mbr *mbr, prop_dictionary_t mbr_dict, off_t last)
static int cmd_set(gpt_t, int, char *[]);
cmd_set(gpt_t gpt, int argc, char *argv[])
parsable_label(gpt_t gpt, struct gpt_ent *ent)
print_part_type(gpt_t gpt, int map_type, int flags, void *map_data,
cvt_size(gpt_t gpt, uintmax_t sz, int xshow, char *b, unsigned int bs)
show(gpt_t gpt, int xshow)
gpt_t gpt)
show_parsable(gpt_t gpt, map_t m, struct gpt_ent *ent, int xshow)
show_one(gpt_t gpt, unsigned int entry, int xshow)
show_all(gpt_t gpt, int xshow)
static int cmd_show(gpt_t, int, char *[]);
cmd_show(gpt_t gpt, int argc, char *argv[])
static int cmd_type(gpt_t, int, char *[]);
cmd_type(gpt_t gpt, int argc, char *argv[])
static int cmd_unset(gpt_t, int, char *[]);
cmd_unset(gpt_t gpt, int argc, char *argv[])
cmd_uuid(gpt_t gpt, int argc, char *argv[])
static int cmd_uuid(gpt_t, int, char *[]);
gpt_t gpt;