Skip to content

Commit

Permalink
Fix ZVOL_DIR
Browse files Browse the repository at this point in the history
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 openzfs#10337
  • Loading branch information
Ryan Moeller authored May 16, 2020
1 parent 4d6043f commit d2782af
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions include/sys/fs/zfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,6 @@ typedef struct ddt_histogram {

#define ZFS_SUPER_MAGIC 0x2fc12fc1

/* general zvol path */
#define ZVOL_DIR "/dev"

#define ZVOL_MAJOR 230
#define ZVOL_MINOR_BITS 4
#define ZVOL_MINOR_MASK ((1U << ZVOL_MINOR_BITS) - 1)
Expand Down
1 change: 1 addition & 0 deletions module/os/freebsd/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

#include "zfs_namecheck.h"

#define ZVOL_DIR "/dev/zvol/"
#define ZVOL_DUMPSIZE "dumpsize"

#ifdef ZVOL_LOCK_DEBUG
Expand Down

0 comments on commit d2782af

Please sign in to comment.