udftools

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mkudffs.h
Go to the documentation of this file.
1 /*
2 * mkudffs.h
3 *
4 * Copyright (c) 2001-2002 Ben Fennema <bfennema@falcon.csc.calpoly.edu>
5 * All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 *
21 */
22
23 #ifndef __MKUDFFS_H
24 #define __MKUDFFS_H
25
26 #include "ecma_167.h"
27 #include "osta_udf.h"
28 #include "udf_endian.h"
29 #include "libudffs.h"
30
31 #define CS0 0x00000001
32 #define UDF_ID_APPLICATION "*Linux mkudffs"
33
34 #define DEFAULT_HD 0
35 #define DEFAULT_DVD 0
36 #define DEFAULT_DVDRAM 0
37 #define DEFAULT_WORM 1
38 #define DEFAULT_MO 1
39 #define DEFAULT_CDRW 2
40 #define DEFAULT_CDR 3
41 #define DEFAULT_DVDRW 4
42
43 #ifndef NAME_MAX
44 #define NAME_MAX 255
45 #endif
46
47 extern char *udf_space_type_str[UDF_SPACE_TYPE_SIZE];
48
49 void udf_init_disc(struct udf_disc *);
50 int udf_set_version(struct udf_disc *, int);
51 void split_space(struct udf_disc *);
52 void dump_space(struct udf_disc *);
53 int write_disc(struct udf_disc *);
54 void setup_vrs(struct udf_disc *);
55 void setup_anchor(struct udf_disc *);
56 void setup_partition(struct udf_disc *);
57 int setup_space(struct udf_disc *, struct udf_extent *, uint32_t);
58 int setup_fileset(struct udf_disc *, struct udf_extent *);
59 int setup_root(struct udf_disc *, struct udf_extent *);
60 void calc_space(struct udf_disc *, struct udf_extent *);
61 void setup_vds(struct udf_disc *);
62 void setup_pvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t);
63 void setup_lvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, struct udf_extent *, uint32_t);
64 void setup_pd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t);
65 void setup_usd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t);
66 void setup_iuvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t);
67 void setup_td(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t);
68 void setup_lvid(struct udf_disc *, struct udf_extent *);
69 void setup_stable(struct udf_disc *, struct udf_extent *[4], struct udf_extent *);
70 void setup_vat(struct udf_disc *, struct udf_extent *);
71 void add_type1_partition(struct udf_disc *, uint16_t);
72 void add_type2_sparable_partition(struct udf_disc *, uint16_t, uint8_t, uint16_t);
73 void add_type2_virtual_partition(struct udf_disc *, uint16_t);
74 struct sparablePartitionMap *find_type2_sparable_partition(struct udf_disc *, uint16_t);
75
76 #endif /* __MKUDFFS_H */
setup_pd
void setup_pd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:834
setup_vat
void setup_vat(struct udf_disc *, struct udf_extent *)
Definition: mkudffs.c:982
setup_vrs
void setup_vrs(struct udf_disc *)
Definition: mkudffs.c:367
setup_partition
void setup_partition(struct udf_disc *)
Definition: mkudffs.c:449
udf_endian.h
setup_pvd
void setup_pvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:800
ecma_167.h
udf_set_version
int udf_set_version(struct udf_disc *, int)
Definition: mkudffs.c:152
sparablePartitionMap
Definition: osta_udf.h:141
setup_usd
void setup_usd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:864
split_space
void split_space(struct udf_disc *)
Definition: mkudffs.c:198
setup_vds
void setup_vds(struct udf_disc *)
Definition: mkudffs.c:758
add_type2_virtual_partition
void add_type2_virtual_partition(struct udf_disc *, uint16_t)
Definition: mkudffs.c:1115
UDF_SPACE_TYPE_SIZE
Definition: libudffs.h:74
udf_space_type_str
char * udf_space_type_str[UDF_SPACE_TYPE_SIZE]
Definition: mkudffs.c:1148
add_type1_partition
void add_type1_partition(struct udf_disc *, uint16_t)
Definition: mkudffs.c:1019
add_type2_sparable_partition
void add_type2_sparable_partition(struct udf_disc *, uint16_t, uint8_t, uint16_t)
Definition: mkudffs.c:1052
setup_lvid
void setup_lvid(struct udf_disc *, struct udf_extent *)
Definition: mkudffs.c:925
setup_anchor
void setup_anchor(struct udf_disc *)
Definition: mkudffs.c:402
udf_extent
Definition: libudffs.h:131
setup_lvd
void setup_lvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:815
setup_root
int setup_root(struct udf_disc *, struct udf_extent *)
Definition: mkudffs.c:647
udf_init_disc
void udf_init_disc(struct udf_disc *)
Definition: mkudffs.c:46
udf_disc
Definition: libudffs.h:95
setup_stable
void setup_stable(struct udf_disc *, struct udf_extent *[4], struct udf_extent *)
Definition: mkudffs.c:948
write_disc
int write_disc(struct udf_disc *)
Definition: mkudffs.c:351
libudffs.h
setup_iuvd
void setup_iuvd(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:893
dump_space
void dump_space(struct udf_disc *)
Definition: mkudffs.c:331
find_type2_sparable_partition
struct sparablePartitionMap * find_type2_sparable_partition(struct udf_disc *, uint16_t)
Definition: mkudffs.c:1088
setup_fileset
int setup_fileset(struct udf_disc *, struct udf_extent *)
Definition: mkudffs.c:611
setup_td
void setup_td(struct udf_disc *, struct udf_extent *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:910
calc_space
void calc_space(struct udf_disc *, struct udf_extent *)
setup_space
int setup_space(struct udf_disc *, struct udf_extent *, uint32_t)
Definition: mkudffs.c:465
osta_udf.h