apfs.c revision 7e7bd3dccbfe8f79e25e5c1554b5bc3a9aaca321
/*
apfs.c -- parted support for apfs file systems
Copyright (C) 1998-2000, 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.
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 "amiga.h"
#include "apfs.h"
#if ENABLE_NLS
# include <libintl.h>
#else
#endif /* ENABLE_NLS */
static int
return 1;
}
static PedGeometry*
{
struct PartitionBlock * part;
/* Finds the blocksize, prealloc and reserved values of the partition block */
_("%s : Failed to allocate partition block\n"), __func__);
goto error_part;
}
}
/* Test boot block */
_("%s : Failed to allocate block\n"), __func__);
goto error_block;
}
goto error;
}
goto error;
}
/* Find and test the root block */
goto error;
}
return ped_geometry_duplicate (geom);
}
return NULL;
}
static PedGeometry*
}
static PedGeometry*
}
static PedFileSystemOps _apfs1_ops = {
.probe = _apfs1_probe,
};
static PedFileSystemOps _apfs2_ops = {
.probe = _apfs2_probe,
};
.ops = &_apfs1_ops,
.name = "apfs1",
};
.ops = &_apfs2_ops,
.name = "apfs2",
};