Skip to contentSkip to conversation

lsblk: Add SERIAL column to the SCSI output mode.

PATCH Applied Milan Broz 2 participants 2 messages Jul 12, 2020 – Jul 14, 2020 Util-Linux package

lore
Share & tools
lore

Milan Broz

author
#0 lore raw

PATCH 1/1 lsblk: Add SERIAL column to the SCSI output mode.

If there are several identical disks, disk serial number can help to distinguish exact drive.

This could be helpful in debugging RAID failures and similar problems.

---
 misc-utils/lsblk.c | 1 +
 1 file changed, 1 insertion(+)
misc-utils/lsblk.c +1 -0
index 3f21dcee2..1ec709019 100644
@@ -1994,6 +1994,7 @@ int main(int argc, char *argv[])
 			add_uniq_column(COL_VENDOR);
 			add_uniq_column(COL_MODEL);
 			add_uniq_column(COL_REV);
+			add_uniq_column(COL_SERIAL);
 			add_uniq_column(COL_TRANSPORT);
 			break;
 		case 'T':
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Milan Broz
 misc-utils/lsblk.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com