util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] lsblk: Add SERIAL column to the SCSI output mode.
@ 2020-07-12 10:40 Milan Broz
  2020-07-14  8:52 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Milan Broz @ 2020-07-12 10:40 UTC (permalink / raw)
  To: util-linux; +Cc: Milan Broz

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.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
---
 misc-utils/lsblk.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index 3f21dcee2..1ec709019 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -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':
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-14  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 10:40 [PATCH] lsblk: Add SERIAL column to the SCSI output mode Milan Broz
2020-07-14  8:52 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).