]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/scsi_error.c
[SCSI] Log thin provisioning threshold event
[karo-tx-linux.git] / drivers / scsi / scsi_error.c
index 633c2395a92a2c918cfd068d541f99063f9470f2..abea2cf05c2e41cc1b7a7df581ae74cf0db56768 100644 (file)
@@ -321,6 +321,12 @@ static int scsi_check_sense(struct scsi_cmnd *scmd)
                                    "changed. The Linux SCSI layer does not "
                                    "automatically adjust these parameters.\n");
 
+               if (sshdr.asc == 0x38 && sshdr.ascq == 0x07)
+                       scmd_printk(KERN_WARNING, scmd,
+                                   "Warning! Received an indication that the "
+                                   "LUN reached a thin provisioning soft "
+                                   "threshold.\n");
+
                /*
                 * Pass the UA upwards for a determination in the completion
                 * functions.