xref: /minix3/sbin/newfs_udf/udf_write.h (revision 9f988b79349f9b89ecc822458c30ec8897558560)
1*9f988b79SJean-Baptiste Boric /* $NetBSD: udf_write.h,v 1.4 2013/08/05 20:52:08 reinoud Exp $ */
2*9f988b79SJean-Baptiste Boric 
3*9f988b79SJean-Baptiste Boric /*
4*9f988b79SJean-Baptiste Boric  * Copyright (c) 2006, 2008, 2013 Reinoud Zandijk
5*9f988b79SJean-Baptiste Boric  * All rights reserved.
6*9f988b79SJean-Baptiste Boric  *
7*9f988b79SJean-Baptiste Boric  * Redistribution and use in source and binary forms, with or without
8*9f988b79SJean-Baptiste Boric  * modification, are permitted provided that the following conditions
9*9f988b79SJean-Baptiste Boric  * are met:
10*9f988b79SJean-Baptiste Boric  * 1. Redistributions of source code must retain the above copyright
11*9f988b79SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer.
12*9f988b79SJean-Baptiste Boric  * 2. Redistributions in binary form must reproduce the above copyright
13*9f988b79SJean-Baptiste Boric  *    notice, this list of conditions and the following disclaimer in the
14*9f988b79SJean-Baptiste Boric  *    documentation and/or other materials provided with the distribution.
15*9f988b79SJean-Baptiste Boric  *
16*9f988b79SJean-Baptiste Boric  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17*9f988b79SJean-Baptiste Boric  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18*9f988b79SJean-Baptiste Boric  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19*9f988b79SJean-Baptiste Boric  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20*9f988b79SJean-Baptiste Boric  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21*9f988b79SJean-Baptiste Boric  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22*9f988b79SJean-Baptiste Boric  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23*9f988b79SJean-Baptiste Boric  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24*9f988b79SJean-Baptiste Boric  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25*9f988b79SJean-Baptiste Boric  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*9f988b79SJean-Baptiste Boric  *
27*9f988b79SJean-Baptiste Boric  */
28*9f988b79SJean-Baptiste Boric 
29*9f988b79SJean-Baptiste Boric #ifndef _FS_UDF_UDF_WRITE_H_
30*9f988b79SJean-Baptiste Boric #define _FS_UDF_UDF_WRITE_H_
31*9f988b79SJean-Baptiste Boric 
32*9f988b79SJean-Baptiste Boric #include "udf_create.h"
33*9f988b79SJean-Baptiste Boric #if !HAVE_NBTOOL_CONFIG_H
34*9f988b79SJean-Baptiste Boric #define _EXPOSE_MMC
35*9f988b79SJean-Baptiste Boric #include <sys/cdio.h>
36*9f988b79SJean-Baptiste Boric #else
37*9f988b79SJean-Baptiste Boric #include "udf/cdio_mmc_structs.h"
38*9f988b79SJean-Baptiste Boric #endif
39*9f988b79SJean-Baptiste Boric 
40*9f988b79SJean-Baptiste Boric /* prototypes */
41*9f988b79SJean-Baptiste Boric 
42*9f988b79SJean-Baptiste Boric int udf_write_dscr_virt(union dscrptr *dscr, uint32_t location, uint32_t vpart,
43*9f988b79SJean-Baptiste Boric 	uint32_t sects);
44*9f988b79SJean-Baptiste Boric void udf_metadata_alloc(int nblk, struct long_ad *pos);
45*9f988b79SJean-Baptiste Boric void udf_data_alloc(int nblk, struct long_ad *pos);
46*9f988b79SJean-Baptiste Boric 
47*9f988b79SJean-Baptiste Boric int udf_derive_format(int req_enable, int req_disable, int force);
48*9f988b79SJean-Baptiste Boric int udf_proces_names(void);
49*9f988b79SJean-Baptiste Boric 
50*9f988b79SJean-Baptiste Boric int udf_do_newfs_prefix(void);
51*9f988b79SJean-Baptiste Boric int udf_do_rootdir(void);
52*9f988b79SJean-Baptiste Boric int udf_do_newfs_postfix(void);
53*9f988b79SJean-Baptiste Boric 
54*9f988b79SJean-Baptiste Boric #endif /* _FS_UDF_UDF_WRITE_H_ */
55