This is a known problem: 6349494 'zfs list' output annoying for even moderately long dataset names
The fix is fairly straightforward. We don't need some complicated method of specifying columns widths. We just need to do two passes over the data (which we already have in hand for sorting purposes) to find out the maximum length of each column. - Eric On Mon, Jul 10, 2006 at 09:58:46AM -0400, Jeff Victor wrote: > > > > My interpretation: more specific control of column widths and flexibility > to place the name in the first column. Further, to many people, tabs are > evil. > > For example, instead of: > > bash-3.00# zfs list > NAME USED AVAIL REFER MOUNTPOINT > dns-pool 197K 43.1G 25.5K /dns-pool > dns-pool/zones 100K 43.1G 25.5K /dns-pool/zones > dns-pool/zones/dns1 74.5K 43.1G 25.5K /dns-pool/zones/dns1 > dns-pool/zones/dns1/local 24.5K 43.1G 24.5K /dns-pool/zones/dns1/local > dns-pool/zones/dns1/root 24.5K 43.1G 24.5K /dns-pool/zones/dns1/root > > > the desire is for: > > bash-3.00# zfs list > NAME USED AVAIL REFER MOUNTPOINT > dns-pool 197K 43.1G 25.5K /dns-pool > dns-pool/zones 100K 43.1G 25.5K /dns-pool/zones > dns-pool/zones/dns1 74.5K 43.1G 25.5K /dns-pool/zones/dns1 > dns-pool/zones/dns1/local 24.5K 43.1G 24.5K /dns-pool/zones/dns1/local > dns-pool/zones/dns1/root 24.5K 43.1G 24.5K /dns-pool/zones/dns1/root > > > I suggested a syntax similar to "ps -o <format>", viz: > > zfs list -o \ > name="NAME-----------------------",used="USED----",available,referenced,mountpoint > > Users would probably specify spaces instead of hyphens, but it is difficult > to show that effectively in word-wrapped e-mail readers. -- Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss