diff options
Diffstat (limited to 'util-linux/volume_id/volume_id.c')
-rw-r--r-- | util-linux/volume_id/volume_id.c | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/util-linux/volume_id/volume_id.c b/util-linux/volume_id/volume_id.c index a26e2bcf0..de9aae2ce 100644 --- a/util-linux/volume_id/volume_id.c +++ b/util-linux/volume_id/volume_id.c | |||
@@ -20,6 +20,31 @@ | |||
20 | 20 | ||
21 | #include "volume_id_internal.h" | 21 | #include "volume_id_internal.h" |
22 | 22 | ||
23 | |||
24 | /* Some detection routines do not set label or uuid anyway, | ||
25 | * so they are disabled. */ | ||
26 | |||
27 | /* Looks for partitions, we don't use it: */ | ||
28 | #define ENABLE_FEATURE_VOLUMEID_MAC 0 | ||
29 | /* #define ENABLE_FEATURE_VOLUMEID_MSDOS 0 - NB: this one | ||
30 | * was not properly added to probe table anyway - ??! */ | ||
31 | |||
32 | /* None of RAIDs have label or uuid, except LinuxRAID: */ | ||
33 | #define ENABLE_FEATURE_VOLUMEID_HIGHPOINTRAID 0 | ||
34 | #define ENABLE_FEATURE_VOLUMEID_ISWRAID 0 | ||
35 | #define ENABLE_FEATURE_VOLUMEID_LSIRAID 0 | ||
36 | #define ENABLE_FEATURE_VOLUMEID_LVM 0 | ||
37 | #define ENABLE_FEATURE_VOLUMEID_NVIDIARAID 0 | ||
38 | #define ENABLE_FEATURE_VOLUMEID_PROMISERAID 0 | ||
39 | #define ENABLE_FEATURE_VOLUMEID_SILICONRAID 0 | ||
40 | #define ENABLE_FEATURE_VOLUMEID_VIARAID 0 | ||
41 | |||
42 | /* These filesystems also have no label or uuid: */ | ||
43 | #define ENABLE_FEATURE_VOLUMEID_MINIX 0 | ||
44 | #define ENABLE_FEATURE_VOLUMEID_HPFS 0 | ||
45 | #define ENABLE_FEATURE_VOLUMEID_UFS 0 | ||
46 | |||
47 | |||
23 | typedef int (*raid_probe_fptr)(struct volume_id *id, uint64_t off, uint64_t size); | 48 | typedef int (*raid_probe_fptr)(struct volume_id *id, uint64_t off, uint64_t size); |
24 | typedef int (*probe_fptr)(struct volume_id *id, uint64_t off); | 49 | typedef int (*probe_fptr)(struct volume_id *id, uint64_t off); |
25 | 50 | ||
@@ -68,10 +93,9 @@ static const probe_fptr fs1[] = { | |||
68 | #if ENABLE_FEATURE_VOLUMEID_FAT | 93 | #if ENABLE_FEATURE_VOLUMEID_FAT |
69 | volume_id_probe_vfat, | 94 | volume_id_probe_vfat, |
70 | #endif | 95 | #endif |
71 | // This one only looks for partitions, we don't use it | 96 | #if ENABLE_FEATURE_VOLUMEID_MAC |
72 | //#if ENABLE_FEATURE_VOLUMEID_MAC | 97 | volume_id_probe_mac_partition_map, |
73 | // volume_id_probe_mac_partition_map, | 98 | #endif |
74 | //#endif | ||
75 | #if ENABLE_FEATURE_VOLUMEID_XFS | 99 | #if ENABLE_FEATURE_VOLUMEID_XFS |
76 | volume_id_probe_xfs, | 100 | volume_id_probe_xfs, |
77 | #endif | 101 | #endif |