Hi again,

New requests below.

Jean-Pierre André wrote:
> Hi Matthew,
>
> Matthew Boyle wrote:
>> Hi,
>>
>> I've recently started using ntfsclone in a couple of scripts. 
>> Unfortunately, the lack of any way to suppress the progress bars 
>> makes this very inconvenient, since it produces a huge amount of 
>> messy output.
>>
>> This patch adds a --quiet option that turns off the progress bars.  
>> It also turns it off if it detects that the msg_out stream is not 
>> connected to a tty.  The output is otherwise unchanged.

You also need to add a 'q' to sopt for the new option
to be effective :

- static const char *sopt = "-dfhmo:O:rst";
+ static const char *sopt = "-dfhmo:O:qrst";

> +#ifdef HAVE_UNISTD_H
> +     /* avoid showing a progress-bar unless it's being sent to a terminal */
> +     if (!isatty(fileno(msg_out)))
> +             opt.quiet++;
> +#endif
>    

This is not desirable : it would prevent an application
relying on ntfsclone to display a progress bar in its GUI.

Regards

Jean-Pierre



------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to