blob: 3bbfb9c1920407e879c7febb5b4e3f049ce80140 [file] [log] [blame]
bigbiff bigbiffe60683a2013-02-22 20:55:50 -05001/*
2 * Copyright (C) 2008-2009 Karel Zak <kzak@redhat.com>
3 *
4 * This file may be redistributed under the terms of the
5 * GNU Lesser General Public License.
6 */
7#ifndef _BLKID_SUPERBLOCKS_H
8#define _BLKID_SUPERBLOCKS_H
9
10#include "blkidP.h"
11
12extern const struct blkid_idinfo cramfs_idinfo;
13extern const struct blkid_idinfo swap_idinfo;
14extern const struct blkid_idinfo swsuspend_idinfo;
15extern const struct blkid_idinfo adraid_idinfo;
16extern const struct blkid_idinfo ddfraid_idinfo;
17extern const struct blkid_idinfo iswraid_idinfo;
18extern const struct blkid_idinfo jmraid_idinfo;
19extern const struct blkid_idinfo lsiraid_idinfo;
20extern const struct blkid_idinfo nvraid_idinfo;
21extern const struct blkid_idinfo pdcraid_idinfo;
22extern const struct blkid_idinfo silraid_idinfo;
23extern const struct blkid_idinfo viaraid_idinfo;
24extern const struct blkid_idinfo linuxraid_idinfo;
25extern const struct blkid_idinfo ext4dev_idinfo;
26extern const struct blkid_idinfo ext4_idinfo;
27extern const struct blkid_idinfo ext3_idinfo;
28extern const struct blkid_idinfo ext2_idinfo;
29extern const struct blkid_idinfo jbd_idinfo;
30extern const struct blkid_idinfo jfs_idinfo;
31extern const struct blkid_idinfo xfs_idinfo;
bigbiff7b4c7a62015-01-01 19:44:14 -050032extern const struct blkid_idinfo xfs_log_idinfo;
bigbiff bigbiffe60683a2013-02-22 20:55:50 -050033extern const struct blkid_idinfo gfs_idinfo;
34extern const struct blkid_idinfo gfs2_idinfo;
35extern const struct blkid_idinfo romfs_idinfo;
36extern const struct blkid_idinfo ocfs_idinfo;
37extern const struct blkid_idinfo ocfs2_idinfo;
38extern const struct blkid_idinfo oracleasm_idinfo;
39extern const struct blkid_idinfo reiser_idinfo;
40extern const struct blkid_idinfo reiser4_idinfo;
41extern const struct blkid_idinfo hfs_idinfo;
42extern const struct blkid_idinfo hfsplus_idinfo;
43extern const struct blkid_idinfo ntfs_idinfo;
bigbiff7b4c7a62015-01-01 19:44:14 -050044extern const struct blkid_idinfo refs_idinfo;
bigbiff bigbiffe60683a2013-02-22 20:55:50 -050045extern const struct blkid_idinfo iso9660_idinfo;
46extern const struct blkid_idinfo udf_idinfo;
47extern const struct blkid_idinfo vxfs_idinfo;
48extern const struct blkid_idinfo minix_idinfo;
49extern const struct blkid_idinfo vfat_idinfo;
50extern const struct blkid_idinfo ufs_idinfo;
51extern const struct blkid_idinfo hpfs_idinfo;
52extern const struct blkid_idinfo lvm2_idinfo;
53extern const struct blkid_idinfo lvm1_idinfo;
54extern const struct blkid_idinfo snapcow_idinfo;
55extern const struct blkid_idinfo verity_hash_idinfo;
56extern const struct blkid_idinfo luks_idinfo;
57extern const struct blkid_idinfo highpoint37x_idinfo;
58extern const struct blkid_idinfo highpoint45x_idinfo;
59extern const struct blkid_idinfo squashfs_idinfo;
bigbiff7b4c7a62015-01-01 19:44:14 -050060extern const struct blkid_idinfo squashfs3_idinfo;
bigbiff bigbiffe60683a2013-02-22 20:55:50 -050061extern const struct blkid_idinfo netware_idinfo;
62extern const struct blkid_idinfo sysv_idinfo;
63extern const struct blkid_idinfo xenix_idinfo;
64extern const struct blkid_idinfo btrfs_idinfo;
65extern const struct blkid_idinfo ubifs_idinfo;
66extern const struct blkid_idinfo zfs_idinfo;
67extern const struct blkid_idinfo bfs_idinfo;
68extern const struct blkid_idinfo vmfs_volume_idinfo;
69extern const struct blkid_idinfo vmfs_fs_idinfo;
70extern const struct blkid_idinfo drbd_idinfo;
71extern const struct blkid_idinfo drbdproxy_datalog_idinfo;
72extern const struct blkid_idinfo befs_idinfo;
73extern const struct blkid_idinfo nilfs2_idinfo;
74extern const struct blkid_idinfo exfat_idinfo;
75extern const struct blkid_idinfo f2fs_idinfo;
bigbiff7b4c7a62015-01-01 19:44:14 -050076extern const struct blkid_idinfo bcache_idinfo;
bigbiff bigbiffe60683a2013-02-22 20:55:50 -050077
78/*
79 * superblock functions
80 */
81extern int blkid_probe_set_version(blkid_probe pr, const char *version);
82extern int blkid_probe_sprintf_version(blkid_probe pr, const char *fmt, ...)
83 __attribute__ ((__format__ (__printf__, 2, 3)));
84
85extern int blkid_probe_set_label(blkid_probe pr, unsigned char *label, size_t len);
86extern int blkid_probe_set_utf8label(blkid_probe pr, unsigned char *label,
87 size_t len, int enc);
88extern int blkid_probe_sprintf_uuid(blkid_probe pr, unsigned char *uuid,
89 size_t len, const char *fmt, ...)
90 __attribute__ ((__format__ (__printf__, 4, 5)));
91extern int blkid_probe_strncpy_uuid(blkid_probe pr, unsigned char *str, size_t len);
92
93extern int blkid_probe_set_uuid(blkid_probe pr, unsigned char *uuid);
94extern int blkid_probe_set_uuid_as(blkid_probe pr, unsigned char *uuid, const char *name);
95
96extern int blkid_probe_set_id_label(blkid_probe pr, const char *name,
97 unsigned char *data, size_t len);
98
99#endif /* _BLKID_SUPERBLOCKS_H */