On 8 September 2017 at 16:38, Hugo Mills <h...@carfax.org.uk> wrote: [..] >> sometimes I'm really thinking about start rewrite btrfs-progs to make >> btrfs basic tools syntax as similar as it is only possible to ZFS zfs, >> zpool and zdb commands on using which in +90% cases you can guess how >> necessary syntax must look like without looking on man pages. >> >> Any volunteers want to join to help implement something like this? >> Maybe someone already started doing this? > > The main complaint that can be directed at the btrfs command is > that its output is rarely machine-processable. It would therefore make > sense to have a "--table" or "--structured" mode for output, which > would be more trivially parsable by shell tools.
Output of the btrfs command it is coooooompletely different pair of shoes. On making btrfs tools similar to ZFS analogues *obviously* output should be as same similar. By this would possible to solve complains about unreadable output in one go. For example zfs command parseable output is possible to generate by add -p switch in those subcommands where it is needed (no --tables or --structures .. just one switch). Instead reinventing the wheel just please try to look first how it is already done in completely predictable/guessable way: https://www.freebsd.org/cgi/man.cgi?query=zfs&sektion=8 https://www.freebsd.org/cgi/man.cgi?query=zpool&sektion=8 kloczek -- Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html