2 Copyright © 1995-2017, The AROS Development Team. All rights reserved.
6 #include "partition_intern.h"
7 #include "partition_support.h"
10 /*****************************************************************************
13 #include <libraries/partition.h>
15 AROS_LH1(LONG
, WritePartitionTable
,
18 AROS_LHA(struct PartitionHandle
*, root
, A1
),
21 struct Library
*, PartitionBase
, 9, Partition
)
24 Write a partition table; writing this partition table doesn't affect
28 root - partition table to write
31 0 for success; an error code otherwise
43 *****************************************************************************/
49 struct PTFunctionTable
*handler
= root
->table
->handler
;
51 if (handler
->writePartitionTable
)
52 return handler
->writePartitionTable(PartitionBase
, root
);
55 /* Can't write (no method) */
56 return ERROR_ACTION_NOT_KNOWN
;