Skip to content

Commit

Permalink
Move ZVOL_DIR back to zfs.h
Browse files Browse the repository at this point in the history
Issue #10361

This was previously moved because nothing else in-tree uses it, but
evidently DilOS uses it out of tree.

Signed-off-by: Ryan Moeller <freqlabs@freebsd.org>
  • Loading branch information
Ryan Moeller committed Aug 7, 2020
1 parent 0cab797 commit 61bca71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/sys/fs/zfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1173,6 +1173,9 @@ typedef struct ddt_histogram {

#define ZFS_SUPER_MAGIC 0x2fc12fc1

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

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

#include "zfs_namecheck.h"

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

#ifdef ZVOL_LOCK_DEBUG
Expand Down

0 comments on commit 61bca71

Please sign in to comment.