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 <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #10337
This commit is contained in:
Ryan Moeller
2020-05-16 13:10:38 -04:00
committed by GitHub
parent 4d6043f2b7
commit d2782af461
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -98,6 +98,7 @@
#include "zfs_namecheck.h"
#define ZVOL_DIR "/dev/zvol/"
#define ZVOL_DUMPSIZE "dumpsize"
#ifdef ZVOL_LOCK_DEBUG