Skip to content

Commit

Permalink
Rough character driver implementation For ZVOL: Requires Testing
Browse files Browse the repository at this point in the history
Signed-off-by: Ameer Hamza <[email protected]>
  • Loading branch information
ixhamza committed Aug 28, 2023
1 parent f8c61e8 commit 268a2c0
Show file tree
Hide file tree
Showing 2 changed files with 430 additions and 5 deletions.
2 changes: 2 additions & 0 deletions include/sys/fs/zfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1332,10 +1332,12 @@ typedef struct ddt_histogram {
#define ZVOL_DIR "/dev/zvol/"

#define ZVOL_MAJOR 230
#define ZVOL_CDEV_MAJOR 231
#define ZVOL_MINOR_BITS 4
#define ZVOL_MINOR_MASK ((1U << ZVOL_MINOR_BITS) - 1)
#define ZVOL_MINORS (1 << 4)
#define ZVOL_DEV_NAME "zd"
#define ZVOL_CDEV_NAME "zc"

#define ZVOL_PROP_NAME "name"
#define ZVOL_DEFAULT_BLOCKSIZE 16384
Expand Down
Loading

0 comments on commit 268a2c0

Please sign in to comment.