Use ZFS_DEV macro instead of literals

The rest of the code/comments use ZFS_DEV, so sync with that.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8912
This commit is contained in:
Tomohiro Kusumi
2019-06-20 04:27:31 +09:00
committed by Tony Hutter
parent 2087b6cf49
commit fb6f6b47d6
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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);