mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix libudev dependency in libzutil
ZFS should be able to build without libudev installed. The recent change for libzutil inadvertently broke that. Make the libudev code conditional in zutil_import.c to resolve the build failure. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Don Brady <don.brady@delphix.com> Closes #8097
This commit is contained in:
committed by
Brian Behlendorf
parent
f0f9786545
commit
95692927f2
+7
-1
@@ -79,10 +79,16 @@ extern const char * const * zpool_default_search_paths(size_t *count);
|
||||
extern int zpool_read_label(int, nvlist_t **, int *);
|
||||
extern int zpool_label_disk_wait(const char *, int);
|
||||
|
||||
#ifdef HAVE_LIBUDEV
|
||||
struct udev_device;
|
||||
|
||||
extern int zfs_device_get_devid(struct udev_device *, char *, size_t);
|
||||
extern int zfs_device_get_physical(struct udev_device *, char *, size_t);
|
||||
#else
|
||||
#define zfs_device_get_devid(dev, bufptr, buflen) (ENODATA)
|
||||
#define zfs_device_get_physical(dev, bufptr, buflen) (ENODATA)
|
||||
#endif
|
||||
|
||||
extern void update_vdev_config_dev_strs(nvlist_t *);
|
||||
|
||||
/*
|
||||
@@ -108,7 +114,7 @@ extern char *zfs_get_enclosure_sysfs_path(const char *);
|
||||
#ifdef HAVE_LIBUDEV
|
||||
extern boolean_t is_mpath_whole_disk(const char *);
|
||||
#else
|
||||
#define is_mpath_whole_disk(path) (B_FALSE);
|
||||
#define is_mpath_whole_disk(path) (B_FALSE)
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user