Print dependencies in inverse order.
.IP "\fB\-t, \-\-topology\fP"
Output info about block device topology.
-This option is equivalent to "-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE".
+This option is equivalent to "-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED,RQ-SIZE,WSAME".
.IP "\fB\-S, \-\-scsi\fP"
Output info about SCSI devices only. All partitions, slaves and holders devices are ignored.
.IP "\fB\-V, \-\-version\fP"
COL_DGRAN,
COL_DMAX,
COL_DZERO,
+ COL_WSAME,
COL_WWN,
COL_RAND,
COL_PKNAME,
[COL_PARTLABEL] = { "PARTLABEL", 0.1, 0, N_("partition LABEL") },
[COL_PARTUUID] = { "PARTUUID", 36, 0, N_("partition UUID") },
- [COL_RA] = { "RA", 4, TT_FL_RIGHT, N_("read-ahead of the device") },
+ [COL_RA] = { "RA", 3, TT_FL_RIGHT, N_("read-ahead of the device") },
[COL_RO] = { "RO", 1, TT_FL_RIGHT, N_("read-only device") },
[COL_RM] = { "RM", 1, TT_FL_RIGHT, N_("removable device") },
[COL_ROTA] = { "ROTA", 1, TT_FL_RIGHT, N_("rotational device") },
[COL_DGRAN] = { "DISC-GRAN", 6, TT_FL_RIGHT, N_("discard granularity") },
[COL_DMAX] = { "DISC-MAX", 6, TT_FL_RIGHT, N_("discard max bytes") },
[COL_DZERO] = { "DISC-ZERO", 1, TT_FL_RIGHT, N_("discard zeroes data") },
+ [COL_WSAME] = { "WSAME", 6, TT_FL_RIGHT, N_("write same max bytes") },
[COL_WWN] = { "WWN", 18, 0, N_("unique storage identifier") },
[COL_HCTL] = { "HCTL", 10, 0, N_("Host:Channel:Target:Lun for SCSI") },
[COL_TRANSPORT] = { "TRAN", 6, 0, N_("device transport type") },
else
tt_line_set_data(ln, col, "0");
break;
+ case COL_WSAME:
+ if (lsblk->bytes)
+ p = sysfs_strdup(&cxt->sysfs, "queue/write_same_max_bytes");
+ else {
+ uint64_t x;
+
+ if (sysfs_read_u64(&cxt->sysfs,
+ "queue/write_same_max_bytes", &x) == 0)
+ p = size_to_human_string(SIZE_SUFFIX_1LETTER, x);
+ }
+ tt_line_set_data(ln, col, p ? p : "0");
+ break;
};
}
columns[ncolumns++] = COL_SCHED;
columns[ncolumns++] = COL_RQ_SIZE;
columns[ncolumns++] = COL_RA;
+ columns[ncolumns++] = COL_WSAME;
break;
case 'S':
lsblk->nodeps = 1;