/*
libparted - a library for manipulating disk partitions
Copyright (C) 1999-2000, 2007-2010 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.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <config.h>
#include <stdbool.h>
#include "pt-tools.h"
#if ENABLE_NLS
# include <libintl.h>
#else
#endif /* ENABLE_NLS */
static int
{
if (!disk)
goto error;
void *buf;
goto error_destroy_disk;
int result;
if (found_sig) {
result = 1;
} else {
if (!geom)
goto error_destroy_disk;
}
return result;
return 0;
}
static PedDisk*
{
return NULL;
}
static PedDisk*
{
}
static void
{
}
static int
{
void *buf;
goto error;
if (found_sig) {
return 1;
}
if (!geom)
goto error;
if (!fs_type)
goto error_free_geom;
if (!part)
goto error;
goto error;
return 1;
return 0;
}
#ifndef DISCOVER_ONLY
static int
{
return 0;
return 0;
}
return 1;
}
}
return write_ok;
}
#endif /* !DISCOVER_ONLY */
static PedPartition*
const PedFileSystemType* fs_type,
{
if (!part)
return NULL;
return part;
}
static PedPartition*
{
return result;
}
static void
{
}
static int
{
return 1;
}
static int
{
return 0;
}
static int
{
return 0;
}
static int
{
if (!new_geom) {
_("Unable to satisfy all constraints on the "
"partition."));
return 0;
}
return 1;
}
static int
{
return 0;
}
static int
{
return 1;
}
static int
{
return 1;
}
static int
{
return 1;
}
static bool
{
*max_n = 1;
return true;
}
#include "pt-common.h"
};
.name = "loop",
.ops = &loop_disk_ops,
.features = 0
};
void
{
}
void
{
}