mbr.c (263673) | mbr.c (263700) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: user/marcel/mkimg/mbr.c 263673 2014-03-23 20:15:21Z marcel $"); | 28__FBSDID("$FreeBSD: user/marcel/mkimg/mbr.c 263700 2014-03-25 02:32:04Z marcel $"); |
29 30#include <sys/types.h> 31#include <sys/diskmbr.h> 32#include <sys/endian.h> 33#include <sys/errno.h> 34#include <stdlib.h> 35#include <string.h> 36#include <unistd.h> --- 55 unchanged lines hidden (view full) --- 92 93static struct mkimg_scheme mbr_scheme = { 94 .name = "mbr", 95 .description = "Master Boot Record", 96 .aliases = mbr_aliases, 97 .metadata = mbr_metadata, 98 .write = mbr_write, 99 .bootcode = 512, | 29 30#include <sys/types.h> 31#include <sys/diskmbr.h> 32#include <sys/endian.h> 33#include <sys/errno.h> 34#include <stdlib.h> 35#include <string.h> 36#include <unistd.h> --- 55 unchanged lines hidden (view full) --- 92 93static struct mkimg_scheme mbr_scheme = { 94 .name = "mbr", 95 .description = "Master Boot Record", 96 .aliases = mbr_aliases, 97 .metadata = mbr_metadata, 98 .write = mbr_write, 99 .bootcode = 512, |
100 .nparts = NDOSPART | 100 .nparts = NDOSPART, 101 .maxsecsz = 4096 |
101}; 102 103SCHEME_DEFINE(mbr_scheme); | 102}; 103 104SCHEME_DEFINE(mbr_scheme); |