summaryrefslogtreecommitdiff
path: root/misc-utils
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2010-12-26 23:53:21 +0100
committerKarel Zak <kzak@redhat.com>2010-12-26 23:53:21 +0100
commit61cbc01a89739ff7c3f668108b15a5ec86963f9b (patch)
treeacea2855b075e6fc10d0d84402dad8d99fcc9985 /misc-utils
parent6bec87105cb4f2e5baf9cde14174bee8376e3b32 (diff)
downloadutil-linux-old-61cbc01a89739ff7c3f668108b15a5ec86963f9b.tar.gz
lsblk: rename "RA" column to "RE"
The RA abbreviation is usually used for readahead, the column in lsblk(8) means removable. Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/lsblk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c
index c07e30a7..9d0f0160 100644
--- a/misc-utils/lsblk.c
+++ b/misc-utils/lsblk.c
@@ -63,7 +63,7 @@ enum {
COL_LABEL,
COL_UUID,
COL_RO,
- COL_RA,
+ COL_RE,
COL_MODEL,
COL_SIZE,
COL_OWNER,
@@ -98,7 +98,7 @@ static struct colinfo infos[__NCOLUMNS] = {
[COL_LABEL] = { "LABEL", 0.1, 0, N_("filesystem LABEL") },
[COL_UUID] = { "UUID", 36, 0, N_("filesystem UUID") },
[COL_RO] = { "RO", 1, TT_FL_RIGHT, N_("read-only device") },
- [COL_RA] = { "RA", 1, TT_FL_RIGHT, N_("removable device") },
+ [COL_RE] = { "RE", 1, TT_FL_RIGHT, N_("removable device") },
[COL_ROTA] = { "ROTA", 1, TT_FL_RIGHT, N_("rotational device") },
[COL_MODEL] = { "MODEL", 0.1, TT_FL_TRUNC, N_("device identifier") },
[COL_SIZE] = { "SIZE", 6, TT_FL_RIGHT, N_("size of the device") },
@@ -570,7 +570,7 @@ static void set_tt_data(struct blkdev_cxt *cxt, int col, int id, struct tt_line
tt_line_set_data(ln, col, is_readonly_device(cxt) ?
xstrdup("1") : xstrdup("0"));
break;
- case COL_RA:
+ case COL_RE:
p = sysfs_strdup(cxt, "removable");
if (!p && cxt->parent)
p = sysfs_strdup(cxt->parent, "removable");
@@ -984,7 +984,7 @@ int main(int argc, char *argv[])
if (!ncolumns) {
columns[ncolumns++] = COL_NAME;
columns[ncolumns++] = COL_MAJMIN;
- columns[ncolumns++] = COL_RA;
+ columns[ncolumns++] = COL_RE;
columns[ncolumns++] = COL_SIZE;
columns[ncolumns++] = COL_RO;
columns[ncolumns++] = COL_TARGET;