Re: [PATCH 1/2] scsi: target: core: Add sense reason for space allocation errors

Martin K. Petersen
2021-10-21T03:22:02Z

Konstantin,

> According to SBC-3 4.7.3.6 this sense reason shall be used in situations
> where thin provisioned logical unit cannot satisfy the write request due
> to the lack of free blocks.

> + [TCM_SPACE_ALLOCATION_FAILED] = {
> + .key = DATA_PROTECT,
> + .asc = 0x27,
> + .ascq = 0x07, /* SPACE ALLOCATION FAILED WRITE PROTECT */
> + },

How do we know this is a permanent condition and not a temporary space
exhaustion?

--
Martin K. Petersen Oracle Linux Engineering