2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
7 #include "partition_intern.h"
8 #include "partition_support.h"
11 /*****************************************************************************
14 #include <libraries/partition.h>
16 AROS_LH1(LONG
, WritePartitionTable
,
19 AROS_LHA(struct PartitionHandle
*, root
, A1
),
22 struct Library
*, PartitionBase
, 9, Partition
)
25 Write a partition table; writing this partition table doesn't affect
29 root - partition table to write
32 0 for success; an error code otherwise
45 21-02-02 first version
47 *****************************************************************************/
53 struct PTFunctionTable
*handler
= root
->table
->handler
;
55 if (handler
->writePartitionTable
)
56 return handler
->writePartitionTable(PartitionBase
, root
);
59 /* Can't write (no method) */
60 return ERROR_ACTION_NOT_KNOWN
;