Kernel commit 356ba2a8bc8d ("scsi: target: tcmu: Make
gr_support and alua_support attributes writable"), made the
alua_support and pgr_support sysfs attributes writable
so that individual target drivers could change them.
This means that the filesystem attributes might saw
read-write, but the attributes can in fact be read-only.
When a user tries to write to them, in this case,
they EINVAL.
This causes rtslib to throw error messages when one does
a "targetctl restore" like these:
While these messages are benign, they will cause confusion, since
(1) there's nothing wrong, and (2) they didn't occur before above-
mentioned kernel commit.
This fix tells rtslib to ignore errno 22 for these two attributes.
Kernel commit 356ba2a8bc8d ("scsi: target: tcmu: Make gr_support and alua_support attributes writable"), made the alua_support and pgr_support sysfs attributes writable so that individual target drivers could change them. This means that the filesystem attributes might saw read-write, but the attributes can in fact be read-only. When a user tries to write to them, in this case, they EINVAL.
This causes rtslib to throw error messages when one does a "targetctl restore" like these:
While these messages are benign, they will cause confusion, since (1) there's nothing wrong, and (2) they didn't occur before above- mentioned kernel commit.
This fix tells rtslib to ignore errno 22 for these two attributes.