Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/mkimg/ebr.c
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | static struct mkimg_alias ebr_aliases[] = { | ||||
{ ALIAS_NONE, 0 } | { ALIAS_NONE, 0 } | ||||
}; | }; | ||||
static lba_t | static lba_t | ||||
ebr_metadata(u_int where, lba_t blk) | ebr_metadata(u_int where, lba_t blk) | ||||
{ | { | ||||
blk += (where == SCHEME_META_PART_BEFORE) ? 1 : 0; | blk += (where == SCHEME_META_PART_BEFORE) ? 1 : 0; | ||||
return (round_track(blk)); | return (round_block(blk)); | ||||
} | } | ||||
static void | static void | ||||
ebr_chs(u_char *cylp, u_char *hdp, u_char *secp, lba_t lba) | ebr_chs(u_char *cylp, u_char *hdp, u_char *secp, lba_t lba) | ||||
{ | { | ||||
u_int cyl, hd, sec; | u_int cyl, hd, sec; | ||||
mkimg_chs(lba, 1023, &cyl, &hd, &sec); | mkimg_chs(lba, 1023, &cyl, &hd, &sec); | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |