HomeFreeBSD

Added error for writing to /dev/ on Linux

Description

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

Details

Provenance
rincebrain_gmail.comAuthored on Jun 10 2021, 12:57 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jun 10 2021, 5:50 PM
Parents
rG4cf3e48a3ba6: libzfs: format safety
Branches
Unknown
Tags
Unknown