Skip to content

Commit 19c3fd3

Browse files
author
Atsushi Abe
committed
Return an error without issuing GRAO command in LTO9HH (#348)
1 parent 4823244 commit 19c3fd3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/tape_drivers/linux/sg/sg_tape.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5031,8 +5031,9 @@ int sg_grao(void *device, unsigned char *buf, const uint32_t len)
50315031

50325032
if (IS_LTO(priv->drive_type)) {
50335033
if ( DRIVE_GEN(priv->drive_type) == 0x05 || DRIVE_GEN(priv->drive_type) == 0x06 ||
5034-
DRIVE_GEN(priv->drive_type) == 0x07 || DRIVE_GEN(priv->drive_type) == 0x08 ) {
5035-
/* LTO6-LTO8 don't support RAO commands */
5034+
DRIVE_GEN(priv->drive_type) == 0x07 || DRIVE_GEN(priv->drive_type) == 0x08 ||
5035+
DRIVE_GEN(priv->drive_type) == DRIVE_LTO9_HH ) {
5036+
/* LTO5-LTO8 and LTO9-HH don't support RAO commands */
50365037
return -EDEV_UNSUPPORETD_COMMAND;
50375038
}
50385039
}

0 commit comments

Comments
 (0)