mbr.c (7747001b125d7bdc64fa4b06fa4d6b940e38453f) mbr.c (5b990a9463bc31358684aa1f363ab131bd47c673)
1/*-
2 * Copyright (c) 2014 Juniper Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 98 unchanged lines hidden (view full) ---

107 }
108 error = image_write(0, mbr, 1);
109 free(mbr);
110 return (error);
111}
112
113static struct mkimg_scheme mbr_scheme = {
114 .name = "mbr",
1/*-
2 * Copyright (c) 2014 Juniper Networks, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 98 unchanged lines hidden (view full) ---

107 }
108 error = image_write(0, mbr, 1);
109 free(mbr);
110 return (error);
111}
112
113static struct mkimg_scheme mbr_scheme = {
114 .name = "mbr",
115 .description = "Main Boot Record",
115 .description = "Master Boot Record",
116 .aliases = mbr_aliases,
117 .metadata = mbr_metadata,
118 .write = mbr_write,
119 .bootcode = 512,
120 .nparts = NDOSPART,
121 .maxsecsz = 4096
122};
123
124SCHEME_DEFINE(mbr_scheme);
116 .aliases = mbr_aliases,
117 .metadata = mbr_metadata,
118 .write = mbr_write,
119 .bootcode = 512,
120 .nparts = NDOSPART,
121 .maxsecsz = 4096
122};
123
124SCHEME_DEFINE(mbr_scheme);