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 *);
/*
#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
/*
char vds_devphys[128];
} vdev_dev_strs_t;
+#ifdef HAVE_LIBUDEV
/*
* Obtain the persistent device id string (describes what)
*
return (udev_device_get_property_value(dev, "DEVLINKS") != NULL);
#endif
}
+#endif /* HAVE_LIBUDEV */
/*
* Wait up to timeout_ms for udev to set up the device node. The device is