[Bug 1406133] Re: findmnt: libsmartcols ASCII art problem [patch]
Roman Odaisky
1406133 at bugs.launchpad.net
Sun Dec 28 20:56:19 UTC 2014
Attaching full sample of incorrect output in a separate file.
** Attachment added: "libsmartcols-art-problem.txt"
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1406133/+attachment/4288864/+files/libsmartcols-art-problem.txt
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1406133
Title:
findmnt: libsmartcols ASCII art problem [patch]
Status in util-linux package in Ubuntu:
New
Bug description:
The libsmartcols component used by findmnt to draw the filesystem tree
is smart enough to wrap lines in case the output doesn’t fit into the
screen. However, it fails to draw the lines correctly in this case.
Attached patch fixes the problem. Someone more knowledgeable in
libsmartcols internals might want to change the buffer size from an
arbitrary 1024 to something taken from actual data, the best way to do
that eludes me.
Sample of incorrect output:
--%<----
├─/boot /dev/sda1 ext3 rw,relatime,data=ordered
├─/usr /dev/mapper/vgshadow-ubuntu_usr
ext4 rw,noatime,data=ordered
├─/var /dev/mapper/vgshadow-ubuntu_var
ext4 rw,noatime,data=ordered
├─/home /dev/mapper/vgshadow-home
ext4 rw,noatime,data=ordered
└─/srv /dev/mapper/vgshadow-srv
reiserfs rw,noatime,notail
--%<----
Patch adds missing vertical lines at any level necessary.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1406133/+subscriptions
More information about the foundations-bugs
mailing list