Stefan Berger
2006-Sep-12 20:08 UTC
[Xen-devel] [PATCH][RESEND][vTPM][XM-TEST] echo command string break-up fix
When redirecting the output of the echo command using ''>'' on bash, the output seems to be broken up into multiple write()s (depending on the version of busybox?). Unfortunately /dev/tpm0 needs to have the complete command written to in one chunk. The work-around ''echo <string> > file ; cat file > /dev/tpm0'' seems to get around this problem. The patch also removes a redundant test and error output. Signed-off-by: Stefan Berger <stefanb@us.ibm.com> _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ewan Mellor
2006-Sep-14 06:57 UTC
[Xen-devel] Re: [PATCH][RESEND][vTPM][XM-TEST] echo command string break-up fix
On Tue, Sep 12, 2006 at 04:08:36PM -0400, Stefan Berger wrote:> When redirecting the output of the echo command using ''>'' on bash, the > output seems to be broken up into multiple write()s (depending on the > version of busybox?). Unfortunately /dev/tpm0 needs to have the complete > command written to in one chunk. The work-around ''echo <string> > file ; > cat file > /dev/tpm0'' seems to get around this problem. > The patch also removes a redundant test and error output. > > Signed-off-by: Stefan Berger <stefanb@us.ibm.com>Applied, thank you. Ewan. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel