From 6c2856726fbae681649930d9620d9087080e58fc Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Mon, 17 Dec 2012 10:33:57 +0900 Subject: Fix using zvol as slog device During the original ZoL port the vdev_uses_zvols() function was disabled until it could be properly implemented. This prevented a zpool from use a zvol for its slog device. This patch implements that missing functionality by adding a zvol_is_zvol() function to zvol.c. Given the full path to a device it will lookup the device and verify its major number against the registered zvol major number for the system. If they match we know the device is a zvol. Signed-off-by: Brian Behlendorf Closes #1131 --- include/sys/vdev.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/sys/vdev.h') diff --git a/include/sys/vdev.h b/include/sys/vdev.h index 50dbe695c..005578398 100644 --- a/include/sys/vdev.h +++ b/include/sys/vdev.h @@ -48,7 +48,6 @@ extern int zfs_nocacheflush; extern int vdev_open(vdev_t *); extern void vdev_open_children(vdev_t *); -extern boolean_t vdev_uses_zvols(vdev_t *); extern int vdev_validate(vdev_t *, boolean_t); extern void vdev_close(vdev_t *); extern int vdev_create(vdev_t *, uint64_t txg, boolean_t isreplace); -- cgit v1.2.3