summaryrefslogtreecommitdiffstats
path: root/lib/libzpool
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2019-06-20 04:27:31 +0900
committerBrian Behlendorf <[email protected]>2019-06-19 12:27:31 -0700
commitfb0be12d7b6db16eabfe8f91da12da7d7854ea9a (patch)
tree63153c91ff8557d6ea99bd157efd09fa2310f651 /lib/libzpool
parent0b755ec3d5ba531d2662da54fb9ac62627ce2c66 (diff)
Use ZFS_DEV macro instead of literals
The rest of the code/comments use ZFS_DEV, so sync with that. Reviewed-by: Tony Hutter <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Richard Elling <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes #8912
Diffstat (limited to 'lib/libzpool')
-rw-r--r--lib/libzpool/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libzpool/util.c b/lib/libzpool/util.c
index ad05d2239..67bc209ce 100644
--- a/lib/libzpool/util.c
+++ b/lib/libzpool/util.c
@@ -223,7 +223,7 @@ pool_active(void *unused, const char *name, uint64_t guid,
* Use ZFS_IOC_POOL_SYNC to confirm if a pool is active
*/
- fd = open("/dev/zfs", O_RDWR);
+ fd = open(ZFS_DEV, O_RDWR);
if (fd < 0)
return (-1);