Util-Linux Archive on lore.kernel.org
 help / color / 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	[flat|nested] 2+ messages in thread

* Re: [PATCH] lsblk: Add SERIAL column to the SCSI output mode.
  2020-07-12 10:40 [PATCH] lsblk: Add SERIAL column to the SCSI output mode Milan Broz
@ 2020-07-14  8:52 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2020-07-14  8:52 UTC (permalink / raw)
  To: Milan Broz; +Cc: util-linux

On Sun, Jul 12, 2020 at 12:40:48PM +0200, Milan Broz wrote:
>  misc-utils/lsblk.c | 1 +
>  1 file changed, 1 insertion(+)

Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


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

end of thread, back to index

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

Util-Linux Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/util-linux/0 util-linux/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 util-linux util-linux/ https://lore.kernel.org/util-linux \
		util-linux@vger.kernel.org
	public-inbox-index util-linux

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.util-linux


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git