]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsblk: Add SERIAL column to the SCSI output mode.
authorMilan Broz <gmazyland@gmail.com>
Sun, 12 Jul 2020 10:40:48 +0000 (12:40 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 14 Jul 2020 08:37:56 +0000 (10:37 +0200)
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

index 3f21dcee2bfbb84b3ff72dfbd12460a49226768e..1ec709019c9b31fb31099406e8e6277b8ddf1ff9 100644 (file)
@@ -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':