]> git.proxmox.com Git - mirror_zfs-debian.git/commit
Use udev to create /dev/zvol/[dataset_name] links
authorFajar A. Nugraha <github@fajar.net>
Tue, 22 Feb 2011 10:58:44 +0000 (17:58 +0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 25 Feb 2011 17:43:19 +0000 (09:43 -0800)
commit4c0d8e50b99b4f3b4a9b7bc67ac7fc4e406f5755
tree4d1baadba665aa9f15ac34d729f41440c1edf24c
parent61da501f9d93f305d21d5d61fa3ecd476bdbac93
Use udev to create /dev/zvol/[dataset_name] links

This commit allows zvols with names longer than 32 characters, which
fixes issue on https://github.com/behlendorf/zfs/issues/#issue/102.

Changes include:
- use /dev/zd* device names for zvol, where * is the device minor
  (include/sys/fs/zfs.h, module/zfs/zvol.c).
- add BLKZNAME ioctl to get dataset name from userland
  (include/sys/fs/zfs.h, module/zfs/zvol.c, cmd/zvol_id).
- add udev rule to create /dev/zvol/[dataset_name] and the legacy
  /dev/[dataset_name] symlink. For partitions on zvol, it will create
  /dev/zvol/[dataset_name]-part* (etc/udev/rules.d/60-zvol.rules,
  cmd/zvol_id).

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
cmd/Makefile.am
cmd/Makefile.in
cmd/zvol_id/Makefile.am [new file with mode: 0644]
cmd/zvol_id/Makefile.in [new file with mode: 0644]
cmd/zvol_id/zvol_id_main.c [new file with mode: 0644]
configure
configure.ac
etc/udev/rules.d/60-zvol.rules [new file with mode: 0644]
include/sys/fs/zfs.h
module/zfs/zvol.c