/* host.c - Dummy disk driver to provide access to the hosts filesystem */
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 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/>.
*/
/* When using the disk, make a reference to this module. Otherwise
the user will end up with a useless module :-). */
static int
{
if (pull != GRUB_DISK_PULL_NONE)
return 0;
if (hook ("host"))
return 1;
return 0;
}
static grub_err_t
{
disk->total_sectors = 0;
return GRUB_ERR_NONE;
}
static void
{
}
static grub_err_t
{
return GRUB_ERR_OUT_OF_RANGE;
}
static grub_err_t
{
return GRUB_ERR_OUT_OF_RANGE;
}
{
/* The only important line in this file :-) */
.name = "host",
.open = grub_host_open,
.close = grub_host_close,
.read = grub_host_read,
.write = grub_host_write,
.next = 0
};
{
}
{
}