Subject: bug#51407: parted didn’t check the returned sense data

From: <[email-masked]>
Date: Wed, 27 Oct 2021 09:20:59 +0000

Hi,
Some further information.

  1.  We already tried the latest parted-3.4.tar.xz, issue still exists.
  2.  For below sense data, the corresponding KCQ=2:04:0E, i.e. SENSE KEY: 2, ADDITIONAL SENSE CODE: 04, ADDITIONAL SENSE CODE QUALIFIER: 0E.

Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Sense Key : Not Ready [current] [descriptor]

Oct 13 01:30:02 localhost kernel: sd 13:0:3:0: [sde] Add. Sense: Logical unit not ready, security session in progress

You can find ASC and ASCQ assignments from SPC spec as below.

Regards,
Johnson