/* sun.c - Read SUN style partition tables. */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2002,2005,2006,2007 Free Software Foundation, Inc.
*
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GRUB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
#include <grub/partition.h>
GRUB_MOD_LICENSE ("GPLv3+");
struct grub_sun_partition_info
{
} __attribute__ ((packed));
{
} __attribute__ ((packed));
struct grub_sun_block
{
} __attribute__ ((packed));
/* Verify checksum (true=ok). */
static int
{
pos++)
return ! sum;
}
static grub_err_t
const grub_partition_t partition))
{
struct grub_partition p;
union
{
} block;
int partnum;
&block);
if (err)
return err;
/* Maybe another error value would be better, because partition
table _is_ recognized but invalid. */
{
continue;
if (p.len)
{
}
}
return grub_errno;
}
/* Partition map type. */
{
.name = "sun",
};
{
}
{
}