]> git.proxmox.com Git - mirror_zfs.git/commit
Added error for writing to /dev/ on Linux
authorRich Ercolani <214141+rincebrain@users.noreply.github.com>
Thu, 10 Jun 2021 00:57:57 +0000 (20:57 -0400)
committerGitHub <noreply@github.com>
Thu, 10 Jun 2021 00:57:57 +0000 (18:57 -0600)
commit860051f1d1ef7ee995188b852d8da36bce85b1dc
treea351cbf5a0eae570e0afbe8e393cf93b30e09944
parent327c904615db9cfcd8c9e07cb56b8e36050a4048
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
cmd/zfs/zfs_main.c
lib/libzfs/libzfs_sendrecv.c