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:
parent
4d6043f2b7
commit
d2782af461
@ -1153,9 +1153,6 @@ typedef struct ddt_histogram {
|
|||||||
|
|
||||||
#define ZFS_SUPER_MAGIC 0x2fc12fc1
|
#define ZFS_SUPER_MAGIC 0x2fc12fc1
|
||||||
|
|
||||||
/* general zvol path */
|
|
||||||
#define ZVOL_DIR "/dev"
|
|
||||||
|
|
||||||
#define ZVOL_MAJOR 230
|
#define ZVOL_MAJOR 230
|
||||||
#define ZVOL_MINOR_BITS 4
|
#define ZVOL_MINOR_BITS 4
|
||||||
#define ZVOL_MINOR_MASK ((1U << ZVOL_MINOR_BITS) - 1)
|
#define ZVOL_MINOR_MASK ((1U << ZVOL_MINOR_BITS) - 1)
|
||||||
|
@ -98,6 +98,7 @@
|
|||||||
|
|
||||||
#include "zfs_namecheck.h"
|
#include "zfs_namecheck.h"
|
||||||
|
|
||||||
|
#define ZVOL_DIR "/dev/zvol/"
|
||||||
#define ZVOL_DUMPSIZE "dumpsize"
|
#define ZVOL_DUMPSIZE "dumpsize"
|
||||||
|
|
||||||
#ifdef ZVOL_LOCK_DEBUG
|
#ifdef ZVOL_LOCK_DEBUG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user