[PATCH 0/2] lvm shell enhancements

Tony Asleson <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
In an effort to avoid forking & exec'ing the lvm command line a user can create
a sub process and pipe commands to/from lvm utilizing lvm shell.  

However, this approach suffers from the following:
1. lvm shell uses GNU readline which echos STDIN to STDOUT and it also appends
   additional characters to STDOUT when doing this which complicates the code    
   communicating with lvm shell.
2. lvm shell ouputs messages to STDERR even when the command is successful, thus
   the client has no way to easily determine if the command completed
   successfully or not.

This patch series addresses these two issues, please review.

Thanks!

Tony Asleson (2):
  lvm.c: Don't use GNU readline when no tty
  lvm.c: Add return value lvm shell prompt

 tools/lvm.c |   71 +++++++++++++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 60 insertions(+), 11 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.