131921Sbrian/*-
231921Sbrian * Copyright (c) 2011 Nathan Whitehorn
331921Sbrian * All rights reserved.
431921Sbrian *
531921Sbrian * Redistribution and use in source and binary forms, with or without
631921Sbrian * modification, are permitted provided that the following conditions
731921Sbrian * are met:
831921Sbrian * 1. Redistributions of source code must retain the above copyright
931921Sbrian *    notice, this list of conditions and the following disclaimer.
1031921Sbrian * 2. Redistributions in binary form must reproduce the above copyright
1131921Sbrian *    notice, this list of conditions and the following disclaimer in the
1231921Sbrian *    documentation and/or other materials provided with the distribution.
1331921Sbrian *
1431921Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1531921Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1631921Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1731921Sbrian * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1831921Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1931921Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2031921Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2131921Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2231921Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2331921Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2431921Sbrian * SUCH DAMAGE.
2531921Sbrian *
2631921Sbrian * $FreeBSD$
2735773Scharnier */
2835773Scharnier
2944598Sbrian#include <string.h>
3035773Scharnier
3135773Scharnier#include "partedit.h"
3227874Sbrian
3327874Sbrianconst char *
3427874Sbriandefault_scheme(void) {
3527874Sbrian	return ("VTOC8");
3627874Sbrian}
3727874Sbrian
3827874Sbrianint
3927874Sbrianis_scheme_bootable(const char *part_type) {
4027874Sbrian	if (strcmp(part_type, "VTOC8") == 0)
4127874Sbrian		return (1);
4227874Sbrian	return (0);
4327874Sbrian}
4427874Sbrian
4527874Sbriansize_t
4627874Sbrianbootpart_size(const char *part_type) {
4727874Sbrian	/* No standalone boot partition */
4827874Sbrian
4927874Sbrian	return (0);
5027874Sbrian}
5127874Sbrian
5227874Sbrianconst char *
5327874Sbrianbootcode_path(const char *part_type) {
5427874Sbrian	return (NULL);
5527874Sbrian}
5627874Sbrian
5727874Sbrianconst char *
5827874Sbrianpartcode_path(const char *part_type) {
5927874Sbrian	if (strcmp(part_type, "VTOC8") == 0)
6027874Sbrian		return ("/boot/boot1");
6127874Sbrian	return (NULL);
6227874Sbrian}
6328025Sbrian
6428025Sbrian