volume_id: add FAST_FUNC where appropriate
function old new delta volume_id_probe_iso9660 324 327 +3 volume_id_probe_vfat 902 903 +1 volume_id_probe_udf 576 577 +1 volume_id_probe_ntfs 314 315 +1 uuidcache_check_device 292 291 -1 volume_id_probe_xfs 87 85 -2 volume_id_probe_sysv 165 163 -2 volume_id_probe_romfs 89 87 -2 volume_id_probe_reiserfs 236 234 -2 volume_id_probe_ocfs2 96 94 -2 volume_id_probe_luks 78 76 -2 volume_id_probe_linux_swap 165 163 -2 volume_id_probe_jfs 96 94 -2 volume_id_probe_hfs_hfsplus 795 793 -2 volume_id_probe_ext 82 80 -2 volume_id_probe_cramfs 59 57 -2 volume_id_probe_btrfs 96 94 -2 free_volume_id 36 31 -5 volume_id_probe_linux_raid 127 119 -8 volume_id_probe_all 152 138 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/16 up/down: 6/-52) Total: -46 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
		@@ -78,7 +78,7 @@ struct btrfs_super_block {
 | 
			
		||||
	// ...
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t) (64 * 1024))
 | 
			
		||||
	struct btrfs_super_block *sb;
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@ struct cramfs_super {
 | 
			
		||||
	uint8_t		name[16];
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct cramfs_super *cs;
 | 
			
		||||
 
 | 
			
		||||
@@ -43,7 +43,7 @@ struct ext2_super_block {
 | 
			
		||||
#define EXT3_FEATURE_INCOMPAT_JOURNAL_DEV	0x00000008
 | 
			
		||||
#define EXT_SUPERBLOCK_OFFSET			0x400
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct ext2_super_block *es;
 | 
			
		||||
 
 | 
			
		||||
@@ -119,7 +119,7 @@ static uint8_t *get_attr_volume_id(struct vfat_dir_entry *dir, int count)
 | 
			
		||||
	return NULL;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_vfat(struct volume_id *id /*,uint64_t fat_partition_off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_vfat(struct volume_id *id /*,uint64_t fat_partition_off*/)
 | 
			
		||||
{
 | 
			
		||||
#define fat_partition_off ((uint64_t)0)
 | 
			
		||||
	struct vfat_super_block *vs;
 | 
			
		||||
 
 | 
			
		||||
@@ -131,7 +131,7 @@ struct hfsplus_vol_header {
 | 
			
		||||
#define HFS_NODE_LEAF			0xff
 | 
			
		||||
#define HFSPLUS_POR_CNID		1
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t off = 0;
 | 
			
		||||
	unsigned blocksize;
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@ struct high_sierra_volume_descriptor {
 | 
			
		||||
	uint8_t		version;
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	uint8_t *buf;
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@ struct jfs_super_block {
 | 
			
		||||
 | 
			
		||||
#define JFS_SUPERBLOCK_OFFSET			0x8000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_jfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_jfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct jfs_super_block *js;
 | 
			
		||||
 
 | 
			
		||||
@@ -42,7 +42,7 @@ struct mdp_super_block {
 | 
			
		||||
#define MD_RESERVED_BYTES		0x10000
 | 
			
		||||
#define MD_MAGIC			0xa92b4efc
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	uint64_t sboff;
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ struct swap_header_v1_2 {
 | 
			
		||||
 | 
			
		||||
#define LARGEST_PAGESIZE			0x4000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct swap_header_v1_2 *sw;
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,7 @@ struct BUG_bad_size_luks_phdr {
 | 
			
		||||
		1 : -1];
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_luks(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_luks(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct luks_phdr *header;
 | 
			
		||||
 
 | 
			
		||||
@@ -84,7 +84,7 @@ struct volume_info {
 | 
			
		||||
#define MFT_RECORD_ATTR_OBJECT_ID		0x40
 | 
			
		||||
#define MFT_RECORD_ATTR_END			0xffffffffu
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	unsigned sector_size;
 | 
			
		||||
 
 | 
			
		||||
@@ -80,7 +80,7 @@ struct ocfs2_super_block {
 | 
			
		||||
	uint8_t		s_uuid[OCFS2_VOL_UUID_LEN];	/* 128-bit uuid */
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ocfs2(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_ocfs2(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct ocfs2_super_block *os;
 | 
			
		||||
 
 | 
			
		||||
@@ -48,7 +48,7 @@ struct reiser4_super_block {
 | 
			
		||||
#define REISERFS1_SUPERBLOCK_OFFSET		0x2000
 | 
			
		||||
#define REISERFS_SUPERBLOCK_OFFSET		0x10000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_reiserfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_reiserfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct reiserfs_super_block *rs;
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ struct romfs_super {
 | 
			
		||||
	uint8_t name[];
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct romfs_super *rfs;
 | 
			
		||||
 
 | 
			
		||||
@@ -82,7 +82,7 @@ struct xenix_super {
 | 
			
		||||
#define XENIX_MAGIC				0x2b5544
 | 
			
		||||
#define SYSV_MAX_BLOCKSIZE			0x800
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_sysv(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_sysv(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct sysv_super *vs;
 | 
			
		||||
 
 | 
			
		||||
@@ -55,7 +55,7 @@ struct volume_structure_descriptor {
 | 
			
		||||
 | 
			
		||||
#define UDF_VSD_OFFSET			0x8000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct volume_descriptor *vd;
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,7 @@ struct hpt45x_meta {
 | 
			
		||||
#define HPT45X_MAGIC_BAD		0x5a7816fd
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_highpoint_37x_raid(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_highpoint_37x_raid(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	struct hpt37x_meta *hpt;
 | 
			
		||||
	uint32_t magic;
 | 
			
		||||
@@ -58,7 +58,7 @@ int volume_id_probe_highpoint_37x_raid(struct volume_id *id, uint64_t off)
 | 
			
		||||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_highpoint_45x_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_highpoint_45x_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	struct hpt45x_meta *hpt;
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ struct hpfs_super {
 | 
			
		||||
 | 
			
		||||
#define HPFS_SUPERBLOCK_OFFSET			0x2000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_hpfs(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_hpfs(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	struct hpfs_super *hs;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -31,7 +31,7 @@ struct isw_meta {
 | 
			
		||||
#define ISW_SIGNATURE		"Intel Raid ISM Cfg Sig. "
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_intel_software_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_intel_software_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
	struct isw_meta *isw;
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ struct lsi_meta {
 | 
			
		||||
 | 
			
		||||
#define LSI_SIGNATURE		"$XIDE$"
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_lsi_mega_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_lsi_mega_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
	struct lsi_meta *lsi;
 | 
			
		||||
 
 | 
			
		||||
@@ -34,7 +34,7 @@ struct lvm2_super_block {
 | 
			
		||||
 | 
			
		||||
#define LVM1_SB_OFF			0x400
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	struct lvm1_super_block *lvm;
 | 
			
		||||
 | 
			
		||||
@@ -56,7 +56,7 @@ int volume_id_probe_lvm1(struct volume_id *id, uint64_t off)
 | 
			
		||||
#define LVM2_LABEL_ID			"LABELONE"
 | 
			
		||||
#define LVM2LABEL_SCAN_SECTORS		4
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_lvm2(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_lvm2(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	const uint8_t *buf;
 | 
			
		||||
	unsigned soff;
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ struct mac_partition {
 | 
			
		||||
	uint8_t		type[32];
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_mac_partition_map(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_mac_partition_map(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	const uint8_t *buf;
 | 
			
		||||
	struct mac_driver_desc *driver;
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@ struct minix_super_block {
 | 
			
		||||
 | 
			
		||||
#define MINIX_SUPERBLOCK_OFFSET			0x400
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_minix(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_minix(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	struct minix_super_block *ms;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@ struct msdos_partition_entry {
 | 
			
		||||
#define is_raid(type) \
 | 
			
		||||
	(type == LINUX_RAID_PARTITION)
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	const uint8_t *buf;
 | 
			
		||||
	int i;
 | 
			
		||||
 
 | 
			
		||||
@@ -29,7 +29,7 @@ struct nvidia_meta {
 | 
			
		||||
 | 
			
		||||
#define NVIDIA_SIGNATURE		"NVIDIA"
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_nvidia_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_nvidia_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
	struct nvidia_meta *nv;
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ struct promise_meta {
 | 
			
		||||
#define PDC_CONFIG_OFF		0x1200
 | 
			
		||||
#define PDC_SIGNATURE		"Promise Technology, Inc."
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_promise_fasttrack_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_promise_fasttrack_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	static const unsigned short sectors[] = {
 | 
			
		||||
		63, 255, 256, 16, 399
 | 
			
		||||
 
 | 
			
		||||
@@ -41,7 +41,7 @@ struct silicon_meta {
 | 
			
		||||
 | 
			
		||||
#define SILICON_MAGIC		0x2F000000
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_silicon_medley_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_silicon_medley_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
	struct silicon_meta *sil;
 | 
			
		||||
 
 | 
			
		||||
@@ -162,7 +162,7 @@ struct ufs_super_block {
 | 
			
		||||
#define UFS_MAGIC_FEA			0x00195612
 | 
			
		||||
#define UFS_MAGIC_LFN			0x00095014
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ufs(struct volume_id *id, uint64_t off)
 | 
			
		||||
int FAST_FUNC volume_id_probe_ufs(struct volume_id *id, uint64_t off)
 | 
			
		||||
{
 | 
			
		||||
	static const short offsets[] = { 0, 8, 64, 256 };
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -36,7 +36,7 @@ struct via_meta {
 | 
			
		||||
 | 
			
		||||
#define VIA_SIGNATURE		0xAA55
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_via_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_via_raid(struct volume_id *id, uint64_t off, uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	uint64_t meta_off;
 | 
			
		||||
	struct via_meta *via;
 | 
			
		||||
 
 | 
			
		||||
@@ -45,8 +45,8 @@
 | 
			
		||||
#define ENABLE_FEATURE_VOLUMEID_UFS           0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
typedef int (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
 | 
			
		||||
typedef int (*probe_fptr)(struct volume_id *id /*, uint64_t off*/);
 | 
			
		||||
typedef int FAST_FUNC (*raid_probe_fptr)(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
 | 
			
		||||
typedef int FAST_FUNC (*probe_fptr)(struct volume_id *id /*, uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
static const raid_probe_fptr raid1[] = {
 | 
			
		||||
#if ENABLE_FEATURE_VOLUMEID_LINUXRAID
 | 
			
		||||
@@ -153,7 +153,7 @@ static const probe_fptr fs2[] = {
 | 
			
		||||
#endif
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size)
 | 
			
		||||
int FAST_FUNC volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size)
 | 
			
		||||
{
 | 
			
		||||
	unsigned i;
 | 
			
		||||
 | 
			
		||||
@@ -199,7 +199,7 @@ int volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/* open volume by device node */
 | 
			
		||||
struct volume_id *volume_id_open_node(int fd)
 | 
			
		||||
struct volume_id* FAST_FUNC volume_id_open_node(int fd)
 | 
			
		||||
{
 | 
			
		||||
	struct volume_id *id;
 | 
			
		||||
 | 
			
		||||
@@ -212,7 +212,7 @@ struct volume_id *volume_id_open_node(int fd)
 | 
			
		||||
 | 
			
		||||
#ifdef UNUSED
 | 
			
		||||
/* open volume by major/minor */
 | 
			
		||||
struct volume_id *volume_id_open_dev_t(dev_t devt)
 | 
			
		||||
struct volume_id* FAST_FUNC volume_id_open_dev_t(dev_t devt)
 | 
			
		||||
{
 | 
			
		||||
	struct volume_id *id;
 | 
			
		||||
	char *tmp_node[VOLUME_ID_PATH_MAX];
 | 
			
		||||
@@ -232,7 +232,7 @@ struct volume_id *volume_id_open_dev_t(dev_t devt)
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
void free_volume_id(struct volume_id *id)
 | 
			
		||||
void FAST_FUNC free_volume_id(struct volume_id *id)
 | 
			
		||||
{
 | 
			
		||||
	if (id == NULL)
 | 
			
		||||
		return;
 | 
			
		||||
 
 | 
			
		||||
@@ -83,9 +83,9 @@ struct volume_id {
 | 
			
		||||
//	const char	*type;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
struct volume_id *volume_id_open_node(int fd);
 | 
			
		||||
int volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
 | 
			
		||||
void free_volume_id(struct volume_id *id);
 | 
			
		||||
struct volume_id* FAST_FUNC volume_id_open_node(int fd);
 | 
			
		||||
int FAST_FUNC volume_id_probe_all(struct volume_id *id, /*uint64_t off,*/ uint64_t size);
 | 
			
		||||
void FAST_FUNC free_volume_id(struct volume_id *id);
 | 
			
		||||
 | 
			
		||||
/* util.h */
 | 
			
		||||
 | 
			
		||||
@@ -162,68 +162,68 @@ void volume_id_free_buffer(struct volume_id *id);
 | 
			
		||||
 | 
			
		||||
/* RAID */
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_highpoint_37x_raid(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int volume_id_probe_highpoint_45x_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_highpoint_37x_raid(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_highpoint_45x_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_intel_software_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_intel_software_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_lsi_mega_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_lsi_mega_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_nvidia_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_nvidia_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_promise_fasttrack_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_promise_fasttrack_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_silicon_medley_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_silicon_medley_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_via_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_via_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_lvm1(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int volume_id_probe_lvm2(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_lvm1(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_lvm2(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
/* FS */
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_cramfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_ext(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_vfat(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_vfat(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_hfs_hfsplus(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_hpfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_hpfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_iso9660(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_jfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_jfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_linux_swap(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_luks(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_luks(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_mac_partition_map(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_mac_partition_map(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_minix(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_minix(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_msdos_part_table(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_ocfs2(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_ocfs2(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_reiserfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_reiserfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_romfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_sysv(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_sysv(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_udf(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
//int volume_id_probe_ufs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
//int FAST_FUNC volume_id_probe_ufs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
int FAST_FUNC volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/);
 | 
			
		||||
 | 
			
		||||
POP_SAVED_FUNCTION_VISIBILITY
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@ struct xfs_super_block {
 | 
			
		||||
	uint64_t	fdblocks;
 | 
			
		||||
} PACKED;
 | 
			
		||||
 | 
			
		||||
int volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
int FAST_FUNC volume_id_probe_xfs(struct volume_id *id /*,uint64_t off*/)
 | 
			
		||||
{
 | 
			
		||||
#define off ((uint64_t)0)
 | 
			
		||||
	struct xfs_super_block *xs;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user