search for: write_behind

Displaying 3 results from an estimated 3 matches for "write_behind".

2013 Sep 03
1
[PATCH v2] tftp-hpa: add error check for disk filled up
...at windriver.com> --- common/tftpsubs.c | 4 +++- tftpd/tftpd.c | 12 ++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/common/tftpsubs.c b/common/tftpsubs.c index 8c999f6..172776c 100644 --- a/common/tftpsubs.c +++ b/common/tftpsubs.c @@ -215,7 +215,9 @@ int write_behind(FILE * file, int convert) goto skipit; /* just skip over the putc */ /* else just fall through and allow it */ } - putc(c, file); + if (putc(c, file) == EOF) { + return -1; + } skipit: prevchar = c; } diff --git a/tftpd/t...
2013 Aug 22
2
[PATCH] tftp-hpa: add error check for disk filled up
...driver.com> --- common/tftpsubs.c | 8 +++++--- tftpd/tftpd.c | 12 ++++++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/common/tftpsubs.c b/common/tftpsubs.c index 8c999f6..b4d4ffe 100644 --- a/common/tftpsubs.c +++ b/common/tftpsubs.c @@ -206,20 +206,22 @@ int write_behind(FILE * file, int convert) p = buf; ct = count; + count = 0; while (ct--) { /* loop over the buffer */ c = *p++; /* pick up a character */ if (prevchar == '\r') { /* if prev char was cr */ if (c == '\n')...
2006 Apr 12
1
powerd not behaving with an Asus A8V-MX and Athlon 64 X2 3800+
...numposzaps: 23 vfs.cache.numposhits: 11003 vfs.cache.numnegzaps: 10 vfs.cache.numneghits: 1022 vfs.cache.nchstats: 11003 1022 33 0 1129 0 14 79 vfs.cache.numfullpathcalls: 24 vfs.cache.numfullpathfail1: 0 vfs.cache.numfullpathfail2: 0 vfs.cache.numfullpathfail4: 0 vfs.cache.numfullpathfound: 24 vfs.write_behind: 1 vfs.read_max: 8 vfs.lookup_shared: 0 vfs.usermount: 0 vfs.numvnodes: 531 vfs.wantfreevnodes: 25000 vfs.freevnodes: 44 vfs.reassignbufcalls: 160 vfs.timestamp_precision: 0 vfs.worklist_len: 19 vfs.nfsrv.nfs_privport: 0 vfs.nfsrv.async: 0 vfs.nfsrv.commit_blks: 0 vfs.nfsrv.commit_miss: 0 vfs.nfsrv...