freebsd-nq/cmd/zfs
Rich Ercolani 860051f1d1
Added error for writing to /dev/ on Linux
Starting in Linux 5.10, trying to write to /dev/{null,zero} errors out.
Prefer to inform people when this happens rather than hoping they guess
what's wrong.

Reviewed-by: Antonio Russo <aerusso@aerusso.net>
Reviewed-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes:  #11991
2021-06-09 18:57:57 -06:00
..
.gitignore
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
zfs_iter.c
zfs_iter.h
zfs_main.c Added error for writing to /dev/ on Linux 2021-06-09 18:57:57 -06:00
zfs_project.c
zfs_projectutil.h
zfs_util.h