summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2020-05-16 13:10:38 -0400
committerGitHub <[email protected]>2020-05-16 10:10:38 -0700
commitd2782af461c62350abb5abe439b57961c72f9cee (patch)
tree578d65276fb5f11a80b0ac2cd5c4b94e51df8839 /module
parent4d6043f2b74ded58d36d3254acd12da16023c844 (diff)
Fix ZVOL_DIR
We only use ZVOL_DIR on FreeBSD, and on FreeBSD it isn't correct. Move the definition to the file where it is needed, and define it as /dev/zvol/. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #10337
Diffstat (limited to 'module')
-rw-r--r--module/os/freebsd/zfs/zvol_os.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/os/freebsd/zfs/zvol_os.c b/module/os/freebsd/zfs/zvol_os.c
index bef97a9b3..caef0b55b 100644
--- a/module/os/freebsd/zfs/zvol_os.c
+++ b/module/os/freebsd/zfs/zvol_os.c
@@ -98,6 +98,7 @@
#include "zfs_namecheck.h"
+#define ZVOL_DIR "/dev/zvol/"
#define ZVOL_DUMPSIZE "dumpsize"
#ifdef ZVOL_LOCK_DEBUG