bcachefs: Fix BCH_IOCTL_DISK_SET_STATE
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 25 Nov 2022 23:29:36 +0000 (18:29 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:47 +0000 (17:09 -0400)
commite2fcf7f6306f12c50ad2ec655fdb8d1918c23bdd
tree197a7cf7d6abb1c77cd1b805fe99836dfc29387d
parent447e92274af6c7e8dcdc7921a6af238afcc87a0a
bcachefs: Fix BCH_IOCTL_DISK_SET_STATE

 - Ensure we print an error message if necessary.

   Ideally we'd return the precise error code to userspace and leave
   printing the error message to the userspace tool, but we haven't
   decided to make our private error codes ABI-stable yet.

 - Return standard error code to userspace

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/chardev.c